我们把KVM和libvirt放在一个6核(12 HT核)机器上进行虚拟化。
问题:虚拟主机中CPU类型错误.
使用了KVM,libvirt,内核版本:
libvirt version: 0.9.8
QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard
Ubuntu 12.04.1 LTS
kernel: 3.2.0-32-generic x86_64 /usr/share/libvirt/ cpu _map.xml不支持最近的cpu类型。
,我真的需要这样的cpu虚拟化吗?,因为某些原因,我们需要在虚拟主机中最大限度地提高cpu性能。我将很高兴在我的虚拟机中提供服务器的i7-3930K CPU@3.20GHz的一些核心。
也许我们做的虚拟化太.?
虚拟主机的xml如下所示:在哪里可以设置cpu -host标志?
<domain type='kvm'>
<name>myVirtualServer</name>
<uuid>2344481d-f455-455e-9558</uuid>
<description>Test-Server</description>
<memory>4194304</memory>
<currentMemory>4194304</currentMemory>
<vcpu>2</vcpu>
<cpu match='exact'>
<model>Westmere</model>
<vendor>Intel</vendor>
</cpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>带有HT的6 (12)核物理服务器的$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Stepping: 7
CPU MHz: 1200.000
BogoMIPS: 6400.05
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 12288K
NUMA node0 CPU(s): 0-11$ lscpu的虚拟服务器(错误的CPU类型,错误的L2-缓存,错误的MHz)
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 15
Stepping: 11
CPU MHz: 3200.012
BogoMIPS: 6400.02
Virtualisation: VT-x
Hypervisor vendor: KVM
Virtualisation type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
NUMA node0 CPU(s): 0,1发布于 2013-01-06 06:06:16
在客户端的xml中
<cpu mode='custom' match='exact'>
<model fallback='allow'>core2duo</model>
<feature policy='require' name='vmx'/>
</cpu>举个例子。virsh编辑,然后重新启动来宾。
编辑。别管这个了。我刚刚重读了你的问题,你已经在这么做了。
https://stackoverflow.com/questions/14061840
复制相似问题