mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-4246 VM deployment fails with global configuration parameter "vmware.nested.virtualization" enabled.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
parent
73d49d0907
commit
f0ae682d48
@ -2680,7 +2680,10 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||||||
context.getVimClient().getMoRefProp(computeMor, "environmentBrowser");
|
context.getVimClient().getMoRefProp(computeMor, "environmentBrowser");
|
||||||
HostCapability hostCapability = context.getService().queryTargetCapabilities(environmentBrowser, hostMor);
|
HostCapability hostCapability = context.getService().queryTargetCapabilities(environmentBrowser, hostMor);
|
||||||
Boolean nestedHvSupported = hostCapability.isNestedHVSupported();
|
Boolean nestedHvSupported = hostCapability.isNestedHVSupported();
|
||||||
if (nestedHvSupported != null && nestedHvSupported.booleanValue()) {
|
if (nestedHvSupported == null) {
|
||||||
|
// nestedHvEnabled property is supported only since VMware 5.1. It's not defined for earlier versions.
|
||||||
|
s_logger.warn("Hypervisor doesn't support nested virtualization, unable to set config for VM " +vmSpec.getName());
|
||||||
|
} else if (nestedHvSupported.booleanValue()) {
|
||||||
s_logger.debug("Hypervisor supports nested virtualization, enabling for VM " + vmSpec.getName());
|
s_logger.debug("Hypervisor supports nested virtualization, enabling for VM " + vmSpec.getName());
|
||||||
vmConfigSpec.setNestedHVEnabled(true);
|
vmConfigSpec.setNestedHVEnabled(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user