環境:rhel7.5git
一.配置firmware源app
wget http://www.kraxel.org/repos/firmware.repo -O /etc/yum.repos.d/firmware.repoide
二.安裝ovmfthis
yum install edk2.git-ovmf-x64
yum install OVMF #uefi的virt-manger圖形組件
三.配置 libvirtd以啓用UEFIrest
Configure libvirtd to advertise UEFI supportcode
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:blog
nvram = [get
"/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd",
]虛擬機
四.重啓libvirtd
systemctl restart libvirtd
五.建立虛擬機
virt-manager
這樣就能夠選擇的固件是uefi注意,若是視頻模式爲vmvga或QXL會致使啓動時黑屏,換成vga模式就能夠了