From 8f6419301e56f7104bc9ac76dcd2ba5aeed0cb43 Mon Sep 17 00:00:00 2001 From: Jacob Cherkas Date: Tue, 18 Jun 2013 10:22:10 -0700 Subject: No support for double nested 64 bit guest using VCDriver 64bit instances launched on ESX via the VCDriver will not support running 64bit guests. There is an option that can be passed during the vmx creation that will allow for this to happen. This is very useful if you want to run hypervisors (esx, kvm) on top of ESX and then run 64bit VMs on top of those hypervisors. Fixes bug 1192256 Change-Id: Id6eb224c97569737cbb41f1b64f61805e1df004e --- nova/virt/vmwareapi/vm_util.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/virt') diff --git a/nova/virt/vmwareapi/vm_util.py b/nova/virt/vmwareapi/vm_util.py index fecac5bcc..117669700 100644 --- a/nova/virt/vmwareapi/vm_util.py +++ b/nova/virt/vmwareapi/vm_util.py @@ -50,6 +50,10 @@ def get_vm_create_spec(client_factory, instance, data_store_name, config_spec.name = instance['uuid'] config_spec.guestId = os_type + # Allow nested ESX instances to host 64 bit VMs. + if os_type == "vmkernel5Guest": + config_spec.nestedHVEnabled = "True" + vm_file_info = client_factory.create('ns0:VirtualMachineFileInfo') vm_file_info.vmPathName = "[" + data_store_name + "]" config_spec.files = vm_file_info -- cgit