Skip to content

Instantly share code, notes, and snippets.

@caputomarcos
Last active March 26, 2017 07:24
Show Gist options
  • Save caputomarcos/712166b1f5dcfa24a082b6947de2a469 to your computer and use it in GitHub Desktop.
Save caputomarcos/712166b1f5dcfa24a082b6947de2a469 to your computer and use it in GitHub Desktop.
This worked for me for a Ubuntu Server 14.04 guest VM (no GUI)

This worked for me for a Ubuntu Server 14.04 guest VM (no GUI):

Edit: also works with Ubuntu Server 16.04

1 Install dkms. From the guest run:

    sudo apt-get install dkms
  1. From the VirtualBox VM window menu select:
    Devices --> Insert Guest Additions CD image...
  1. Use blkid to identify the CD-ROM device. From the guest run:
    sudo blkid

One of the lines in the output should look like this:

    /dev/sr0: LABEL="VBOXADDITIONS_4.3.16_95972" TYPE="iso9660"

The first part (/dev/sr0) is the name of the CD-ROM device.

  1. Mount the CD (replace /dev/sr0 by the device name found above):
    sudo mount /dev/sr0 /media/cdrom/
  1. Run the Guest Additions installer:
    sudo /media/cdrom/VBoxLinuxAdditions.run
  1. Reboot the guest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment