Skip to content

Instantly share code, notes, and snippets.

@harmandeep-singh
Last active July 9, 2019 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harmandeep-singh/11aba2f40803d0b22f0ced90eb875ee4 to your computer and use it in GitHub Desktop.
Save harmandeep-singh/11aba2f40803d0b22f0ced90eb875ee4 to your computer and use it in GitHub Desktop.
Install VirtualBox Guest Additions for Ubuntu Server
//1. Create a Dirctory in /media/cdrom
sudo mkdir /media/cdrom
//2. Mount the CD-ROM
sudo mount /dev/cdrom /media/cdrom
//3. Change into the mounted directory
cd /media/cdrom
//4. Install the necessary dependencies
sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
//5. Change to the root user with the command
sudo su
//6. Install the Guest Additions package
./VBoxLinuxAdditions.run
//7. Reboot VM
reboot
//8. verify the Guest Additions installation was successful
lsmod | grep -io vboxguest
//9. view the details of module
modinfo vboxguest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment