{{ vm.name }} {{ vm.uuid }} {{ vm.title }} {{ vm.memory }} {{ vm.memory }} {{ vm.cores * vm.threads }} {% set pairs = vm.physical_cpus.split(',') %} {% set ns = namespace(vcpu=0) %} {% for pair in pairs %} {% set parts = pair.split('-') %} {% set ns.vcpu = ns.vcpu + 1 %} {% set ns.vcpu = ns.vcpu + 1 %} {% endfor %} hvm /usr/share/edk2/ovmf/OVMF_CODE_4M{% if vm.secure_boot %}.secboot{% endif %}.qcow2 /var/lib/libvirt/qemu/nvram/{{ vm.name }}_VARS.fd.qcow2 {% if vm.enable_hyperv is defined %} {% if vm.enable_hyperv | default(false) %} {% endif %} {% endif %} {% if vm.cpu is defined %} {{ vm.cpu }} {% else %} {% endif %} {% if vm.enable_hyperv is defined %} {% if vm.enable_hyperv | default(false) %} {% endif %} {% endif %} destroy restart destroy {{ vm.emulator | default("/usr/bin/qemu-system-x86_64") }}
{% for block_dev in vm.block_devs %} {% endfor %} {% if vm.cloud_init is defined %} {% if vm.cloud_init | default(false) %} {% endif %} {% endif %} {% if vm.cdrom %}
{% endif %}
{% if vm.smartcard is defined %} {% if vm.smartcard | default(false) %}
{% endif %} {% endif %} {% if vm.virtio_fs is defined %} {% for fs in vm.virtio_fs %} {% endfor %} {% endif %}
{% if vm.tablet is defined %} {% if vm.tablet | default(false) %} {% endif %} {% endif %} {% if vm.console %} {% endif %} {% if vm.tpm %} {% endif %} {% if vm.audio %}