Hejmo
Contributor
Contributor

Photon freezes at reboot

Installed Photon 4 minimal

 

yum update
systemctl daemon-reload

 

Everything is fine

 

reboot

 

I get a message that it's impossible to unmound a /tmp, then nothing happens

After a hard-reset, Photon boots normally

right after that:

 

reboot

 

now I get a blinking cursor at top-left corner and nothing further happens.

ctrl-alt-del won't do it

need a hard reset

Normal ?

0 Kudos
4 Replies
DCasota
Expert
Expert

Hi,

did you install the generic version? If so, try this :

mkinitrd -q /boot/initrd.img-$(uname -r) $(uname -r)

 

On x86_64, ESXi8 virtual hardware for Photon OS virtual machine, photon-minimal-4.0-c001795b8.iso (Ph4 Rev2), default settings and VMware-hypervisor-optimized selected, it works flawlessly. System shows Kernel 5.10.152-9.ph4-esx.
The /tmp issue shows up if "generic" is selected. System shows Kernel 5.10.152-8.ph4.

You could help the community and generate an issue thread @ https://github.com/vmware/photon. Good catch!

0 Kudos
Hejmo
Contributor
Contributor

It was rebooting fine on Photon 3

It freezes at reboot after upgrade to Photon 4

I tried a fresh install of Photon 4 on another SSD and it's the same behavior.

 

0 Kudos
Hejmo
Contributor
Contributor

I tried your command line and it does not reboot better.

root@photon-6e5a3ae22ff9 [ ~ ]# hostnamectl | grep Kernel
            Kernel: Linux 5.10.152-8.ph4

Do you have any other suggestion or should I pull a request as suggested ?

0 Kudos
DCasota
Expert
Expert

So the issue occurs when upgrading from x86_64 generic minimal flavor Photon 3 to Photon 4 ?

There were some issues with upgrade from Photon 3 to Photon 4, have a look to open/closed issues @ https://www.github.com/vmware/photon .

Could you add the journalctl log when opening the issue ticket? Try to give as much case information as possible.

The /tmp screen message was reproducible on the testlab, the freeze not (?).

 

December 13th 2022, edited:
In the testlab, I've installed x86_64 ESXi8 virtual hardware for Photon OS virtual machine, photon-minimal-3.0-a0f216d.iso (Photon OS 3.0 Revision 2 Update2 Binaries).
I've tried this:

 

 

yum upgrade
tdnf install -y photon-upgrade
photon-upgrade.sh --upgrade-os

 

Just as comment: Better use tdnf e.g. tdnf distro-sync because tdnf is the preferred package manager on Photon OS.

 

The picture attached is right before the reboot. The reboot was successful, 2nd reboot, too.
The issue described unfortunately wasn't reproducible in the testlab.

0 Kudos