Friday, 27 December 2013

How-to: Guest Additions for VirtualBox 4.3 - Debian 7


Back to installing the Guest Additions for VirtualBox on Debian 7.0 ("Wheezy"). We've moved up some versions and the Debian 7.2 guest inside VirtualBox 4.3 once again requires Guest Additions for more than just mouse integration.

I'm running the Oracle VirtualBox, not the OSE version that's in the repos, just to add some spice.

Debian will run, but you have to run the guest VM under Gnome Classic since the 3D Acceleration or, more importantly, screen resizing, doesn't work natively. It's Gnome Shell - what did we expect?



Guest Additions is picky about dkms and wanting to build kernel modules. Open the Root Terminal:
apt-get install build-essential module-assistant

Once installed, the module-assistant can fetch the Linux headers:
m-a prepare

Have the Guest Additions CD image loaded in your virtual CD drive (VirtualBox "Devices" menu), but don't expect Autorun to work, it only returns "Error autorunning software. Cannot find the autorun program." Don't ask. Instead, still in the Root Terminal, run:
sh /media/cdrom/VBoxLinuxAdditions.run 

and follow the installation prompts. You can then reboot with the 3D Acceleration, display resize and auto-resolution working again.The output in the terminal should look something like this:

root@localhost:/media/cdrom0# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.12 Guest Additions for Linux............
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]

Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.12 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics

Back in business. Why am I running a Debian guest under a Debian host? LaMp stack, but more on that later. RC

3 comments:

  1. Hi.
    Thanks for this, it works (even I had to fight with some dependencies...)

    good job

    ReplyDelete
  2. Installing Debian 8 Jessie in VMware Workstation Video Tutorial
    http://bit.ly/1KgTLv9

    ReplyDelete
  3. A pocket of gold coin. Thanks.

    ReplyDelete

At least try to be nice, it won't kill you...