How do I keep guest additions working in virtual box after updates?

Solution 1:

This should have been taken care of by dkms - this builds kernel support each time the kernel is updated.

Ensure dkms is installed before the next time you run the VBoxGuestAdditions module

i.e.

sudo apt-get install dkms
cd /cdrom
sudo sh ./VBoxLinuxAdditions-x86.run

Solution 2:

[Solved it] It was the same problem. It's suddenly occurred after Ubuntu update

  1. sudo apt-get install dkms
  2. sudo /etc/init.d/vboxadd setup
  3. Insert CD VBoxGuestAdditions.iso
  4. sudo sh ./VBoxLinuxAdditions.run after do it anything not occur.
  5. very important: Turn off the machine and reboot it.

Ref: http://www.virtualbox.org/manual/ch04.html#idp11306688