How to install VirtualBox Guest Additions in a Lubuntu VM
This step-by-step tutorial will show you how to install VirtualBox Guest Additions in a Lubuntu or Xubuntu virtual machine.
Guest Additions consist of device drivers and system applications that optimize the guest operating system for better performance and usability.
One of the benefits of installing Guest Additions is that they can give you the option to use your virtual machine in full screen.
How to install VirtualBox Guest Additions in a Lubuntu or Xubuntu virtual machine
- Open VirtualBox.
- Start your Lubuntu or Xubuntu virtual machine.
- Open the terminal.
-
Type the following command:
sudo apt install linux-headers-$(uname -r) build-essential dkms
- Press the Enter key on your keyboard.
- Type your password.
- Press Enter.
Note: If you are getting the following errors: Unable to locate package build-essential and Unable to locate package dkms then try the following command:
sudo apt-get install build-essential
- Click on Devices (located in the top menu of VirtualBox).
- Click on Insert Guest Additions CD image.
- Right-click on the VBox_GAs_ icon on your desktop.
- Click on Open in Terminal.
-
Type the following command:
sudo ./VBoxLinuxAdditions.run
- Press Enter.
- Type your password.
- Press Enter.
- Lubuntu or Xubuntu will now install the VirtualBox Guest Additions. Once the installation is complete, restart your Lubuntu or Xubuntu virtual machine.
Related:
VirtualBox top menu missing? Here's how to get it back!
Fix: VirtualBox only showing 32-bit and no 64-bit versions
How to fix Windows 10 stuck on boot screen in VirtualBox