mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-6023 vcpus should not be higher then xen specifies
This commit is contained in:
parent
b3829e54d6
commit
0839fbce67
@ -1312,7 +1312,12 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
if (guestOsTypeName.toLowerCase().contains("windows")) {
|
||||
vmr.VCPUsMax = (long)vmSpec.getCpus();
|
||||
} else {
|
||||
vmr.VCPUsMax = 32L;
|
||||
// XenServer has a documented limit of 16 vcpus per vm
|
||||
vmr.VCPUsMax = 2L * vmSpec.getCpus();
|
||||
if (vmr.VCPUsMax > 16)
|
||||
{
|
||||
vmr.VCPUsMax = 16L;
|
||||
}
|
||||
}
|
||||
|
||||
vmr.VCPUsAtStartup = (long)vmSpec.getCpus();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user