Oracle VM Virtual Box : Installing guest additions

Environment:

  • Host : Windows 8
  • Guest : Ubuntu-12.04
  • Oracle VM Virtual Box & Extension pack v.4.3.4 (available here)

Instructions:

  1. Install Ubuntu as guest OS and boot into it.
  2. Install necessary packages (required for building VirtualBox Guest Additions kernel modules).

    • build-essential
    • dkms
    • linux-headers-generic
    $ sudo apt-get install build-essential dkms linux-headers-generic
    
  3. Install Guest Additions:
    Guest OS Menu -> Devices -> Install Guest Additions
  4. Open a terminal in the guest OS, cd into the mounted VBOXADDITIONS_4.3.4_XXXXX CD drive and run VBoxLinuxAdditions.run script as root.

    $ cd /media/VBOXADDITIONS_4.3.4_XXXXX
    $ sudo ./VBoxLinuxAdditions.run
    
  5. Reboot!
  6. Optionally, bidirectional copying & Drag’n’Drop between host and guest can be enabled by checking “Bidirectional” under Devices -> ‘Shared Clipboard’ and Devices -> Drag’n’Drop respectively.

References:
(i) https://forums.virtualbox.org/viewtopic.php?f=3&t=15679