correct libvirt xml
This commit is contained in:
parent
07cbae13f7
commit
0a969fddb4
@ -74,7 +74,6 @@
|
|||||||
community.libvirt.virt:
|
community.libvirt.virt:
|
||||||
command: define
|
command: define
|
||||||
autostart: false
|
autostart: false
|
||||||
name: "{{ vm_name }}"
|
|
||||||
xml: "{{ lookup('template', 'vm_template.xml.j2') }}"
|
xml: "{{ lookup('template', 'vm_template.xml.j2') }}"
|
||||||
|
|
||||||
- name: start vm
|
- name: start vm
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<partition>/machine</partition>
|
<partition>/machine</partition>
|
||||||
</resource>
|
</resource>
|
||||||
<os>
|
<os>
|
||||||
<type arch={{ vm_machine_arch }} machine={{ vm_machine_type }}>hvm</type>
|
<type arch='{{ vm_machine_arch }}' machine='{{ vm_machine_type }}'>hvm</type>
|
||||||
<loader readonly='yes' secure='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd</loader>
|
<loader readonly='yes' secure='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd</loader>
|
||||||
<nvram template=/usr/share/edk2-ovmf/x64/OVMF_VARS.fd>{{ firmware_vhd_pool_dir }}/{{ vm_name }}_VARS.fd</nvram>
|
<nvram template=/usr/share/edk2-ovmf/x64/OVMF_VARS.fd>{{ firmware_vhd_pool_dir }}/{{ vm_name }}_VARS.fd</nvram>
|
||||||
<boot dev='hd'/>
|
<boot dev='hd'/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<smm state='on'/>
|
<smm state='on'/>
|
||||||
</features>
|
</features>
|
||||||
<cpu mode='host-passthrough' check='none' migratable='on'>
|
<cpu mode='host-passthrough' check='none' migratable='on'>
|
||||||
<topology sockets='1' dies='1' cores={{ vm_cpu_cores }} threads={{ vm_cpu_threads }}/>
|
<topology sockets='1' dies='1' cores='{{ vm_cpu_cores }}' threads='{{ vm_cpu_threads }}'/>
|
||||||
</cpu>
|
</cpu>
|
||||||
<clock offset='utc'>
|
<clock offset='utc'>
|
||||||
<timer name='rtc' tickpolicy='catchup'/>
|
<timer name='rtc' tickpolicy='catchup'/>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<controller type='sata' index='0'/>
|
<controller type='sata' index='0'/>
|
||||||
<controller type='virtio-serial' index='0'/>
|
<controller type='virtio-serial' index='0'/>
|
||||||
<interface type='bridge'>
|
<interface type='bridge'>
|
||||||
<mac address={{ vm_mac_prefix }}{{ vm_number }}'/>
|
<mac address='{{ vm_mac_prefix }}{{ vm_number }}'/>
|
||||||
<source bridge='{{ vm_bridge }}'/>
|
<source bridge='{{ vm_bridge }}'/>
|
||||||
<model type='virtio'/>
|
<model type='virtio'/>
|
||||||
</interface>
|
</interface>
|
||||||
|
Loading…
Reference in New Issue
Block a user