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 have a working VM with ubuntu under virtual box. Everything works fine, but there's a detail that's getting on my nerves.

Every time i receive a kernel update, i have to re-install virtual box's guest additions. Is there a way to automate this besides skipping the update (i found information on that approach here ). Is there a way to keep up with kernel updates without reinstalling the guest additions every time?


share|improve this question
up vote 11 down vote accepted

Quoting the VirtualBox User Manual:

Be sure to install DKMS before installing the Linux Guest Additions. If DKMS is not available or not installed, the guest kernel modules will need to be recreated manually whenever the guest kernel is updated using the command

/etc/init.d/vboxadd setup as root.


If it is not installed, use this command for Ubuntu/Debian systems:

sudo apt-get install dkms

share|improve this answer
Thanks, this made the trick! – Carlos Jun 10 '13 at 20:50
I LOVE YOU SO MUCH – saada Aug 23 '13 at 0:32

If you are using Vagrant to manage your Virtualbox VMs, you can install the vagrant-vbguest plugin to automatically detect out-of-date guest additions and update them.

share|improve this answer

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.