From b00e2f734e328c6b953d95e741842c28417a44cc Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Wed, 12 Jan 2011 12:18:31 -0800 Subject: [PATCH] Automate vmware systemvm appliance generation --- patches/systemvm/debian/convert.sh | 13 ++++++---- patches/systemvm/debian/systemvm.vmx | 37 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 patches/systemvm/debian/systemvm.vmx diff --git a/patches/systemvm/debian/convert.sh b/patches/systemvm/debian/convert.sh index c3fe1c6c13d..3d7dac7f487 100755 --- a/patches/systemvm/debian/convert.sh +++ b/patches/systemvm/debian/convert.sh @@ -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 diff --git a/patches/systemvm/debian/systemvm.vmx b/patches/systemvm/debian/systemvm.vmx new file mode 100644 index 00000000000..9b93449d94a --- /dev/null +++ b/patches/systemvm/debian/systemvm.vmx @@ -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"