Ubuntu 18.04 LTS installed in VirtualBox hang at boot up after system update
Solution 1
I followed the advice given at this thread forums.virtualbox.org
- Create a new machine by, for example, clicking new in the UI
- Choose advanced mode
- Select the .vdi file from the non-working machine with Ubuntu
- Keep this machine's settings simple
- Boot up and things should work normally
Solution 2
My setup is very similar to yours, so we might have the same issue. In my case, the boot times of the updated Ubuntu VM were just dramatically increased (5min vs. 20 sec).
To verify:
- Let the VM boot up process finish
- In the Ubuntu session open the terminal and run
journalctl -b
- There should be a long delay stated at the stage
kernel: random: crng init done
To solve:
- Start the updated Ubuntu VM
- Click inside the starting VM display and make sure your input is captured. Pressing any key within the VM will significantly speed up the boot up process.
- In the Ubuntu session open the terminal and update the rng-tools5 package:
sudo apt upgrade rng-tools5
- After rebooting the boot up times should back to normal again.
Looks like the VirtualBox installations of 18.04 LTS with the current patch level suffer from the same bug like some bare-metal installation without a hardware random number generator.
The information to update the rng-tools5 package was found here: https://unix.stackexchange.com/questions/442698/when-i-log-in-it-hangs-until-crng-init-done
Related videos on Youtube
ArkadiG
Updated on September 18, 2022Comments
-
ArkadiG over 1 year
host: Windows 10 with all the latest updates
guest: Ubuntu 18.04
VirtualBox 5.2.12
- Ubuntu 18.04 VirtualBox Machine: 4GiB, 2CPUs, VT-x/AMD-V, Nested Paging,PAE/Nx, Video memory 56 MB
- I installed Ubuntu 18.04 from ubuntu-18.04-desktop-amd64.iso.
- Did reboot: boots fine.
- Installed all the latest updates for Ubuntu.
- Tried to reboot: it hangs.
Tried to increase Virtual Machine's memory, the number of processors - nothing helped.
My another VB Machine is Ubuntu 16.04 with all the latest updates and it runs fine.
-
ArkadiG almost 6 yearsThere is NO EFI
-
Biswapriyo almost 6 yearsIs there any error in update procedure?
-
ArkadiG almost 6 yearsDid not notice any error
-
ArkadiG almost 6 yearsJust ran updates step-by-step, restarting the VMachine every time. It is 'Ubuntu base' update after which the Restarts hangs. There are 2 of them, I tried both separately, both cause the hangup.