JadedEvan
4/3/2015 - 6:08 PM

How I resolved issues with my vagrant/Virtualbox not syncing folders from my host filesystem into my guest filesystem.

How I resolved issues with my vagrant/Virtualbox not syncing folders from my host filesystem into my guest filesystem.

Overview

After updating my Virtualbox installation I was experiencing issues with vagrant not syncing my shared folders from my Mac OS X host to the guest filesystem (Ubuntu). This document logs some of the steps that I used to fix that problem.

After booting my vagrant VM, none of the folders I had specified in the directory were syncing.

Software

  • Mac OS X 10.8.5 (Host)
  • Ubuntu 12.04 LTS (Guest)
  • VirtualBox 4.2.16
  • Vagrant 1.2.4

Fix

  • Boot the VM using the VirtualBox application. This loads into the CLI mode

  • Install VirtualBox guest additions via the CLI - sudo apt-get install dkms virtualbox-guest-utils

  • Power off the VM

  • Edit my Vagrantfile and update the following directive:

    Before:

    config.vm.synced_folder "~/chirpify", "/var/www"
    

    After:

    config.vm.synced_folder "~/chirpify", "/var/www", :mount_options => ["dmode=777","fmode=777"]