Tuesday, December 4, 2012

Installing VirtualBox Guest Additions on Debian


Step-by-Step procedure

I use Vbox a lot with my research, development, and testing with linux Ubuntu. I installed the guest additions no problem just by running the VBoxLinuxAdditions-x86.run. I happed to need Debian as one of my VirtualBox images to do some testing with it. I like to have the guest additions installed as it makes life much easier to switch between the host computer and the guest window. chocking I could not, no matter what, get that guest additions to install. After a lot of research and reading here is what I had to do to get it installed.

The following process is done on the Guest OS not the Host OS.
  1. Start a terminal and su to root.  working with sudo will not help at this time
  2. Update your system APT database by using apt-get update then apt-get upgrade
  3. Also make sure you do aptitude update then aptitude upgrade
  4. Run the apt-get upgrade  to install the latest security needed for your system 
  5. Install the required packages for the guest additions by running
    • apt-get install build-essential module-assistant
  6. Run m-a prepare   to configure your system for building kernel modules.  without this the guest additions will fail and ask you to "please install the build and header files for your current kernel"
  7. Now click on install guest additions from the top menu in the sun VirtualBox under Devices.  This should add a new CD Media to your Debian system and a window will open showing all the Guest Additions shell files for different system
  8. If the system did not mount the CD-Rom image for you use this command
    • mount /media/cdrom0
  9. Run the shell file VBoxLinuxAdditions-x86.run to start the installations
  10. Replace the shell file name with the proper file that matches your system
 
 
Enjoy.

No comments:

Post a Comment