Merge "Use virtio bus with uefi"

This commit is contained in:
Zuul 2020-06-29 13:20:29 +00:00 committed by Gerrit Code Review
commit e461e36ee9

View File

@ -34,15 +34,8 @@
<disk type='file' device='disk'>
<driver name='qemu' type='{{ disk_format }}' cache='unsafe'/>
<source file='{{ imagefile }}'/>
<!-- NOTE(lucasagomes): The virtio disk controller apparently does
not work with UEFI, so let's use IDE. -->
{% if uefi_loader %}
<target dev='vd{{ letter }}' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='{{ loop.index }}'/>
{% else %}
<target dev='vd{{ letter }}' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0{{ letter }}' function='0x0'/>
{% endif %}
</disk>
{% endfor %}
<controller type='ide' index='0'>