超融合HCI 【HCI-VT】Linux下UEFI转seabios

【HCI-VT】Linux下UEFI转seabios

更新时间:2023-06-14 00:20:19
GUEST OS:  any linux OS
虚拟机迁移到HCI后,开机有如下报错:
Guest has not initialized the display


参考以下KB无法解决,则按后面的步骤 操作:
https://support.sangfor.com.cn/cases/read?product_id=33&category_id=17785
https://support.sangfor.com.cn/cases/read?product_id=33&category_id=17783
 
 
UEFI与虚拟显卡不兼容。
主要思路:把UEFI转换为seabios
******************
先打快照
******************
步骤如下:
1、用GUEST OS对应的ISO引导并进入救援模式(seabios 引导)
https://support.sangfor.com.cn/cases/read?product_id=33&category_id=18168
2、开始进行转换操作
执行grub2-install /dev/sda ,重新安装grub:

3、重新生成grub2的引导文件

4、重新开机,并确认是否能正常进系统。
问题1: 执行grub2-install提示"grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory."
确认grub2-pc-modules包已安装,如果没有的话,就挂载iso镜像,手工安装一下:

不要困惑,chroot下可以直接安装rpm包。
问题2:如果centos 7之前的版本怎么办?
直接从uefi的目录把grub.cfg文件cp到/boot/grub/grub.cfg即可。
centos 7之前是用的grub,后面版本改成了grub2,对应 的目录 也不一样,操作时要注意下。