Windows 7 VM guest doesn't recognize and run on more than 2 cores

I have a windows 7 VM running in opennebula. Currently, it has 4 CPUs and 8 vCPUs. Even if i increase it to 8, inside the VM it shows 2 cores.
Why is it that windows VM doesn’t recognize the CPU upgrade?


Windows 7 support two sockets.

You should figure out what are the CPU topology capabilities of the hypervizor and what topology is provided to the guest VM. Most probably each vCPU is provided on separate socket. You could try using cpu model with more cores per socket or open a feature request to have an option to configure the CPU topology in OpenNebula.

Hope this helps.

Best Regards,
Anton Todorov