CentOS 8 Install does not boot on W10Pro Hyper-V

Issues related to applications and software problems and general support
Post Reply
johmut
Posts: 11
Joined: 2020/04/22 09:02:04

CentOS 8 Install does not boot on W10Pro Hyper-V

Post by johmut » 2020/07/30 18:27:23

Hi,
Just let the Windows 10 Feature Update 2004 install on my W10Pro box: Now on version 19041.388 all seemed well.
Creating new Hyper-V VM to boot from freshly downloaded CentOS 8.2 ISO. Gen 2 VM, Secure Boot Enabled, Microsoft UEFI Certificate Authority selected. Graphical install done fine, minimal installation with Guest Virtualization & Headless Management optional packages selected.
When done, reboot into black screen displaying Ḧyper-V, never booting into CentOS ?
Hyper-V Manager shows VM as running but Hearbeat : No Contact ! can't ping the machine, can't shut down, can only turn off ...
When disabling secure boot, connect and start VM results in black screen with Hyper-V centered and red bar on top with open padlock ...

FYI: Ubuntu 20.04 VM with GUI runs fine, Kali VM with GUI runs fine, just CentOS VM without GUI does not boot ...
used to run fine before W10Pro FU 2004 ... now can't even start my old CentOS Stream VM server without GUI ...
I tried disabling dynamic memory management, no better. I tried manual partitioning and automatic, no better.

Who's broken what ? or what am I missing here ? How to debug Heartbeat : No Contact ? No longer possible to disable secure boot ?

TIA,
Joh

johmut
Posts: 11
Joined: 2020/04/22 09:02:04

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by johmut » 2020/07/31 07:27:43

UPDATE! The problem above is on my main LAB box: an AMD Ryzen 7 3800X with 32GB RAM, running W10Pro 2004 19041.388.

This morning I tried a fresh CentOS 8 VM install from ISO on my Genuine Intel Core i5 laptop (running the same W10Pro 2004 19041.388 & Hyper-V) ...
and the CentOS 8 install from ISO reboots fine into the VM ! Wow ! This is bad (for me) as I need it to run on my LAB box, not on my laptop ...

On my AMD Ryzen LAB:
- My existing CentOS Stream VM no longer boots after regular maintenance yesterday (dnf update)
- Any new CentOS 8 VM installs but reboots into a Black Screen with Hyper-V large and center

So, the question becomes: What could keep my CentOS 8 VMs from booting on my AMD Ryzen LAB box ? and more importantly, what can I do ?

TIA,
joh

neige
Posts: 4
Joined: 2020/07/31 15:09:38

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by neige » 2020/07/31 15:15:49

Hi,
I confirm that after updating CentOS8 today my Hyper-V Virtual Machines all do not work. The VM all hang on the Hyper-V logo. No way to get anything else. I am running Hyper-V on Server 2019 Datacennter version 17763.1369.
Restoring a backup mage at 4 AM this morning with Windows Server Backup did not work either.
Luckily I had exported the all the Virtual Machines last Sunday and I was able to import them in Hyper-V and they work still.
I disabled all System Updates in Plesk and wait until the issue is solved.
I hope my input helps.
Have all a great weekend.
BR
N :)

User avatar
TrevorH
Forum Moderator
Posts: 29113
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by TrevorH » 2020/07/31 15:41:13

If you just updated the kernel/grub2/shim in the last 2 days then you may be suffering from the symptoms of the broken security update that came out for RHEL to fix the "BootHole" vulnerability. It's being discussed for CentOS 8 in viewtopic.php?f=57&t=75187
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

neige
Posts: 4
Joined: 2020/07/31 15:09:38

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by neige » 2020/07/31 16:31:24

TrevorH wrote:
2020/07/31 15:41:13
If you just updated the kernel/grub2/shim in the last 2 days then you may be suffering from the symptoms of the broken security update that came out for RHEL to fix the "BootHole" vulnerability. It's being discussed for CentOS 8 in viewtopic.php?f=57&t=75187
TY TrevorH.
Much appreciated ;)
I read the posts in the topic and I checked out the workaround. Cool stuff.
For the moment I managed to fix all my Virtual Machines but importing a previous export.
I wish you a great evening.
BR
N :)

johmut
Posts: 11
Joined: 2020/04/22 09:02:04

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by johmut » 2020/08/01 08:13:20

OK, so it seems I am a victim of the boothole fix bug ... A couple of questions remain however :

1. Why is only my AMD Ryzen LAB box affected ? I managed to install CentOS 8 from the same ISO and (Secure) boot on my i5 laptop the next day ...
2. How does one fix a Hyper-V VM that is not booting beyond the BIOS ? I believe I can mount the .vhdx and could edit some (grub) files manually ?
3. Does anyone know why I cannot even boot my VM when I disable Secure Boot ? Should it not just boot from the vHDD (moved to the front in the boot order) ? All I get is a big RED bar with a centered open padlock icon atop black screen with Hyper-V.

TIA,
joh

johmut
Posts: 11
Joined: 2020/04/22 09:02:04

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by johmut » 2020/08/02 09:05:16

Is the bug in the BootHole patch fixed yet ? How to fix a CentOS 8 Hyper-V VM that does not boot ?
Should I boot (Live) troubleshooting mode from the ISO ? and try to fix as one would do on a physical machine ? or mount the .vhdx and edit manually ?

TIA,
joh

User avatar
TrevorH
Forum Moderator
Posts: 29113
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by TrevorH » 2020/08/02 11:08:04

No, it's not fixed yet.

You'll have to boot from alternate media, download all the old rpms from the mirror network locally then do a yum --disablerepo=\* downgrade *.rpm from a directory containing all of those.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

johmut
Posts: 11
Joined: 2020/04/22 09:02:04

Re: CentOS 8 Install does not boot on W10Pro Hyper-V

Post by johmut » 2020/08/04 14:55:20

Hi All,

Just wanted to share the solution ....
I re-attached the CentOS install media ISO as a DVD to the VM and moved it to the top of the boot sequence.
From the boot menu I chose "Troubleshooting" and "Rescue ..." then option 1 to got into root shell
#chroot /mnt/sysimage
I configured networking using #nmtui to be able to reach the CentOS repo mirrors having the latest packages
#dnf update shim*
installed the _2 version of this package (that contains the fix to the patch of the BootHole bug :-)
#exit
#exit
Turn off the VM, move the DVD ISO to the back of the boot sequence line and connect+start the VM
...
SELinux had to do an auto-relabel (which took a while)
...
Now, my VM boots fine, Issue solved !

KR,
Johan

Post Reply

Return to “CentOS 8 - General Support”