Automate vmware systemvm appliance generation

This commit is contained in:
Chiradeep Vittal 2011-01-12 12:18:31 -08:00
parent 1934e79900
commit b00e2f734e
2 changed files with 45 additions and 5 deletions

View File

@ -17,9 +17,13 @@ bzip2 -c systemvm.qcow2 > systemvm.qcow2.bz2
echo "Done qcow2"
echo "Converting raw image to vmdk"
qemu-img convert -f raw -O vmdk systemvm.img systemvm.vmdk
echo "Compressing vmdk..."
bzip2 -c systemvm.vmdk > systemvm.vmdk.bz2
echo "Done vmdk"
echo "Done creating vmdk"
echo "Creating ova appliance "
ovftool systemvm.vmx systemvm.ova
echo "Done creating OVA"
echo "Cleaning up..."
rm -vf systemvm.vmdk
rm -vf systemvm.vhd.bak
echo "Compressing raw image..."
bzip2 -c systemvm.img > systemvm.img.bz2
@ -32,5 +36,4 @@ md5sum systemvm.vhd >> md5sum
md5sum systemvm.vhd.bz2 >> md5sum
md5sum systemvm.qcow2 >> md5sum
md5sum systemvm.qcow2.bz2 >> md5sum
md5sum systemvm.vmdk >> md5sum
md5sum systemvm.vmdk.bz2 >> md5sum
md5sum systemvm.ova >> md5sum

View File

@ -0,0 +1,37 @@
config.version = "8"
displayname = "systemvm"
ethernet0.addressType = "generated"
ethernet0.connectionType = "bridged"
ethernet0.present = "true"
ethernet0.startConnected = "true"
ethernet0.virtualDev = "e1000"
floppy0.autodetect = "false"
floppy0.fileType = "device"
floppy0.present = "true"
floppy0.startConnected = "false"
guestos = "debian5"
ide0:0.deviceType = "disk"
ide0:0.fileName = "systemvm.vmdk"
ide0:0.present = "true"
ide1:0.autodetect = "true"
ide1:0.deviceType = "atapi-cdrom"
ide1:0.present = "true"
ide1:0.startConnected = "false"
memsize = "256"
numvcpus = "1"
pciBridge0.present = "TRUE"
pciBridge4.functions = "8"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
svga.autodetect = "true"
virtualhw.version = "7"
vmci0.present = "TRUE"