How to not install virtualbox addition in ubuntu-server 12.04?

16,958

Virtual Box guest additions do not install per default. We do have to manually install them as outlined here:

In a non-GUI (server) guest we may not need the guest additions if we do not need additional features provided with them (e.g. support for USB2). Then we simply do not install the guest additions that come on an .iso image installed on the host after installing the virtualbox-guest-additions-iso package there with

user@host:$ sudo apt-get install virtualbox-guest-additions

When having installed the version from the Oracle repository (see this question) the guest additions .iso is installed on the host by default.

Installing guest additions is done from an install script on the .iso to compile and insert the kernel modules provided. Mounting the .iso image can be done from their location on the host, or alternatively by installing the guest additions .iso from the Ubuntu repository with

user@guest:$ sudo apt-get --no-install-recommends install virtualbox-guest-additions

We should not install recommends in the guest to avoid installing virtualbox-ose package too.

Note that the guest-additions version from the repositories may be of an earlier version than Virtual Box when installed from Oracle. This will likely work but it is not recommended.

After having installed the kernel modules guest additions .iso can be removed from the guest OS. To uninstall guest additions from the guest we may remove the kernel modules manually, or run the uninstall.sh script located in /opt/<VirtualBoxAddtions-x.x.xx>/.

Share:
16,958
blade19899
Author by

blade19899

I'm currently a Linux Engineer, that spends some time on AU, because Ubuntu 10.10, Maverick Meerkat, won me over. I have been an Ubuntu user even after the rise, and fall, of the Unity Desktop Interface. "You can teach a student a lesson for a day; but if you can teach him to learn by creating curiosity, he will continue the learning process as long as he lives." - Clay P. Bedford What little spare time I have, I spend on writing code in PHP.

Updated on September 18, 2022

Comments

  • blade19899
    blade19899 over 1 year

    First when I finished installing ubuntu-server 12.04, I made a snapshot then I updated my server like so

    sudo apt-get update && sudo apt-get upgrade
    

    I think the guest addition via the ubuntu-repository is buggy. Because after I rebooted I couldn't see in my virtualbox-ubuntu-server-12.04 window. It was just black. I am following this tutorial and it said I need to update my server.

    That means I will get the virtualbox guest additions from the ubuntu-repository.

    How can I update upgrade my Ubuntu server 12.04 without installing the guest addition from the Ubuntu-repository?

    • blade19899
      blade19899 almost 12 years
      can i remove guest addition link in the sources list? or what i really want is to just skip the guest additions and installed all the remaining updates