Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am encountering a lot of problem trying to install guest additions on Ubuntu 12.10 Server. I have tried many solutions provided in the internet but none of them are working. After mounting the guest additions tools and running ./ it fails.

Here is a screenshot of the problem: enter image description here

How to solve this problem?

share|improve this question

The errors seem to be because you have a whole bunch of programs missing on your guess. The shell script tries to install the graphical X guest additions (even though you apparently don't have X installed on your server). It also tries to compile the guest kernel modules, but you have neither GCC nor the kernel headers installed, so it fails.

Normally the package manager would automate installing dependencies you need, but a shell script can't do that.

Fortunately, the Guest Additions have been available in the Ubuntu universe repositories for a while. You can install them using from the package virtualbox-guest-utils (on the guest). You probably want to skip installing the virtualbox-guest-x11 package which virtualbox-guest-utils recommends, since you don't have X. The necessary compilers, headers, and DKMS stuff should get installed automatically. Be aware that this will use roughly 200 MB of additional disk space.

share|improve this answer

For compiling the Virtual Box Guest Additions we may need the following packages:

dkms build-essential linux-headers-generic

The build-essentials package will also include the installation of gcc needed to compile Guest Additions.

Note however, that the only benefit you will have from Guest Additions on a GUI-less server installation is support of USB2.0. Only if you plan to install XServer you may also need the XOrg graphics driver for Virtual Box provided with the Guest Additions.

share|improve this answer
I cannot install that, because of similar problems of gcc – Starx Jan 1 '13 at 14:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.