Skip to content

Instantly share code, notes, and snippets.

@ehq
Forked from fernandoaleman/gist:5083680
Last active December 30, 2015 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehq/7758208 to your computer and use it in GitHub Desktop.
Save ehq/7758208 to your computer and use it in GitHub Desktop.
sudo yum -y update
cd /opt
sudo wget -c http://download.virtualbox.org/virtualbox/4.3.4/VBoxGuestAdditions_4.3.4.iso -O VBoxGuestAdditions_4.3.4.iso
sudo mount VBoxGuestAdditions_4.3.4.iso -o loop /mnt
cd /mnt
sudo sh VBoxLinuxAdditions.run --nox11
cd /opt
sudo rm *.iso
sudo /etc/init.d/vboxadd setup
sudo chkconfig --add vboxadd
sudo chkconfig vboxadd on
exit

Now check that the Guest Additions work

$ vagrant halt $ vagrant up

Package the new VM

$ vagrant halt $ vagrant package $ mv package.box centos-6.3.box

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