With the new edgeLinux 2 (CentOS), you have to add the yum repo and install it:
https://www.nbalonso.com/centos-7-uefi-boot-kvm/index.html
Then you add this line to your antlet XML after the <type arch= line:
<loader type='rom'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
After upgrading my Antsle to the new edgeLinux 2 (and finally restoring one of my phyiscals to an antlet), I found that the "sata" virtual drive type doesn't work. So I use "ide" for the initial boot.
** Tip: If you add a virtual drive to an antlet as one type (ide, sata, virtio) and want to change it, you can do it directly in the XML without re-importing it:
- add another virtual drive of the type you want (say virtio)
- in the antlet XML, there are 2 lines after the path to the virtual drive that define its type. They look something like:
For IDE:
<target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/>
For SATA:
<target dev='sda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/>
For VIRTIO:
<target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
By putting these 2 lines after the line with the path to the virtual drive, that changes its type
If I want to change a drive from IDE to VIRTIO, I will add a 1 GB virtio drive and then copy its target/address info to my drive.
Then I can delete the 1 GB dummy drive. That way you know the numbers for the address are valid.
Then I change the antlet to use virtio drivers:
I add the ISO for the drivers to the antlet as a CDROM:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
Add a dummy 1 GB virtio virtual drive to the antlet
Boot into the antlet. In the Windows Device Manager, it won't recognize the 1 GB drive. So you update the drivers for the device and get them from the mounted ISO
This gets the virtio storage drivers installed in Windows.
Then I shutdown the antlet and edit the XML to change the drive's type from ide to virtio (using the info mentioned above).
Then delete the lines for the 1 GB drive (everything between and including the <disk and /disk>) you don't need that 1 GB drive anymore. That was just to load the virtio drivers into the O/S.
So, now you should have your main drive using virtio drivers.
You should be able to start the antlet and it (hopefully) will boot into Windows.
In the Windows Device Manager, there's also another unknown device that uses the virtio Balloon memory driver. You can update it's driver too using the virtio ISO (mounted in the Windows antlet).
In my case, since my Windows antlets are "standbys" for my physical computers, I have to re-do the whole ide/virtio dance each time I restore the physical over the virtual (which is why I typically don't restore them until the physical computer dies).