Created
February 18, 2013 07:57
-
-
Save sdoro/4975758 to your computer and use it in GitHub Desktop.
Mounting qcow2 VM disk images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modprobe nbd max_part=63 | |
qemu-nbd -c /dev/nbd0 /var/lib/libvirt/images/vm.qcow2 | |
mkdir /tmp/x && mount /dev/nbd0p1 /tmp/x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To disconnect: umount /tmp/x && qemu-nbd -d /dev/nbd0