[nbd-disk] exportname=/data/srv/nbd/nbd-16gb listenaddress=192.168.11.121 -sysrescd # /etc/nbd-server/config [generic] user = nbd group = nbd listenaddr = 192.168.1.1 [partimage] exportname = /mnt/cdrom/sysrcd.dat port = 2000 And here is an NBD server command: nbd-server 2000 /mnt/cdrom/sysrcd.dat -sharing a CD sudo nbd-server 2000 /dev/sr0 Mounting the CD sudo nbd-client greeneggs 2000 /dev/nbd0 -EXAMPLES A simple nbd-server configuration file would look like this: [generic] [export] exportname = /export/blkdev For increased security, one might want to create an authorization file, and set the UID and GID to run as: [generic] user = nbd group = nbd [export] exportname = /export/blkdev authfile = /etc/nbd-server/allow With /etc/nbd-server/allow containing the following: 127.0.0.1 192.168.0.0/8 192.168.1.1 -mount .vdi files Example If you want to mount .vdi file use the following syntax sudo vdfuse -f /path/to/file.vdi /path/to/mountpoint /path/to/mountpoint will now contain files like ‘EntireDisk', ‘Partition1', etc. If there's only one partition showing, you probably want that one. So to mount the filesystem, just type: mount /path/to/mountpoint/Partition1 /path/to/someother/mountpoint The filesystem should now be mounted on /path/to/someother/mountpoint.