Follow these steps to install the VirtualBox Guest Additions on your Linux Debian virtual machine:
- Open terminal and become
su); if you have
sudoenabled, you may also do for example
sudo -i; see
man sudofor all options):
- Update APT cache:
- Install the latest security updates:
This step will upgrade all your packages, so be wise about it. Try the following steps first and they might be enough to work if not, then perform upgrade and retry.
- Install these required packages:
module-assistantare both required to be able to compile the kernel modules and so when installing the VirtualBox Linux Guest Additions you must have them. So, this command will get the headers and packages (compilers and libraries) required to work. Notice, that after installing your VirtualBox Linux Guest Additions you will leave behind some packages as well as Linux headers, which you might delete afterwards or not. In my case they didn't hurt, but for the sake of system tidiness, you might want to pick up after playing.
apt-get install build-essential module-assistant
- Configure your system for building kernel modules:
- Insert Guest Additions ISO:
Expand menu Devices and click on Insert Guest Additions CD image...
- It should mount automatically, but if for any reason it doesn't:
- Run the following script:
- Restart the system: