Yes, you can use qcow2 images with Xen


Xen's Panda mascot

Happy Monday everyone. Today I discovered we can mount QEMU qcow2 images, without converting them to raw first. For example, this would be a typical file based line in a Xen config:

disk = ['file:/path/disk.raw,xvda,w']

For qcow2 images, the syntax is:

disk = ['tap:qcow2:/path/images/disk.qcow2,xvda,w']

Alas, some Linux distros and FreeBSD fail in this configuration. Therefore, a gigantic your mileage may vary warning must be observed before running a test machine with this, even if you live in the rest of the world that now uses the metric system.

Author bio and support


Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person in bios. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.