Skip to content

qcow2

Edit files in a qcow2 image

This is useful when you need to change password for example in an image

modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 CentOS-7-x86_64-GenericCloud-1802.qcow2
mkdir -p /mnt/qcow2_image
mount /dev/nbd0p1 /mnt/qcow2_image
cat /mnt/qcow2_image/etc/cloud/cloud.cfg
not forget to umount