Skip to content

Commit 0dcfb85

Browse files
committed
kvm net
1 parent 9a3850b commit 0dcfb85

File tree

7 files changed

+857
-1
lines changed

7 files changed

+857
-1
lines changed

201611/20161111_01.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ or
5353
# wget http://mirrors.aliyun.com/centos/6.6/isos/x86_64/CentOS-6.6-x86_64-bin-DVD1.iso
5454
```
5555

56+
配置
57+
58+
```
59+
vi /etc/libvirt/libvirtd.conf
60+
61+
listen_tls = 0
62+
```
63+
5664
启动libvirtd
5765

5866
```
@@ -222,9 +230,17 @@ virsh # edit kvm101
222230
<memory>83886080</memory>
223231
<currentMemory>83886080</currentMemory>
224232
<vcpu>10</vcpu>
225-
<cpu mode='host-passthrough'>
233+
<cpu mode='host-passthrough'> # 注意这里可能要指定CPU,而不是host-passthrough,否则可能保存会失败,或者自动抹除。 /usr/libexec/qemu-kvm -cpu ? 可以得到支持的CPU
226234
<model fallback='allow'/>
227235
</cpu>
236+
--------- 例如 /usr/share/libvirt/cpu_map.xml
237+
<cpu match='exact'>
238+
<model fallback='forbid'>Nehalem</model>
239+
<vendor>Intel</vendor>
240+
<feature policy='require' name='fma'/> # 这里可以指定CPU flag
241+
<feature policy='require' name='pse'/> # 这里可以指定CPU flag
242+
</cpu>
243+
---------
228244
<os>
229245
<type arch='x86_64' machine='rhel6.2.0'>hvm</type>
230246
<boot dev='hd'/>

0 commit comments

Comments
 (0)