Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

KVM creates a virtual machine that supports UEFI startup

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Environment: rhel7.5

one。 Configure firmware Feed

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

two。 Install ovmf

Yum install edk2.git-ovmf-x64

Virt-manger graphic component of yum install OVMF # uefi

three。 Configure libvirtd 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"

]

four。 Restart libvirtd

Systemctl restart libvirtd

five。 Create a virtual machine

Virt-manager

So the firmware you can choose is uefi

Note that if the video mode is vmvga or QXL, it will cause the screen to go black at startup. Just switch to vga mode.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 226

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report