mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
When cpu mode was set to host-passthrough the template would skip setting all other settings for the cpu, while it appears from the documentation that it supports use of feature elements, and testing confirms that it also supports the topology element. https://libvirt.org/formatdomain.html#cpu-model-and-topology Fixes: #975
40 lines
930 B
XML
40 lines
930 B
XML
<domain type='' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
|
|
<name></name>
|
|
<title></title>
|
|
<description></description>
|
|
<uuid></uuid>
|
|
<memory></memory>
|
|
<vcpu>1</vcpu>
|
|
<cpu mode='host-passthrough'>
|
|
<feature policy='optional' name='vmx'/>
|
|
<feature policy='optional' name='svm'/>
|
|
<topology sockets='1' cores='2' threads='1'/>
|
|
</cpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
<kernel></kernel>
|
|
<initrd></initrd>
|
|
<cmdline></cmdline>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<clock offset='utc'>
|
|
</clock>
|
|
<devices>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target port='0'/>
|
|
</console>
|
|
<input type='mouse' bus='ps2'/>
|
|
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us'/>
|
|
<video>
|
|
<model type='cirrus' vram='9216' heads='1'/>
|
|
</video>
|
|
</devices>
|
|
</domain>
|