CPU cores per socket setting not functional
ISSUE TYPE
- Bug Report
- Enhancement Request
COMPONENT NAME
- Cores per socket setting in user_vm_details / vm_template_details table when using XenServer hypervisor
CLOUDSTACK VERSION
- CloudStack version 4.9.2
- Not attempted reproduced in other versions but assumption is issue is still present in 4.11.x
CONFIGURATION, OS / ENVIRONMENT
- CloudStack 4.9.2
- XenServer 6.2 and 7.0 - fully licensed with Citrix licensing
- Advanced zone
SUMMARY
- Even with cpu.corespersocket (or cpuid.coresPerSocket as suggested in some mailing list threads) specified CloudStack will ignore this setting.
- All ACS specifications for cores and sockets will translate to "sockets" in XenServer
- Overall problem is some VMs when given a higher core count does not see all it's CPU cores/sockets.
STEPS TO REPRODUCE
- Create a VM with cpu count 4 cores
- Add entry for cpu.corespersocket=2 in user_vm_details
- Start VM
- Check allocation in XenCentre
EXPECTED RESULTS
- VM with 2 sockets and 2 cores per socket
ACTUAL RESULTS
- VM with 4 sockets
You need to stop the instance, for the Settings tab to appear.
@ToonGeneral thanks, never noticed the setting menu!

as you can see, this is the "new" platform value which get's written back after shutdown (even if the instance was running with the correct settings, in my case 4 cores per socket). one difference I'm spotting is that we utilize custom service offerings.
@bdonnahue you're seeing the same behaviour. Are you utilizing custom service offerings as well?
However, I will forward this here to your professional support and will keep you updated about the solution.
Hello, We have the same problem with version 4.13 and KVM hypervisors. How can we solve this problem because we are trying to create offering services with 45 cores and it affects only 2 cores
there is a PR out for 4.14 that fixes this for KVM: #4497
this is still happening with 4.15.0 and xcp-ng
The PR i mentioned is merged in the 4.14 branch @AlexanderKgr . If you need to it in 4.15 please test a nightly build, Otherwise it should be fixed in any upcoming release.
@AlexanderKgr can you please check if this is still an issue on a recent 4.15 or on main and close if appropriate?
A PR claiming to fix this issue https://github.com/apache/cloudstack/pull/4497 has been merged. @AlexanderKgr @DagSonsteboSB please test 4.15.1/4.14.1 and re-open this if not satisfied, thanks.