Convert qcow2 to raw image and raw to qcow2 image

qemu-img is a QEMU disk image utility, which allows us to create, convert and modify images offline. It can handle all image formats supported by QEMU (including qcow2 and raw image format).

Installing qemu-img:

[root@tuxfixer ~]# yum install qemu-img

Converting qcow2 image to raw image format using qemu-img:

[root@tuxfixer ~]# qemu-img convert -f qcow2 -O raw image.qcow2 image.img

Converting raw image to qcow2 image format using qemu-img:

[root@tuxfixer ~]# qemu-img convert -f raw -O qcow2 image.img image.qcow2
Liked it? Take a second to support on Patreon!

Share on: Share on FacebookShare on Google+Tweet about this on TwitterShare on StumbleUponShare on LinkedInPin on PinterestBuffer this pageShare on TumblrDigg thisFlattr the authorShare on RedditShare on VKShare on Yummly

Leave a Reply

Name *
Email *