19

Using VirtualBox 6.0. Host Windows 10 Pro, VM: Linux Ubuntu 64 18.04.2. I’m quite a beginner with Linux and haven’t used Virtual Box for years.

I was initially trying to set the resolution for my VM, but got into even worst problems. So, trying to solve one at a time…

I first launched the VM with Ubuntu .iso as virtual drive, installed Ubuntu. Ejected Ubuntu installation virtual disc. Then I inserted the Guest Additions virtual CD ( Devices > Insert Guest Additions CD image … ) Linux told me that this CD has executable content, I told it to run it. All I get then is a black screen.

After a long time, I tried ACPI shutdown and re-started the machine.

I see a Ubuntu loading screen (“Ubuntu” title with 4 dotes below it) then after a short time, a black screen. (Doesn’t seem perfectly black though, it looks like the black with a tiny bit of red used in some Ubuntu screens).

TTT
  • 291
  • 1
  • 2
  • 5

10 Answers10

21

I had this same exact issue. I solved it by shutting down, going to my virtual machine settings and selecting display. I changed the graphics controller to VBoxVGA, yours might be different, just interchange the available options. I hope this helps

Muganwas
  • 311
4

I am running VirtualBox 6.0.14 on host Ubuntu 18.04.2 (Dell laptop). My Debian 9 VM was starting with a completely black, blank screen.

For me, the issue was resolved by changing to:

Display → Graphics Controller → VBoxSVGA

Eliah Kagan
  • 119,640
4

My display was already set to VBoxSVGA. I got the solution from Ubuntu 18.04 LTS on Virtualbox boots up, but black login screen which was to change the Video Memory from 16MB to 64MB.

gh423
  • 41
1

I am running VirtualBox 5.2.6 on a Mac OS host. I had to change the number of processors to 2 (Settings->System->Processor) to get the login screen to show up. The default appears to be 1 processor (at least for this version of VirtualBox).

sjking
  • 121
1

Very Late but simply disabled 3d acceleration and VMSVGA as the graphic controller and it worked. The cause of my issue was running out of cd memory + subsequently adding more but then the VM wouldn't open after the logging in(black screen).

also changing boot order to CD worked on a different occasion

arelius
  • 11
1

In my case the blank, black screen was not caused by VirtualBox settings, it was the GDM mesa shader cache created by the original Ubuntu installation.

I'd imported a VirtualBox 6.1.28 OVA for a VM with Ubuntu 20.04.3 Gnome desktop set up for one user. After the OS boots with the graphical loading screen the screen turns black, occasionally showing the mouse cursor as multiple attempts to start the Gnome greeter login screen fail. In the end there is only a blinking text cursor in the top level corner. I was then able to use + to switch to a tty login.

I (eventually) found the significant failure in the journalctl -b log;

wsone-VirtualBox kernel: traps: gnome-shell[1128] trap invalid opcode ip:7f44240a60d3 sp:7ffe59ab40a0 error:0

which led me (via this post) to the mesa_shader_cache.

The solution that worked for me was to remove the system level and user level mesa shader cache folders;

  $ sudo rm -rf /var/lib/gdm3/.cache/mesa_shader_cache
  $ sudo rm -rf ~/.cache/mesa_shader_cache

After both were removed, the graphical user login screen was displayed on start up and after logging in, the full Gnome desktop created by the original installation was displayed.

0

I had to disable 3d acceleration underneath the graphics controller selection menu, which I have to set to VMSVGA or I get an error message.

Jeff_V
  • 150
  • 6
0

go to your display settings, and select VBoxSVGA controller and also disable the 3d acceleration as it is not supported on VBoxSVGA.

0

Copy-pasting from another thread just for the urge to complain.

My problem was that I chose the wrong OS type: I chose Ubuntu 32 bit but my installation was a 64 bit one. After about an hour of fiddling with video memory/display type/HW acceleration/virtualization flags, I finally realized where the catch was. A big thank you to Oracle for not automatically detecting the type of instructions the OS tries to execute thus not helping those who got little sleep the night before.

Avio
  • 3,098
0

For me, it was the fact of having docker hub opened with some docker containers running that was causing the problem.

I closed docker hub and the running containers and then it worked.

Leandro
  • 1
  • 2