tech:grub_efi2bios_boot_redhat7_uefi_efi_migration_vers_bios_p2v
Table des matières
Grub efi2bios boot RedHat7 UEFI EFI migration vers BIOS P2V
Voilà que je “déghost” ma belle image système dans une VM et ca ne boot pas.
La machine était en UEFI avec des partitions GPT.
Solution : Garder GPT (ne pas passer en MBR), install Grub2 (en plus de Grug2-efi)
Faire l'inverse : (passer à UEFI) :
Depuis une machine en UEFI
yum install grub2 #cp -p /boot/efi/EFI/redhat/grub.cfg /boot/grub2/grub.cfg grub2-mkconfig -o /boot/grub2/grub.cfg sed -i -e 's/linuxefi/linux/g' /boot/grub2/grub.cfg sed -i -e 's/initrdefi/initrd/g' /boot/grub2/grub.cfg grub2-install --modules=part_gpt --target=i386-pc --recheck --boot-directory=/boot /dev/sda --force
Depuis une machine en mode BIOS
Par exemple, sur la VM en bootant sur le DVD de RedHat en mode rescue
rpm -Uvh grub2-2.02-0.29.el7.x86_64.rpm #cp -p /boot/efi/EFI/redhat/grub.cfg /boot/grub2/grub.cfg grub2-mkconfig -o /boot/grub2/grub.cfg grub2-install --modules=part_gpt --target=i386-pc --recheck --boot-directory=/boot /dev/sda --force
tech/grub_efi2bios_boot_redhat7_uefi_efi_migration_vers_bios_p2v.txt · Dernière modification : de 127.0.0.1
