{{ server_hostname }}
{{ server_vm_ram }}
{{ server_vm_ram }}
{% set _vcpus_threads = ((server_vm_vcpus | int) // 2) %}
{% set vcpus_threads = (_vcpus_threads | int) == 0 | ternary('1', _vcpus_threads) %}
{% set vcpus = (server_vm_vcpus | int) * (vcpus_threads | int) %}
{{ vcpus | int }}
/machine
hvm
destroy
restart
destroy
/usr/bin/kvm-spice
{% for _key, _value in server_networks.items()|sort(attribute='1.iface') %}
{% if _key == server_vm_primary_network %}
{% endif %}
{% endfor %}
/dev/random