Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@psanxiao
Created February 3, 2016 11:45
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 psanxiao/be0ed17d5d77f70d2090 to your computer and use it in GitHub Desktop.
Save psanxiao/be0ed17d5d77f70d2090 to your computer and use it in GitHub Desktop.
Install VBoxGuestAdditions on guest with vagrant
$ vagrant ssh
vagrantup:~$ cd /opt
vagrantup:~$ sudo wget -c http://download.virtualbox.org/virtualbox/5.0.12/VBoxGuestAdditions_5.0.12.iso -O VBoxGuestAdditions_5.0.12.iso
vagrantup:~$ sudo mount VBoxGuestAdditions_5.0.12.iso -o loop /mnt
vagrantup:~$ cd /mnt
vagrantup:~$ sudo sh VBoxLinuxAdditions.run --nox11
vagrantup:~$ cd /opt
vagrantup:~$ sudo rm *.iso
vagrantup:~$ sudo umount /mnt
vagrantup:~$ exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment