CLOUDSTACK-3501. Cannot create instances on XenServer with multiple cores in a socket. If

details has information on cores per socket, create an instance accordingly. The vm record
is populated with information on how many cores should be allowed in a socket.
This commit is contained in:
Devdeep Singh 2013-07-26 14:47:14 +05:30
parent 4a7b503746
commit b466729008
1 changed files with 7 additions and 0 deletions

View File

@ -200,6 +200,13 @@ public class XenServer56FP1Resource extends XenServer56Resource {
vmr.platform = platform;
}
String coresPerSocket = details.get("cpu.corespersocket");
if (coresPerSocket != null) {
Map<String, String> platform = vmr.platform;
platform.put("cores-per-socket", coresPerSocket);
vmr.platform = platform;
}
vmr.VCPUsAtStartup = (long) vmSpec.getCpus();
vmr.consoles.clear();