Software & AppsOperating SystemLinux

How To Fix Black Login Screen on Ubuntu 18.04/20.04 LTS in Virtualbox

Ubuntu 18

If you’re running Ubuntu 18.04/20.04 LTS as a guest in Virtualbox on a Windows 10 host with multiple physical screens, you may encounter a black login screen. This can be a frustrating issue, but there are several potential solutions that can help you resolve it. In this article, we’ll walk you through these solutions in detail.

Quick Answer

To fix the black login screen issue on Ubuntu 18.04/20.04 LTS in Virtualbox, you can try increasing the video memory allocated to the VM, changing the graphics controller, uninstalling VirtualBox Guest Additions, installing a newer version of VirtualBox, changing the display settings, installing Gnome Desktop, or resizing the VM window.

Increase Video Memory

One of the most common solutions is to increase the video memory allocated to your Virtualbox machine. Here’s how you can do it:

  1. Shutdown the Virtual Machine (VM).
  2. Go to the settings of your specific VM.
  3. Navigate to the Display Tab and then the Screen Tab.
  4. Increase the Monitor Count (which may show an error).
  5. Increase the Video Memory (e.g., from 16MB to 64MB).
  6. Boot up the VM.

Increasing the video memory can help resolve display issues as it provides more resources for the VM to handle graphical tasks.

Change the Graphics Controller

Another solution is to change the graphics controller used by your VM. Here are the steps to do it:

  1. Go to the VM settings.
  2. Change the Graphics Controller to “VBoxVGA” or “VMSVGA”.
  3. Boot up the VM.

Different graphics controllers can handle different types of graphical tasks, and changing it can sometimes resolve issues like the black login screen.

Uninstall VirtualBox Guest Additions

VirtualBox Guest Additions provides several useful features for guest machines, but it can sometimes cause issues. Here’s how you can uninstall it:

  1. Change into the /opt/VBoxGuestAdditions-<version_number> folder.
  2. Run sudo ./uninstall.sh to uninstall the Guest Additions.

The sudo ./uninstall.sh command runs the uninstall script with superuser permissions, which removes the Guest Additions from your system.

Install a Newer Version of VirtualBox

Sometimes, the issue can be resolved by simply upgrading to a newer version of VirtualBox. Follow the instructions on Oracle’s website to install VirtualBox 6.1. This new version may contain bug fixes and improvements that can resolve the black login screen issue.

Change Display Settings

Changing the display settings of your VM can also help. Here’s how:

  1. Go to the VM settings.
  2. Change the Graphics Controller to “VBoxSVGA”.
  3. Enable Autoresize Guest Display.
  4. Boot up the VM.

Enabling Autoresize Guest Display allows the VM to automatically adjust its display size based on the size of the VM window, which can help resolve display issues.

Install Gnome Desktop

If none of the above solutions work, you can try installing the Gnome Desktop. Follow the instructions provided in this link.

Resize the VM Window

Finally, try resizing the VM window to a smaller size. This can sometimes force the VM to adjust its display settings, which can resolve the black login screen issue.

Remember, these solutions may work for different individuals based on their specific configurations. Therefore, it is recommended to try each solution and see which one resolves your issue. If you’re still facing problems, don’t hesitate to reach out to the VirtualBox or Ubuntu communities for further assistance.

What is VirtualBox?

VirtualBox is a virtualization software that allows you to run multiple operating systems on a single physical machine. It provides a virtual environment where you can install and run guest operating systems, such as Ubuntu, within your host operating system.

Why am I encountering a black login screen in Ubuntu 18.04/20.04 LTS in VirtualBox?

The black login screen issue in Ubuntu 18.04/20.04 LTS in VirtualBox is often caused by display-related problems. It can occur due to insufficient video memory allocation, incompatible graphics controller settings, conflicts with VirtualBox Guest Additions, or other configuration issues.

Can upgrading to a newer version of VirtualBox resolve the black login screen issue?

Yes, upgrading to a newer version of VirtualBox, such as VirtualBox 6.1, can sometimes resolve the black login screen issue. Newer versions often contain bug fixes and improvements that can address display-related problems.

What should I do if none of the above solutions work?

If none of the above solutions work, you can try installing the Gnome Desktop or reach out to the VirtualBox or Ubuntu communities for further assistance.

How can I resize the VM window in VirtualBox?

To resize the VM window in VirtualBox, simply drag the edges of the window to the desired size. Resizing the window can sometimes force the VM to adjust its display settings and resolve the black login screen issue.

Leave a Comment

Your email address will not be published. Required fields are marked *