Install VirtualBox Guest Additions

After upgrading my VirtualBox to 4.3.6 and installing Kubuntu 13.10, I had some problems to install the Guest Additions. After a few hours struggling, I made it work eventually. Here is the notes:

Step #1: Make sure the Guest Additions is mounted.

This can be normally done via Devices->Insert Guest Additions CD Image…. However you may see problems as shown below. This means that you already have the CD image mounted and you can click Cancel to dismiss the dialog and proceed.

guestadditionproblems

Step #2: Get necessary build tools and Linux headers. You may skip some of the following steps depend on your environment.

  • sudo bash
  • Add the following proxy line to /etc/bash.bashrc

export http_proxy=”http://myProxy.myCompany.com:port”

  • Configure your system proxy (the way to config may differ on each distro). For example, I can use Proxy-KDE Control Module on Kubunu. In my case, I can set it to “Use proxy auto configuration URL” and enter the URL
  • Set up proxy for sudo operations by executing “visudo” and add the following line

Defaults env_keep += “ftp_proxy http_proxy https_proxy”

  • Setup using cache or not by creating file /etc/apt/apt.conf.d/01proxy with the content

Acquire::http::No-Cache “true”;

Acquire::http::Proxy “http://proxy.company.com:port”;

Note the last line above is a double quote followed by a semicolon after port port number (I am having problems with WordPress editor).

  • apt-get update
  • apt-get install linux-headers-$(uname -r)
  • apt-get install build-essential
  • apt-get install dkms

Step #3: Install the Guest Additions

You can either cd into the Guest Additions directory to run “sh VBoxLinuxAdditions.run” from a console or double click the file “autorun.sh” from UI to execute it.

Advertisements
This entry was posted in Build, Linux, Tool and Debug and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s