Code: Select all
root@debltsp:~# grep nbd /var/log/syslog
Jan 22 20:42:59 debltsp nbd-server[103]: Could not parse config file: The config file does not specify any exports
Jan 22 20:42:59 debltsp nbd-server[103]: No configured exports; quitting.
Jan 22 20:42:59 debltsp nbd-server[100]: nbd-server.
Jan 22 20:52:10 debltsp nbd-server[31901]: Stopping Network Block Device server: nbd-server.
Jan 22 20:52:10 debltsp systemd[1]: nbd-server.service: Succeeded.
Jan 22 20:52:10 debltsp nbd-server[31913]: nbd-server.
Jan 23 00:01:11 debltsp nbd_server[31915]: Spawned a child process
Jan 23 00:01:11 debltsp nbd_server[26470]: Negotiation failed: Success
Jan 23 00:01:11 debltsp nbd_server[26470]: Exiting.
Jan 23 00:01:11 debltsp nbd_server[31915]: Child exited with 1
/etc/nbd-server/config
Code: Select all
[generic]
# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
user = nbd
group = nbd
includedir = /etc/nbd-server/conf.d
# What follows are export definitions. You may create as much of them as
# you want, but the section header has to be unique.
Code: Select all
[/opt/ltsp/main]
exportname = /opt/ltsp/images/main.img
readonly = true
authfile = /etc/ltsp/nbd-server.allow
Code: Select all
[swap]
exportname = /tmp/nbd-swap/%s
prerun = nbdswapd %s
postrun = rm -f %s
authfile = /etc/ltsp/nbd-server.allow
*EDIT* I have tried the fix that involved removing the leading / from the export name. No dice.
Code: Select all
[opt/ltsp/main]
Code: Select all
[/opt/ltsp/main]