📢 Actions Speak Louder Than Words!

Installing virtual box guest additions in ubuntu

Posted: Feb 27, 2020 | Reading time: 2 min

I have not using VirtualBox for a while and since I been using EXSi VMware for my VMs and I turning back to use VirtualBox now.

If you are newbie and wondering what the heck is VirtualBox, it just same as VMware but VirtualBox is an open-source, cross platform virtualization software that allow you to run multiple guest virtual machine simultaneously and they provide a set of driver and application which can be installed inside guest operating system (I talking about VirtualBox guests addition).

The Guest Additions offer several useful functionalities and in this post, I will show you how to install on Ubuntu 18.04.4 LTS. The same technique apply for any debian-based distribution, including Linux Mint and Elementary OS.


  1. First of all open your virtual-box and install Ubuntu into the vm machine then reboot, if you already done this. Just skip this step.

  2. Open the Oracle VM VirtualBox software, run the VM we created and after a while click Device > Insert Guest Addition CD image from the dropdown list.

  3. By default, OS will prompt you to run the auto-run script. Click cancel since we don’t have the essential package to compile the modules.

  4. Open terminal and run $ sudo apt update && sudo apt install build-essential dkms linux-headers-$(uname -r) as sudo user

  5. When finished installed the required package, head back to the mounted CD that contain Guest Addition software. Normally, ubuntu will show on your desktop or you can check /media/<username>/VBox_GAs_<virtualbox version>

  6. Just press “RUN SOFTWARE” button, it will spawn xterm windows or you may run sudo sh ./VBoxLinuxAdditions.run --nox11 from there.

  1. Reboot the Ubuntu guest for changes to take effect with $ sudo shutdown -r now. Once the virtual machine is booted, log into it and verify that the installation was successful and the kernel module is loaded using the lsmod command $ lsmod | grep vboxguest and you should see something. If No output means that the VirtualBox kernel module is not loaded.

Now that VirtualBox Guest Additions are installed on the Ubuntu guest machine, you can enable Shared clipboard and others good feature. This should be easy task, If you have any questions, please leave a comment below.


Discussion and feedback

You can use utterances provided below to post comment on behalf using Github account. Alternatively, you can just send a public comment to my mailing list or send a private message to my e-mail. In a few cases and on certain time, I just don’t have time to moderate them. Please read terms-of-service (ToS) for details.