1. XML 基础配置信息 <domain type="kvm"> <uuid>3121eb64-8f58-4f04-b094-6fefc3597d1d</uuid> <name>instance-0000026d</name> <memory>16777216</memory> <vcpu>16</vcpu> <metadata> <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0"> <nova:package version="13.1.4-1.el7"/> nova:nameshut-win.vlan1217</nova:name> nova:creationTime2018-01-08 10:45:24</nova:creationTime> <nova:flavor name="windows-16-16G-100G"> nova:memory16384</nova:memory> nova:disk120</nova:disk> nova:swap0</nova:swap> nova:ephemeral0</nova:ephemeral> nova:vcpus16</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"> <driver type="raw" cache="none"/> <source protocol="rbd" name="nova_instances/3121eb64-8f58-4f04-b094-6fefc3597d1d_disk.config"> <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="ide" dev="hdd"/> <iotune> <read_bytes_sec>52428800</read_bytes_sec> <write_bytes_sec>52428800</write_bytes_sec> </iotune> </disk> <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>

  2. virsh create libvirt.xml 报错 error: Failed to create domain from libvirt.xml error: unsupported configuration: CPU topology doesn't match maximum vcpu count

  3. libvirt qemu版本 [root@l23-4-40 3121eb64-8f58-4f04-b094-6fefc3597d1d]# virsh -V Virsh command line tool of libvirt 3.2.0 See web site at http://libvirt.org/

     Compiled with support for:
      Hypervisors: QEMU/KVM LXC ESX Test
      Networking: Remote Network Bridging Interface netcf Nwfilter VirtualPort
      Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM RBD Gluster
      Miscellaneous: Daemon Nodedev SELinux Secrets Debug DTrace Readline Modular
      
     	[root@l23-4-40 3121eb64-8f58-4f04-b094-6fefc3597d1d]# qemu-img  -V
     	qemu-img version 2.9.0(qemu-kvm-ev-2.9.0-16.el7_4.13.1)
     	Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
    
    1. error: unsupported configuration: CPU topology doesn't match maximum vcpu count 问题解决 需要在配置里去除 ****<topology sockets="16" cores="16" threads="1"/> ****解决问题
  4. Windows 内核问题 但是 Windows 系统内核识别异常,只能识别8核,16核无法显示,需要添加“<topology sockets="16" cores="16" threads="1"/>” 但是无法启动

    ![](http://i2.51cto.com/images/blog/201801/08/1378e5401edf275c682f68fce6d0dd35.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
    ![](http://i2.51cto.com/images/blog/201801/08/c5fffe42e40f870a31bca90055ce88ea.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
    
  5. 如何解决Windows 识别 16 核问题,求解