I ran this loop for some 100 iterations without failure: sudo sh -exc 'while true; do qemu-nbd --snapshot --connect /dev/nbd0 /srv/vm/adt-vivid-i386-cloud.img; sleep 0.5; [ -e /dev/nbd0p1 ]; mount /dev/nbd0p1 /mnt; [ -d /mnt/root ]; umount /mnt; qemu-nbd --disconnect /dev/nbd0; sleep 0.5; [ ! -e /dev/nbd0p1 ]; done'
(You need to change the VM image, obviously). Maybe in your experiments you forgot a disconnect or so? If you can still reproduce this, please attach the output of "journalctl -b" after you run into an error, and check that you have no leftover /dev/nbd* devices. However, systemd or udev don't actually create or manage /dev/*, that's the kernel driver. ** Changed in: qemu (Ubuntu) Importance: High => Medium ** Changed in: qemu (Ubuntu) Status: Confirmed => Incomplete ** Summary changed: - vivid: systemd breaks qemu-nbd mounting + disconnecting qemu-nbd leaves device node behind -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1435428 Title: disconnecting qemu-nbd leaves device node behind To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1435428/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs