天天看點

libvirt 問題:CPU topology doesn't match maximum vcpu

XML 基礎配置資訊

<domain type="kvm">

<uuid>3121eb64-8f58-4f04-b094-6fefc3597d1d</uuid>

<name>instance-0000026d</name>

<memory>16777216</memory>

<vcpu>16</vcpu>

<metadata>

<nova:package version="13.1.4-1.el7"/>

<nova:name>shut-win.vlan1217</nova:name>

<nova:creationTime>2018-01-08 10:45:24</nova:creationTime>

<nova:flavor name="windows-16-16G-100G">

<nova:memory>16384</nova:memory>

<nova:disk>120</nova:disk>

<nova:swap>0</nova:swap>

<nova:ephemeral>0</nova:ephemeral>

<nova:vcpus>16</nova:vcpus>

</nova:flavor>

<nova:owner>

<nova:user uuid="053d91950deb40d08b706988f4bf914a">sys-admin</nova:user>

<nova:project uuid="8b79300ff2a546d896ef58a9c8004e68">sys-admin</nova:project>

</nova:owner>

<nova:root type="image" uuid="86e30f80-5a93-47ee-88c9-de5c1db6df10"/>

</nova:instance>

</metadata>

<sysinfo type="smbios">

<system>

<entry name="manufacturer">Fedora Project</entry>

<entry name="product">OpenStack Nova</entry>

<entry name="version">13.1.4-1.el7</entry>

<entry name="serial">23b8b39c-2dad-4172-a8eb-4c260299ed6c</entry>

<entry name="uuid">3121eb64-8f58-4f04-b094-6fefc3597d1d</entry>

<entry name="family">Virtual Machine</entry>

</system>

</sysinfo>

<os>

<type>hvm</type>

<boot dev="hd"/>

<smbios mode="sysinfo"/>

</os>

<features>

<acpi/>

<apic/>

<hyperv>

<relaxed state="on"/>

<vapic state="on"/>

<spinlocks retries="8191" state="on"/>

</hyperv>

</features>

<cputune>

<shares>16384</shares>

</cputune>

<clock offset="localtime">

<timer name="pit" tickpolicy="delay"/>

<timer name="rtc" tickpolicy="catchup"/>

<timer name="hpet" present="no"/>

<timer name="hypervclock" present="yes"/>

</clock>

<cpu match="exact">

<topology sockets="16" cores="16" threads="1"/>

</cpu>

<devices>

<disk type="network" device="disk">

<driver type="raw" cache="none"/>

<source protocol="rbd" name="nova_instances/3121eb64-8f58-4f04-b094-6fefc3597d1d_disk">

<host name="10.168.4.4" port="6789"/>

<host name="10.168.4.6" port="6789"/>

<host name="10.168.4.8" port="6789"/>

</source>

<auth username="cinder">

<secret type="ceph" uuid="c8ff7874-ac9d-4897-ae01-b8a29f2c3488"/>

</auth>

<target bus="virtio" dev="vda"/>

<iotune>

<read_bytes_sec>52428800</read_bytes_sec>

<write_bytes_sec>52428800</write_bytes_sec>

</iotune>

</disk>

<disk type="network" device="cdrom">

<source protocol="rbd" name="nova_instances/3121eb64-8f58-4f04-b094-6fefc3597d1d_disk.config">

<target bus="ide" dev="hdd"/>

<interface type="bridge">

<mac address="fa:16:3e:bf:cc:a9"/>

<model type="virtio"/>

<source bridge="vlan1217"/>

</interface>

<serial type="file">

<source path="/data/nova/instances/3121eb64-8f58-4f04-b094-6fefc3597d1d/console.log"/>

</serial>

<serial type="pty"/>

<input type="tablet" bus="usb"/>

<graphics type="vnc" autoport="yes" keymap="en-us" listen="0.0.0.0"/>

<video>

<model type="cirrus"/>

</video>

<memballoon model="virtio">

<stats period="10"/>

</memballoon>

</devices>

</domain>

virsh create libvirt.xml 報錯

error: Failed to create domain from libvirt.xml

error: unsupported configuration: CPU topology doesn't match maximum vcpu count

libvirt qemu版本

[root@l23-4-40 3121eb64-8f58-4f04-b094-6fefc3597d1d]# virsh -V

Virsh command line tool of libvirt 3.2.0

error: unsupported configuration: CPU topology doesn't match maximum vcpu count 問題解決

需要在配置裡去除 <topology sockets="16" cores="16" threads="1"/> 解決問題

Windows 核心問題

但是 Windows 系統核心識别異常,隻能識别8核,16核無法顯示,需要添加“<topology sockets="16" cores="16" threads="1"/>” 但是無法啟動

如何解決Windows 識别 16 核問題,求解

本文轉自 swq499809608 51CTO部落格,原文連結:http://blog.51cto.com/swq499809608/2058813

繼續閱讀