We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9b954 commit 10f7947Copy full SHA for 10f7947
templates/vm.xml.j2
@@ -3,9 +3,14 @@
3
<memory>{{ libvirt_vm_memory_mb | int * 1024 }}</memory>
4
<vcpu>{{ libvirt_vm_vcpus }}</vcpu>
5
<clock sync="localtime"/>
6
+ <on_poweroff>destroy</on_poweroff>
7
+ <on_reboot>restart</on_reboot>
8
+ <on_crash>destroy</on_crash>
9
<os>
10
<type arch='{{ libvirt_vm_arch }}'{% if libvirt_vm_machine is not none %} machine='{{ libvirt_vm_machine }}'{% endif %}>hvm</type>
11
<bootmenu enable='no'/>
12
+ <boot dev='hd'/>
13
+ <boot dev='network'/>
14
<bios useserial='yes'/>
15
</os>
16
<cpu{% if libvirt_vm_cpu_mode is not none %} mode='{{ libvirt_vm_cpu_mode }}'{% endif %}>
0 commit comments