Skip to content

Instantly share code, notes, and snippets.

@sdoro
Created February 18, 2013 07:57
Show Gist options
  • Save sdoro/4975758 to your computer and use it in GitHub Desktop.
Save sdoro/4975758 to your computer and use it in GitHub Desktop.
Mounting qcow2 VM disk images
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 /var/lib/libvirt/images/vm.qcow2
mkdir /tmp/x && mount /dev/nbd0p1 /tmp/x
@sdoro
Copy link
Author

sdoro commented Feb 18, 2013

To disconnect: umount /tmp/x && qemu-nbd -d /dev/nbd0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment