Ask Your Question

Revision history [back]

Qcow2 images may be mounted via qemu-nbd util. It shares image through kernel network block device protocol and this allows to mount it:

modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 image.qcow2
mkdir -p /mnt/image
mount /dev/nbd0p1 /mnt/image
cat /mnt/image/etc/cloud/cloud.cfg