virt-convert [option]... input.vmx | input.ovf | input-dir [output.xml | output-dir]
The virt-convert program is a command line tool for converting virtual machines (VMs) from one format to another. It accepts either a VM definition file (such as VMware vmx format) or a directory containing a VM. By default, a new VM definition file, and converted disk images, will be placed in a new output directory.
If an output directory is specified, it will be created if necessary, and the output VM definition placed within the new directory, along with any disk images, as needed.
If an output VM definition file is specified, it will be created alongside any disks in the same directory.
Any of the following options can be omitted, in which case virt-convert will use defaults when required. An input VM definition or containing directory must be provided. By default, an output directory is generated based upon the name of the VM. The default input format is VMware vmx, and the default output format is a libvirt “image” XML definition.
Architecture of the virtual machine (i686, x86_64, ppc). Defaults to that of the host machine.
Output disk format, or none if no conversion should be performed. format is one of:
No disks are converted or copied.
VMWare VMDK format
vdisk format (see vdiskadm(1M))
Display debugging information.
Display the help message and exit.
Input format. Currently, vmx and ovf are supported.
Override the OS type and variant to disable the ACPI setting for fully virtualized guest.
Override the OS type and variant to disable the APIC setting for fully virtualized guest.
Output format. Currently, the supported output formats are virt-instance and virt-image. virt-instance is the recommended format for Solaris.
Optimize the guest configuration for a type of operating system. This will attempt to pick the most suitable ACPI and APIC settings, optimally supported mouse drivers, and generally accommodate other operating system quirks. See virt-install(1M) for a list of valid operating system types.
Further optimize the guest configuration for a specific operating system variant. This parameter is optional. See virt-install(1M) for a list of valid operating system variants.
Create a paravirtualized guest image. Convert machine to a paravirtualized Xen-based image.
Avoid verbose output.
Create a fully virtualized guest image. Convert machine to a hvm/qemu–based image (this is the default if --paravirt is not specified).
The following sequence of commands converts a VMware VMX appliance and imports it into Solaris xVM.
# virt-convert -o virt-instance /guests/vmx-appliance/ \ /guests/xvm-appliance/ # virsh define --relative-path=/guests/xvm-appliance/ \ \guests/xvm-appliance/appliance.xml
See attributes(5) for descriptions of the following attributes:
Not all conversions will result in a working guest installation. If the source OS image is configured to use SCSI disks, the use of IDE disks may cause the OS boot to fail. Some images may be configured to use the VMware drivers such as vlance. In the vlance case and in general, device emulation support may not be sufficient for all OS installations.
Written by Joey Boggs and John Levon.
See the AUTHORS file in the source distribution for the complete list of credits.