Skip to content

Instantly share code, notes, and snippets.

@ddonny
Created December 28, 2019 06:39
Show Gist options
  • Select an option

  • Save ddonny/5ec2d3bbd3bcd769a0c6ccec7e6f5a2a to your computer and use it in GitHub Desktop.

Select an option

Save ddonny/5ec2d3bbd3bcd769a0c6ccec7e6f5a2a to your computer and use it in GitHub Desktop.
Installing the Guest Additions on a GUI-less server
Start VirtualBox.
Start the host in question.
Once the host has booted, click Devices | Insert Guest Additions CD Image.
Log in to your guest server.
Mount the CD-ROM with the command sudo mount /dev/cdrom /media/cdrom.
Change into the mounted directory with the command cd /media/cdrom.
Install the necessary dependencies with the command sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r).
Change to the root user with the command sudo su.
Install the Guest Additions package with the command ./VBoxLinuxAdditions.run.
Allow the installation to complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment