Hide Forgot
Description of problem: I can't connect to an nbd server using the xz plugin in Fedora 23. For example: nbdkit --no-fork -i localhost xz file=disk.img.xz And on another terminal: nbd-client -N img localhost 10809 /dev/nbd0 -nofork I get the error: Negotiation: .Error: It looks like you're trying to connect to an oldstyle server. This is no longer supported since nbd 3.10. Version-Release number of selected component (if applicable): nbdkit-1.1.10-2.fc23.x86_64 nbdkit-plugin-xz-1.1.10-2.fc23.x86_64 nbd-3.11-2.fc23.x86_64
Indeed - nbdkit only supports the original NBD protocol (same as qemu-nbd). Patches welcome to fix this.
Created attachment 1113640 [details] 0001-Add-support-for-newstyle-NBD-protocol-RHBZ-1297100.patch Please try the following patch: https://www.redhat.com/archives/libguestfs/2016-January/msg00026.html (The same patch is also attached). Note that you must add '-n' on the command line to get newstyle protocol support.
I did a bit more testing and pushed the following commit upstream: https://github.com/libguestfs/nbdkit/commit/f93807114634d58ca2ef0d64f7637ebd87e48a50 Your testing is still welcomed, but for now I am closing this bug as being fixed upstream, and in Fedora Rawhide soon.
Thanks very much! I'll report back with a test result as soon as I get a chance.
Rawhide build: http://koji.fedoraproject.org/koji/taskinfo?taskID=12501791
Try this build: http://koji.fedoraproject.org/koji/taskinfo?taskID=12502874
I tested this, it works great for my disk image. Thanks again for doing this!