Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save otienog1/2aefec1a2c75951e325020c377053510 to your computer and use it in GitHub Desktop.
Save otienog1/2aefec1a2c75951e325020c377053510 to your computer and use it in GitHub Desktop.
Installing VirtualBox Guest Additions on Ubuntu Server

Tested on Ubuntu Server 22.04

  • Start the Ubuntu Server VM and insert the Guest Additions CD image (Devices menu, Install Guest Additions).

  • Mount CD Rom:

    $ sudo mount /dev/cdrom /media
  • Install necessary build tools and dependencies:

    $ sudo apt install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
  • Build and install the Guest Additions:

    $ sudo /media/VBoxLinuxAdditions.run
  • Add user to vboxsf group:

    $ sudo usermod -aG vboxsf ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment