Troubleshooting KVM Install Windows7 virtual machine CPU only two issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.