The VirtualMachineImageStoreMXBean resource is implemented
by the Xen driver as a shared directory mounted by every host of a Xen-driven server pool under the same name. The name of this directory needs to be specified as a property of the server pool (default name is /var/xen/images/templates).
This directory is typically a shared directory mounted by NFS, iSCSI or on a cluster filesystem.
A Xen virtual image template consists of two files:
- a simple metadata file called <uuid>.xml where <uuid> is the unique ID of the template
- the disk image file proper
The metadata XML file syntax is as follows:
<virtualMachineImage name="Rubis Virtual Appliance" uuid="vmiAAFFAAFF">
<description>Rubis Virtual Appliance</description>
<imageFile>vmiAAFFAAFF.img</imageFile>
</virtualMachineImage>
The disk image file must be a raw filesystem image. In order to be compatible with the bundled Xen driver host-based shell scripts, the following requirements must be met:
- the image should contain a single partition (mount as "/"), LVM volumes are not allowed.
- the guest Linux OS should mount the /dev/sda1 device as root ("/") and the /dev/sda2 device as /swap.
This repository must populated manually. Virtual image UUIDs assignement is not the responsability if the Xen driver. The only requirement is that virtual image UUID start with "vmi".
|