From 25fffe839d3d0461ef641fca06be2aee28605b24 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Fri, 18 May 2018 15:16:05 -0400 Subject: [PATCH] build_library: update VMware virtual hardware version to 11 This will run on ESXi 6.0 and above, and all non-EOL versions of Fusion and Workstation. Also enable a few useful VMX features (HPET; CPU and memory hotplug) that are added by VMware Workstation 14.1.1's Change Hardware Compatibility wizard. Correspondingly, enable CPU/memory hotplug in the OVF; omit HPET because there's no obvious way to enable it. --- build_library/template_vmware.ovf | 8 ++++---- build_library/vm_image_util.sh | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build_library/template_vmware.ovf b/build_library/template_vmware.ovf index 1ae364055c..0142bb2a5b 100644 --- a/build_library/template_vmware.ovf +++ b/build_library/template_vmware.ovf @@ -93,7 +93,7 @@ Virtual Hardware Family 0 @@NAME@@ - vmx-07 + vmx-11 hertz * 10^6 @@ -191,12 +191,12 @@ 10 - - + + - + diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 9bef8ed77e..7fd5408124 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -788,7 +788,7 @@ _write_vmx_conf() { #!/usr/bin/vmware .encoding = "UTF-8" config.version = "8" -virtualHW.version = "7" +virtualHW.version = "11" cleanShutdown = "TRUE" displayName = "${VM_NAME}" ethernet0.addressType = "generated" @@ -822,6 +822,9 @@ pciBridge6.functions = "8" pciBridge7.present = "TRUE" pciBridge7.virtualDev = "pcieRootPort" pciBridge7.functions = "8" +hpet0.present = "TRUE" +vcpu.hotadd = "TRUE" +mem.hotadd = "TRUE" EOF # Only upload the vmx if it won't be bundled if [[ -z "$(_get_vm_opt BUNDLE_FORMAT)" ]]; then