Skip to content

Instantly share code, notes, and snippets.

@7rin0
Last active April 25, 2016 19:56
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 7rin0/5b5a00f9ee0673812f0598b8ed4b2c48 to your computer and use it in GitHub Desktop.
Save 7rin0/5b5a00f9ee0673812f0598b8ed4b2c48 to your computer and use it in GitHub Desktop.
Sometimes sync gets broken or even doesn't work. This script or procedural commands are intended to solve this issue

Its assumed that:

  • vagrant up is done
  • vagrant provision too
  • shared folders/sync still not work

First and foremost:

  • get your Virtualbox version: vboxmanage --version | cut -d 'r' -f1
  • keep the returned version and for this example lets say: VBOXVERSION = 4.3.36

Connect to your machine:

  • vagrant ssh

Swith to super user ('su') or prefix the following commands by 'sudo'

Execute one by one and replace VBOXVERSION by the returned version before in our case 4.3.36)

mkdir -p /media/VirtualBoxGuestAdditions

curl -sSOL http://download.virtualbox.org/virtualbox/ VBOXVERSION /VBoxGuestAdditions_ VBOXVERSION .iso

mount -t iso9660 -o loop VBoxGuestAdditions_ VBOXVERSION .iso /media/VirtualBoxGuestAdditions

/media/VirtualBoxGuestAdditions/VBoxLinuxAdditions.run

DO NOT COPY/PASTE THE FOLLOWING EXAMPLE

Just to be clear the result in our example would be:

mkdir -p /media/VirtualBoxGuestAdditions

curl -sSOL http://download.virtualbox.org/virtualbox/4.3.36/VBoxGuestAdditions_4.3.36.iso

mount -t iso9660 -o loop VBoxGuestAdditions_4.3.36.iso /media/VirtualBoxGuestAdditions

/media/VirtualBoxGuestAdditions/VBoxLinuxAdditions.run

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