-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after reboot machine #73
Comments
You might want to have a look at #70 |
I had already tested it but without success ... I will try again. Thanks |
Well, the main idea is that you need to add an UEFI boot entry for /boot/efi/EFI/redhat/shimx64.efi But that definitely should be fixed in the script itself, my proposal here and in #70 is just a quick bandaid. |
I tested the script now by creating a new VM in Oracle Cloud with CentOS 8 then running the migration script. After rebooting, I get the following message: System BootOrder not found. Initializing defaults. The system is not usable after running the script. |
Right, we still need to fix the UEFI use-case. I was hoping @aburmash would submit a fix for it. :) |
Yeah. Will try to do it this week. |
The VM boots to the grub> prompt. The entry is unbootable. If I try to load the kernel manually by using the following commands on the grub prompt: set prefix=(hd0,gpt2)/boot/grub The VM just hangs. |
What VM shape are you using? I want to reproduce this internally using the same config. |
VM.Standard.E2.1 |
Do you mean |
Righto. I'll have to find another tenancy that still has access to those shapes. I'm busy testing a |
Ok, it works fine with a VM.Standard2.1. I'll test the E3/E4 Flex shapes as well. I'm still trying to find access to a Standard.E2.1 instance. I think that's a legacy shape that was replaced by the E3 and E4 Flex. If you have access to those shapes, can you see if those reboot successfully? |
That shape was located in "Specialty and Previous Generation" I am currently on a trial mode, it could be that. I don't have access to the E3/E4s but I will test tomorrow on a VM.Standard2.1 |
E3/E4 shapes work for me too. Let me know how you go. |
This indicates that grub did not load the grub config |
Good, I tested the migration script again but without success. I did what aburmash said and created the UEFI boot entry for Oracle Linux but when the system reboots, it still doesn't work. I execute the commands in the following order: 1.-curl https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh
When rebooting, I lose the machine, and it is necessary to restore a backup. |
Here is the problem. There should be no 1 there. Overall, just do not reboot immediately after running efibootmgr. You can run efibootmgr -v and check if output matches expectations.
So you can easily check by this output:
PARTUUID from blkid output matches what i see in efibootmgr output.
|
@nameeeeeek |
Thanks for the answers. Ah ok, I understand ... I did it all over again but now I didn't run When checking through
Now there is no error in Sorry to be boring but I wanted to solve this |
No, you are not boring, in fact i am gathering feedback from you for the fix on our side. And i am really grateful you are going through this, this helps A LOT! OK, i can understand that error. So it all comes down to inability to install an new ( oracle ) shim. BTW, do not reboot the box while all pieces are not in place. You need:
if you have everything of that on place, you should be fine. |
When you talk about
, are you referring to the errors after running the script? |
Well, if you have them during the script - yes. But i was referring to this:
|
Now i don't have errors when install shim...
How i can install Grub2 ? |
yes.
|
How i can install that ? (oracle shim and oracle grub2) |
if you have run migration script and see no errors:
If that matches - you have oracle shim and grub2 You can double check that everything is fine with if you see shimx64.efi , grubx64.efi and grub.cfg there - you are good to go. // do not forget about efibootmgr entry |
I've seen that I can't even migrate |
Yeah, you have Centos shim.
http://mirror.centos.org/centos/7/os/x86_64/Packages/shim-x64-15-8.el7.x86_64.rpm
|
and surely |
Unfortunately I terminated the instance and cannot test the grub config. I just tried on fresh CentOS 8 install using the VM.Standard2.1 shape . So after running the script -> rebooted; the system is fine and the migration was successful. |
Good morning, I did everything right but when rebooting, the machine is without image again ...
I no longer know what to do to make this work .... |
At what stage it's failing right now ? Can't find shim or drops to grub cmdline ? |
It doesn't fail at all ... I did everything as we talked about yesterday, but even with those workarounds, it didn't work ... I'll wait for the script to be corrected, to see if it works. |
When I try to install shim it gives this ... The problem can only come from here
|
We have just released updated grub2 and shim for OL7 and OL8 and i'd like people to try reproducing the issue. |
I'll just explain everything I did even to help you internally in case something like that happens to someone else First I started by giving disabled in all repo, except Centos I ran the script (sudo bash centos2ol.sh > /var/log/upgrade.log 2>&1) After running the script, it was necessary to create the boot for Oracle with the command (efibootmgr -c -d /dev/sda -p 1 -L "Oracle Linux" -l "\EFI\redhat\shimx64.efi") It was also necessary to delete the shim and reinstall it. |
Ahoy, everyone. A year later I've been doing migration simulations on EFI systems and it appears, the only way I can make a system bootable after migration is by efibootmgr magic. Am I missing something or is that the case? |
Good afternoon,
After following your tutorial to switch from CentOS 7 to Oracle Linux, I found an error.
I do everything right and there is no problem. It turns out that when I reboot, the machine no longer starts me and gives the following errors:
Falied to load image \ EPI \ centos \ grubx64.efi - Not Found
start_image () returned Not Found
Can you help, please?
Thanks!
errro_centos8
The text was updated successfully, but these errors were encountered: