KVM supports UEFI boot create a virtual machine

Environment: rhel7.5

I. Configuration firmware source

wget http://www.kraxel.org/repos/firmware.repo -O /etc/yum.repos.d/firmware.repo

II. Installation ovmf

edk2.git the install-ovmf-yum x64-
yum the install OVMF #uefi pattern of virt-manger component
III. libvirtd configured to enable UEFI

Configure libvirtd to advertise UEFI support

Libvirt needs to know about UEFI->NVRAM config file mapping, so it can advertise it to tools like virt-manager/virt-install.

As root, edit /etc/libvirt/qemu.conf, and add this section at the top of the file:

nvram = [

"/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd",

]

IV. Restart libvirtd

systemctl restart libvirtd

V. Creating a Virtual Machine

virt-manager
KVM supports UEFI boot create a virtual machine

So you can choose the firmware is uefi
note that if the video mode is vmvga or QXL will lead to a black screen at startup, and replaced it vga mode

Guess you like

Origin blog.51cto.com/13810716/2440319