diff options
Diffstat (limited to 'ansible/deployment_poc/templates/libvirt-template.xml.j2')
-rw-r--r-- | ansible/deployment_poc/templates/libvirt-template.xml.j2 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ansible/deployment_poc/templates/libvirt-template.xml.j2 b/ansible/deployment_poc/templates/libvirt-template.xml.j2 index 8c4170d..28826e1 100644 --- a/ansible/deployment_poc/templates/libvirt-template.xml.j2 +++ b/ansible/deployment_poc/templates/libvirt-template.xml.j2 @@ -12,8 +12,11 @@ </resource> <os> <type arch='x86_64' machine='pc-q35-5.2'>hvm</type> + <!--loader readonly='yes' type='pflash'>/opt/firmware/OVMF_09012022_RELEASE_HTTPBOOT.fd</loader--> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x86_64-code.bin</loader> <nvram>/var/lib/libvirt/qemu/nvram/{{ inventory_hostname }}_VARS.fd</nvram> + <boot dev='hd'/> + <boot dev='network'/> <bootmenu enable='no'/> </os> <features> @@ -57,15 +60,15 @@ </pm> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> - <!--disk type='file' device='disk'> + <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> - <source file='/mnt/arr1-store1/vmstore1/{{ inventory_hostname }}_root_disk.qcow2' index='2'/> + <!--source pool='{{ storage.name }}' volume='{{ inventory_hostname }}_root_disk.qcow2' index='1'/--> + <source file='{{ volume_path }}'/> <backingStore/> <target dev='vda' bus='virtio'/> - <boot order='1'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/> - </disk--> + </disk> <!--disk type='file' device='cdrom'> <driver name='qemu'/> <source file='/mnt/iso/openSUSE-Leap-15.3-NET-x86_64.iso'/> |