Skip to content

Commit e4f9c2a

Browse files
author
Sateesh Chodapuneedi
committed
CLOUDSTACK-4155 [VMWARE] Failed to deploy VM with NPE when vmware.nested.virtualization is enabled to true
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
1 parent f1f981b commit e4f9c2a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,8 @@ protected StartAnswer execute(StartCommand cmd) {
26972697
ManagedObjectReference environmentBrowser =
26982698
context.getVimClient().getMoRefProp(computeMor, "environmentBrowser");
26992699
HostCapability hostCapability = context.getService().queryTargetCapabilities(environmentBrowser, hostMor);
2700-
if (hostCapability.isNestedHVSupported()) {
2700+
Boolean nestedHvSupported = hostCapability.isNestedHVSupported();
2701+
if (nestedHvSupported != null && nestedHvSupported.booleanValue()) {
27012702
s_logger.debug("Hypervisor supports nested virtualization, enabling for VM " + vmSpec.getName());
27022703
vmConfigSpec.setNestedHVEnabled(true);
27032704
}

0 commit comments

Comments
 (0)