How to Set Cores-Per-Socket Parameter for a Virtual Machine
How to Set Cores-Per-Socket Parameter for a Virtual Machine
- CTX126524
- Created onMar 26, 2014
- Updated onNov 10, 2014
- 40 found this helpful
Article | Topic | : | Configuration |
Objective
This article describes how to set the cores-per-socket parameter for a Windows Virtual Machine (VM). This procedure does not apply for Linux VMs.
When you assign virtual CPUs to a VM, by default one virtual CPU is equal to one socket. Some VMs have higher core limitations. By setting the cores-per-socket parameter, it is possible to present a VM with a certain number of cores.
Notes:
- This feature is only available in the Advanced, Enterprise, and Platinum editions and is not available in the free version of XenServer. For example, if you have a dual socket quad core server and a XenServer Advanced, Enterprise, or Platinum Edition license, you can present two processors to a VM with each processor having four cores.
- This feature is available in some unlicensed versions of XenServer 6.2.
Instructions
Complete the following procedure to set the cores-per-socket parameter for Windows VMs:
Run the following command to obtain the Universally Unique Identifier (UUID) of the VM for which the parameter needs to be set:
xe vm-list name-label=<Name of the VM>Set the cores-per-socket parameter:
xe vm-param-set platform:cores-per-socket=’X’ uuid=<VM UUID from Step1>
Here, X equals 2 for dual core and 4 for quad core.
For example, to have a CPU with four cores:
xe vm-param-set platform:cores-per-socket=4 uuid=<VM UUID>- Set the virtual CPUs startup parameter equal to the number of virtual CPUs (number of cores) to be assigned to the VM and set the VCPUs-max parameter to the total number of cores:
xe vm-param-set VCPUs-at-startup=<Number of VCPUs> uuid=<VM-UUID>
xe vm-param-set VCPUs-max=<Maximum number of cores> uuid=<VM-UUID>For dual quad core CPUs, VCPUs-max=8
If your XenServer has dual quad core CPUs and you have set the cores-per-socket=4 and VCPUs-at-startup=8, then you can see eight CPUs in the Performance tab of Task Manager and two processors in the Computer Properties of the VM. Here, the VM is using all eight cores of the two processors.
The number of virtual CPUs at startup is the number of cores to assign to the VM.Similarly, if VCPUs-at-startup=4, then you can see four CPUs in the Performance tab of Task Manager, but only one processor in the Computer Properties. Here, the VM is using only four cores and only one processor out of two. However, if the number of VCPUs-at-startup is greater than four, then it uses the second processor and shows two processors in the Computer Properties. You can conclude that the number of processors the VM uses depends on the number of cores assigned to the VM.
目录 返回
首页