Convert Image to Another Format

Scanner image disks are available in VMDK and VHD formats. You can convert these into any format supported by the qemu-img tool.

For example, convert VMDK or VHD to QCOW2 or RAW.

The following command provides a list of supported formats:

qemu-img -h

The steps below describe how to convert an OVA file (with VMDK disk format) to QCOW2 and import it into the KVM hypervisor as a Linux/RedHat Enterprise virtual machine.

  1. On a Linux system, install the qemu-img tool.
  2. Download the Standard image in OVA format from Qualys (for example, qVSA.i386-2.2.27-1.ova).
  3. Extract the .vmdk disk image file from OVA as follows:

    #] tar xvf qVSA.i386-2.2.27-1.ova

    This extracts a qVSA.i386-2.2.27-1-disk1.vmdk file in the same location.

  4. Convert the .vmdk disk image to .qcow2 format as follows:

    #] qemu-img convert -f vmdk -O qcow2 qVSA.i386-2.2.27-1-disk1.vmdk qVSA.i386-2.2.27-1-disk1.qcow2

  5. Import qVSA.i386-2.2.27-1-disk1.qcow2 into KVM as a Linux/RedHat Enterprise virtual machine.