summaryrefslogtreecommitdiff
path: root/roles/vm/guest/create/templates/libvirt-domain.xml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-19 01:47:04 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-19 01:47:04 +0100
commit0085933dabbe4d36e3e1bf0a5a7e1f09e5c3645c (patch)
tree46f5802d79964b60b58ade02bd412a11c9caf781 /roles/vm/guest/create/templates/libvirt-domain.xml.j2
parentdocker/engine: generic plugin handling (diff)
vm/guest: some fixes for ubuntu installer, still not fully working
Diffstat (limited to 'roles/vm/guest/create/templates/libvirt-domain.xml.j2')
-rw-r--r--roles/vm/guest/create/templates/libvirt-domain.xml.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/vm/guest/create/templates/libvirt-domain.xml.j2 b/roles/vm/guest/create/templates/libvirt-domain.xml.j2
index e578e0f8..d29e8e40 100644
--- a/roles/vm/guest/create/templates/libvirt-domain.xml.j2
+++ b/roles/vm/guest/create/templates/libvirt-domain.xml.j2
@@ -19,12 +19,12 @@
{% endif %}
<type machine='q35'>hvm</type>
{% if vm_create_installer %}
-{% if install_distro == 'debian' or install_distro == 'ubuntu' or install_distro == 'kali' %}
+{% if install_distro == 'debian' or install_distro == 'kali' %}
<kernel>{{ installer_tmpdir }}/linux</kernel>
<initrd>{{ installer_tmpdir }}/initrd.gz</initrd>
<cmdline>console=ttyS0,115200n8 auto</cmdline>
<boot dev='hd'/>
-{% elif install_distro == 'openbsd' %}
+{% elif install_distro == 'openbsd' or install_distro == 'ubuntu' %}
<boot dev='cdrom'/>
{% endif %}
{% else %}
@@ -72,7 +72,7 @@
</rng>
{% if vm_create_installer %}
-{% if install_distro == 'openbsd' %}
+{% if install_distro == 'openbsd' or install_distro == 'ubuntu' %}
<disk type='file' device='cdrom'>
<driver name='qemu'/>
<source file='{{ installer_tmpdir }}/{{ inventory_hostname }}.iso'/>