Debian Codegraph @

ansible_collections/community/libvirt/tests/integration/targets/virt_interfaces/files/vm_template.xml.j2

raw
1 <domain type='kvm'>
2 <name>{{ vm_name }}</name>
3 <memory unit='MiB'>{{ vm_ram_mb }}</memory>
4 <vcpu placement='static'>{{ vm_vcpus }}</vcpu>
5 <os>
6 <type arch='x86_64' machine='q35'>hvm</type>
7 <boot dev='hd'/>
8 </os>
9 <cpu mode="host-passthrough" check="none" migratable="on"/>
10 <on_poweroff>destroy</on_poweroff>
11 <on_reboot>restart</on_reboot>
12 <on_crash>destroy</on_crash>
13 <clock offset="utc">
14 <timer name="rtc" tickpolicy="catchup"/>
15 <timer name="pit" tickpolicy="delay"/>
16 <timer name="hpet" present="no"/>
17 </clock>
18 <devices>
19 <emulator>/usr/libexec/qemu-kvm</emulator>
20 <disk type='file' device='disk'>
21 <driver name='qemu' type='qcow2'/>
22 <source file='{{ libvirt_disk_path }}/{{ vm_name }}.qcow2'/>
23 <target dev='vda' bus='virtio'/>
24 <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
25 </disk>
26 <channel type="unix">
27 <target type="virtio" name="org.qemu.guest_agent.0"/>
28 <address type="virtio-serial" controller="0" bus="0" port="1"/>
29 </channel>
30 <input type='tablet' bus='usb'>
31 <address type='usb' bus='0' port='1'/>
32 </input>
33 <input type='mouse' bus='ps2'/>
34 <input type='keyboard' bus='ps2'/>
35 <graphics type="vnc" port="-1" autoport="yes">
36 <listen type="address"/>
37 </graphics>
38 <video>
39 <model type="virtio" heads="1" primary="yes"/>
40 <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
41 </video>
42 <memballoon model='virtio'>
43 <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
44 </memballoon>
45 <rng model='virtio'>
46 <backend model='random'>/dev/urandom</backend>
47 <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
48 </rng>
49 <interface type="network">
50 <mac address='{{ mac_address }}'/>
51 <source network="default"/>
52 <model type="virtio"/>
53 <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
54 </interface>
55 <interface type="network">
56 <mac address='{{ mac_address_2 }}'/>
57 <source network="default"/>
58 <model type="virtio"/>
59 <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
60 </interface>
61
62 </devices>
63 </domain>