6

A few days ago I started working with Ubuntu 20.04 in a virtual machine, exactly with VirtualBox. The first time I installed it, it looked and worked perfectly. Until one day I turned off the virtual machine and wanted to turn it on, it didn't go. Now when you turn it on, it does its normal processes and then the screen stays black with the Ubuntu logo underneath. I leave captures of the error. Greetings.

Config

First error

Second error

3 Answers3

2

Boot into recovery mode

Turn on your virtual machine.

Quickly press and hold the Shift key, which will bring up the GNU GRUB menu.

Select the line which starts with Advanced options.

Select the line ending with "(recovery mode)"

Press Return and your machine will begin the boot process.

After a few moments, your workstation should display a menu with a number of options.

One of the options (you may need to scroll down to the bottom of the list) will be "Drop to root shell prompt".

Press Return with this option highlighted.

To mount the root partition read/write, enter the command:

mount -o remount,rw /

To mount a separate partition, enter the command:

mount --all

Now run the following commands, to try to recover the system:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
reboot
Melebius
  • 11,431
  • 9
  • 52
  • 78
kyodake
  • 15,401
2

in my case disabling 3d acceleration in VirtualBox settings helped enter image description here

GWu
  • 121
  • 4
2

Mine has to do with not enough storage, I used virtualbox 6.1 so here's how I fix it.

  1. On virtualbox 6.0+ there's a UI to increase the storage size on file>virtual_media_manager,
  2. select properties of the disk you want to resize.
  3. move the slider or enter new value for increase the disk size.

at this point your disk size storage is increase, but the black screen is still there. Remember we only increasing the disk size not the partition size which our Ubuntu OS reside. Now we just need to increase the disk size and here's how I do it.

  1. Download GParted ISO. I download it from here https://sourceforge.net/projects/gparted/
  2. Mount the ISO image on the disk that you have increase disk size.
  3. Increase partition size and it's done.

for detail instruction you can visit website below: https://www.pragmaticlinux.com/2020/09/how-to-increase-the-disk-size-in-a-virtualbox-virtual-machine/