[et-mgmt-tools] [PATCH] virt-inst Package an image for VMware distribution

Joey Boggs jboggs at redhat.com
Fri May 30 19:43:14 UTC 2008


These patches were originally written by David Lutterkort and I've 
tweaked the conversion process a little bit to work out some staging issues

virt-pack will tar all the files for the image into a tarball. The name 
and toplevel directory are derived from the name and version of the 
image descriptor. Scratch disks are omitted, since they can be rebuilt 
when the image is deployed.

A VMware format configuration file is produced with vmdk descriptors 
pointing at the disk images rather than converting the raw images.  For 
scratch disks, sparse VMDK files are generated, since VMWare has no 
notion of scratch disks. The generated VMX
file is very conservative, so that it's widely usable, but there are 
many things that could be improved in it if we had more information 
about the image (one example: are vmware-tools installed ?)

The image.xml file must contain two new elements:   version and release

<name version="1" release="1">example-image</name>

Example running:

[jboggs at localhost RHX_Sugar]$ sudo ./virt-pack i1.xml
Checking /home/jboggs/RHX_Sugar/rhx_sugar.img
Writing /home/jboggs/RHX_Sugar/../example-image-1.tgz
example-image-1/
example-image-1/i1.xml
example-image-1/rhx_sugar.vmdk
example-image-1/rhx_sugar.img
example-image-1/example-image.vmx


When completed you will have an virtual instance capable of being run 
under VMWare or virt-image. Prior to conversion the image must contain 
VMWare disk controller drivers enabling it to boot, otherwise will 
result in a kernel panic: no init found.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: example-image.xml
Type: text/xml
Size: 935 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abspath.patch
Type: text/x-patch
Size: 1257 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drives.patch
Type: text/x-patch
Size: 1805 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filename.patch
Type: text/x-patch
Size: 2737 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: package.patch
Type: text/x-patch
Size: 16625 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment-0003.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: series
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version.patch
Type: text/x-patch
Size: 2029 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080530/fd99be67/attachment-0004.bin>


More information about the et-mgmt-tools mailing list