VCPUs with XenServer and Windows

Maybe you have installed Windows on a XenServer and you have set 4 Virtual CPUs. But in Windows, you see only 2 CPU (2 sockets). The problem is that standard Windows versions are limited to two socket with an “unlimited” number of cores. It seems a bit stupid IMHO.

By default Xen set one socket by core, then Windows sees only two CPUs. But it is easy to fix that. It works fine with the free version of XenServer (where xxxxxx is the UUID of your Virtual Machine; use xe vm-list):

xe vm-param-set platform:cores-per-socket=2 uuid=xxxxxx
xe vm-param-set VCPUs-max=4 uuid=xxxxxxx
xe vm-param-set VCPUs-at-startup=4 uuid=xxxxxx

In this example, you will have 2 sockets with 2 cores by socket.

Mathieu SCHROETER

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s