From 5a0f7b8c4853c375f37b0669484328ced941607f Mon Sep 17 00:00:00 2001 From: Alexey Rogachevskiy Date: Mon, 29 Jun 2020 23:28:56 +0300 Subject: [PATCH] Add "overriding" OVF template This should allow us to generate "compliant" virtual machine images that VMware Player does not complain about. --- base_vm.json | 2 +- ovf_override/ovf_override.ovf | 181 ++++++++++++++++++++++++++++++++++ 2 files changed, 182 insertions(+), 1 deletion(-) create mode 100644 ovf_override/ovf_override.ovf diff --git a/base_vm.json b/base_vm.json index b42d7d1..c660e05 100644 --- a/base_vm.json +++ b/base_vm.json @@ -13,7 +13,7 @@ "disk_size": "30000", "hard_drive_interface": "sata", "vboxmanage": [ - ["modifyvm", "{{.Name}}", "--memory", "4096", "--vram", "128", "--mouse", "usbtablet", "--accelerate3d", "on", "--apic", "on", "--rtcuseutc", "on", "--graphicscontroller", "vmsvga"], + ["modifyvm", "{{.Name}}", "--memory", "4096", "--vram", "128", "--mouse", "usbtablet", "--accelerate3d", "on", "--apic", "on", "--rtcuseutc", "on", "--graphicscontroller", "vmsvga", "--nictype1", "virtio"], ["storageattach", "{{.Name}}", "--storagectl", "SATA Controller", "--port", "0", "--nonrotational", "on", "--discard", "on"] ], diff --git a/ovf_override/ovf_override.ovf b/ovf_override/ovf_override.ovf new file mode 100644 index 0000000..71bd5aa --- /dev/null +++ b/ovf_override/ovf_override.ovf @@ -0,0 +1,181 @@ + + + + + + + List of the virtual disks used in the package + + + + Logical networks used in the package + + Logical network used by this appliance. + + + + A virtual machine + clever-devel + + The kind of installed guest operating system + Ubuntu_64 + Ubuntu_64 + + + Virtual hardware requirements for a virtual machine + + Virtual Hardware Family + 0 + clever-devel + virtualbox-2.2 vmx-15 + + + hertz * 10^6 + 2 virtual CPU(s) + Number of virtual CPUs + 2 virtual CPU(s) + 1 + 3 + 2 + + + MegaBytes + 4096 MB of memory + Memory Size + 4096 MB of memory + 2 + 4 + 4096 + + + 0 + ideController0 + IDE Controller + ideController0 + 3 + PIIX4 + 5 + + + 1 + ideController1 + IDE Controller + ideController1 + 4 + PIIX4 + 5 + + + 0 + sataController0 + SATA Controller + sataController0 + 5 + vmware.sata.ahci + 20 + + + 0 + usb + USB Controller + usb + 6 + 23 + + + + 0 + disk1 + Disk Image + disk1 + ovf:/disk/vmdisk1 + 7 + 5 + 17 + + + true + Ethernet adapter on 'NAT' + NAT + Ethernet adapter on 'NAT' + 8 + 10 + + + + + false + video + 11 + 24 + + + + + + + + + + + + Complete VirtualBox machine configuration in VirtualBox format + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file