Skip to content

Instantly share code, notes, and snippets.

@sp3c73r2038
Created November 18, 2013 08:10
Show Gist options
  • Save sp3c73r2038/7524362 to your computer and use it in GitHub Desktop.
Save sp3c73r2038/7524362 to your computer and use it in GitHub Desktop.
update virtualbox guest addition (aka guest kernel modules)

assuming we are using ubuntu server as guest system

insert the additions image

usually ctrl-d (or cmd-d on OSX) when booted with GUI mode in virtualbox.

if the vagrant box has been booted, then open virtualbox GUI => modify machine settings => select storage, insert the additions image(iso file) by hand

install packages

$ aptitude install build-essential linux-header-`uname -r`

mount the cd

$ mount /dev/sr0 /media/cdrom

rebuild kernel module

$ /media/cdrom/VBoxLinuxAdditions.run --nox11

reboot

$ reboot

or outside virtual machine (vagrant)

$ vagrant reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment