Friday, January 9, 2015

Virtual Box - Ubuntu - Setup - Install guest addition and make auto resize work in Ubuntu

Background:
This article helps to install VirtualBox guest addition and setup auto-resize window feature.

Environment:
1. Ubuntu - 14.04
2. VirtualBox - 4.3.6
 
 

Guest Additions offer the following features

1. Mouse pointer integration  Means pressing the Host key is no longer required to “free” the mouse from being captured by the guest OS as you used to do.
2. Shared foldersEasy to share files between host and guest machine just like you do in Windows network share.VirtualBox treat a certain host directory as a shared folder, and VirtualBox will make it available to the guest operating system as a network share.
3. Better video supportCustom video drivers shipped with VirtualBox Guest Additions provides extra high and non-standard video modes as well as accelerated video performance. With Guest Additions,3D graphics and 2D video for guest applications can be accelerated.

4. Time synchronization
Enables synchronization of host system’s time with guest operating system.

5. Shared clipboard
With the Guest Additions installed, the clipboard of the guest operating system can optionally be shared with your host operating system 
 
 
Steps to follow:
 
  • Install guest addition - option-01
    • Click on Install Guest Additions… from the Devices menu on VirtualBox screen, then choose Run when requested. This should start virtualBox guest addition installation automatically and just need to follow on screen instructions.
 
  • Install guest addition - option-02
    1. Open terminal (on Applications/System/Terminal or on Applications/Terminal or CTRL+ALT+T)
    2. Update APT database
      sudo apt-get update; (password might require)
    3. Install the latest security updates
      sudo apt-get upgrade;
    4. Install required packages
      sudo apt-get install build-essential module-assistant;
    5. Configure system for building kernel modules
      sudo m-a prepare;
    6. Click on Install Guest Additions… from the Devices menu on VirtualBox screen, then choose to browse the content of the CD when requested.
    7. Run
      sudo sh /media/cdrom/VBoxLinuxAdditions.run
    8. Follow the instructions on screen
 
 
  •  Setup auto-resize window
    Command: sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
 
 
Resources:
1. Link 01 - http://sharadchhetri.com/2014/10/07/ubuntu-14-04-install-virtualbox-guest-additions-also-create-videos/ 
 
 
 
 

No comments: