mirror of https://github.com/apache/cloudstack.git
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:
parent
4a7b503746
commit
b466729008
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue