Attention

You are viewing an older version of the documentation. The latest version is v3.3.

Convert KVM images for ACRN

It is possible to convert KVM images into a format which can be booted by ACRN. This is useful in many cases, for example:

  • Already have a KVM image and want to use it with ACRN

  • Prefer to use KVM tools to create VMs

  • Would like to use ECI images, but cannot use the live-boot image due to storage constraints

To convert the KVM image for use with ACRN, complete these steps:

See also

For information on virtualizing ECI images core-bookworm and core-jammy with KVM, refer to Virtualize ECI Images with KVM

  1. Locate the KVM image you would like to convert. KVM typically stores images at /var/lib/libvirt/images and uses the qcow2 image format. For this example, an image named vm1-eci-bullseye.qcow2 will be used:

    ../../_images/17.png
  2. Use the qemu-img tool to convert the image to a raw format. For this example, a qcow2 image was converted and output to ~/vm1-eci-bullseye.img:

    $ sudo qemu-img convert vm1-eci-bullseye.qcow2 -O raw ~/vm1-eci-bullseye.img
    
    ../../_images/18.png