CLOUDSTACK-7505:

if VM is created from ISO, don't change platform metadat for VM on XS
This commit is contained in:
Anthony Xu 2014-09-09 14:01:23 -07:00
parent 765659091a
commit fcf2c1b6bc

View File

@ -1459,6 +1459,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
vm.setPlatform(conn, platform);
}
}
if ( !BootloaderType.CD.equals(vmSpec.getBootloader())) {
String xenservertoolsversion = details.get("hypervisortoolsversion");
if ((xenservertoolsversion == null || !xenservertoolsversion.equalsIgnoreCase("xenserver61")) && vmSpec.getGpuDevice() == null) {
Map<String, String> platform = vm.getPlatform(conn);
@ -1467,6 +1468,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
}
}
}
}
protected String handleVmStartFailure(Connection conn, String vmName, VM vm, String message, Throwable th) {
String msg = "Unable to start " + vmName + " due to " + message;