=pod =head1 NAME virt-image - Format of the virtual image XML descriptor =head1 DESCRIPTION L relies on an XML descriptor to create virtual machines from virtual machine images. In general, a virtual machine image consists of the XML descriptor (usually in a file F) and a number of files for the virtual machine's disks. In the following explanation of the structure of the image descriptor, mandatory XML elements are marked as B, whereas optional elements are marked as I. All file names in the image descriptor are relative to the location of the descriptor itself. Generally, disk files are either kept in the same directory as the image descriptor, or in a subdirectory. =head1 HOST MATCHING The image descriptor contains information on the requirements a guest has on the host platform through one or more the F descriptors (see section L). The image can only be used if at least one of the boot descriptors is suitable for the host platform; a boot descriptor is suitable if: =over 4 =item * The CPU architecture of the boot descriptor, given by the F element, is supported by the host =item * The host supports a guest with the features requested in the F element, such as providing an APIC, or having ACPI turned off =back If a suitable boot descriptor is found, the guest is created and booted according to the information about booting the OS from the F element and with the disks specified in the F element. If more than one suitable boot descriptor is found, one of them is chosen based on a heuristic, generally preferring paravirtualized guests over full virtualized ones, though this is an implementation detail of the tool creating the virtual machine. =head1 STRUCTURE The image descriptor consists of three sections, all contained in the toplevel B element: =over 4 =item General metadata about the image A number of elements like I