Mount a .qcow image

Found the answer here, even if it doesn't indicate that it needs to be run as root.

sudo modprobe nbd max_part=8
sudo apt-get install qemu-utils
sudo qemu-nbd --connect=/dev/nbd0 /path/myimage.img
sudo fdisk /dev/nbd0 -l
mkdir ~/mnt
sudo mount /dev/nbd0p2 /home/user/mnt
sudo umount /home/user/mnt
sudo qemu-nbd --disconnect /dev/nbd0
sudo rmmod nbd
tips/mount_qcow_image.txt · Last modified: 2023-08-06 19:13 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki