一.配置firmware源
cat /etc/yum.repos.d/firmware.repo
[qemu-firmware-jenkins]
name=firmware for qemu, built by jenkins, fresh from git repos
baseurl=https://www.kraxel.org/repos/jenkins/
metadata_expire=5m
enabled=1
gpgcheck=0
二.安装ovmf
yum install edk2.git-ovmf-x64
yum install OVMF #uefi的virt-manger图形组件
三.配置 libvirtd以启用UEFI
具体的目录以实际OVMF.fd存放的目录为准,我这里指定的是
# cat /etc/libvirt/qemu.conf
vnc_listen = "0.0.0.0"
user = "root"
group = "root"
dynamic_ownership = 1
#lock_manager = "lockd"
nvram = [
"/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
————————————————
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://www.hqyman.cn/post/7037.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~