Problem Description: Virtual machine created with the following command
Virt-install--ram=2048--vcpus=8--os-type windows--os-variant=winvista \
--cdrom/isos/windows_7_chs_sp1_x86.iso--network bridge=br1 \
--disk path=/dev/vg/office-qa-vs-102-85--accelerate \
--vnc--vncport=5910--noautoconsole--name=office-qa-vs-102-85
After creation, it was found that the number of CPUs in Windows7 was only two, and 8 configurations did not take effect at all.
Reason:
1. Windows 7 supports a maximum of two CPU sockets, each of which can have multiple cores within each socket.
2, KVM default per CPU to simulate a socket, you must modify the virtual machine CPU topology, in order to use more than one CPU.
Workaround:
Modify the virtual machine configuration file XML under/etc/libvirtd/qemu, add a socket multiple cores
Add the following:
<cpu>
<topology sockets= ' 2 ' cores= ' 2 ' threads= ' 2 '/>
</cpu>
Idea to modify the number of Vcpus in <vcpu placement= ' static ' >8</vcpu>
Restart the virtual machine after the modification is complete
This article from "Liang Childe" blog, please be sure to keep this source http://iyull.blog.51cto.com/4664834/1864357
Troubleshooting KVM Install Windows7 virtual machine CPU only two issues