kvm创建uefi虚拟机

作者:吴业亮
博客:wuyeliang.blog.csdn.net

一.配置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

kvm创建uefi虚拟机_第1张图片

你可能感兴趣的:(kvm,uefi,kvm)