Ubuntu 18.04 LTS installed in VirtualBox hang at boot up after system update

6,726

Solution 1

I followed the advice given at this thread forums.virtualbox.org

  1. Create a new machine by, for example, clicking new in the UI
  2. Choose advanced mode
  3. Select the .vdi file from the non-working machine with Ubuntu
  4. Keep this machine's settings simple
  5. 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

Share:
6,726

Related videos on Youtube

ArkadiG
Author by

ArkadiG

Updated on September 18, 2022

Comments

  • ArkadiG
    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
      ArkadiG almost 6 years
      There is NO EFI
    • Biswapriyo
      Biswapriyo almost 6 years
      Is there any error in update procedure?
    • ArkadiG
      ArkadiG almost 6 years
      Did not notice any error
    • ArkadiG
      ArkadiG almost 6 years
      Just 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.