{{ inventory_hostname }} {{ ((install.vm.memory | human_to_bytes) / 1024) | int }} {{ ((install.vm.memory | human_to_bytes) / 1024) | int }} {% if 'virtiofs' in install.vm %} {% endif %} {{ install.vm.numcpus }} {% if (install.efi | default(false)) %} {% else %} {% endif %} hvm {% if vm_create_installer %} {% if install_distro == 'debian' or install_distro == 'kali' %} {{ installer_tmpdir }}/linux {{ installer_tmpdir }}/initrd.gz console=ttyS0,115200n8 auto {% elif install_distro == 'openbsd' or install_distro == 'ubuntu' %} {% endif %} {% else %} {% for device in install.vm.boot | default(['hd']) %} {% endfor %} {% endif %} {% if 'cpu' in install.vm %} {% if 'model' in install.vm.cpu %} {{ install.vm.cpu.model }} {% endif %} {% if 'topology' in install.vm.cpu %} {% endif %} {% for feature, policy in (install.vm.cpu.features | default({})).items() %} {% endfor %} {% else %} {% endif %} destroy {% if vm_create_installer %} destroy destroy {% else %} restart restart {% endif %} /usr/bin/kvm /dev/random {% if vm_create_installer %} {% if install_distro == 'openbsd' or install_distro == 'ubuntu' %} {% endif %} {% endif %} {% if 'cdrom' in install.vm %} {% for device,image in install.vm.cdrom.items() %} {% endfor %} {% endif %} {% if 'disks' in install %} {% if 'scsi' in install.disks %} {% endif %} {% for bus in ['virtio', 'scsi'] %} {% for device, src in (install.disks[bus] | default({})).items() %} {% if src.type == 'lvm' %} {% elif src.type == 'zfs' %} {% elif src.type == 'blockdev' %} {% elif src.type == 'image' %} {% endif %} {% endfor %} {% endfor %} {% endif %} {% if 'virtiofs' in install.vm %} {% for tag,fs in install.vm.virtiofs.items() %} {% endfor %} {% endif %} {% if 'interfaces' in install %} {% for if in install.interfaces %} {% if 'mac' in if %} {% endif %}
{% endfor %} {% endif %} {% if 'pci_passthrough' in install.vm %} {% for device in install.vm.pci_passthrough %}
{% endfor %} {% endif %} {% if 'graphics' in install.vm %} {% endif %}