My shared folders are not mounted automatically.

Here is my settings.rb.

class Hm < Vm                   # VM-specific overrides of default settings
  Count      = 1
  Basebox    = "wheezy64"
  Box_url    = "http://dl.dropbox.com/u/937870/VMs/wheezy64.box"
  Shortname  = "aegir2"             # Vagrant name (used for manifest name, e.g., hm.pp)
  Longname   = "Aegir 2"     # VirtualBox name
  Host_IP    = "192.168.11.10"
  Memory     = 1024
  Dir_shares = {
                 "aegir-up" => {
                   "host_path"  => "shared_platforms",
                   "guest_path" => "/var/aegir/shared_platforms",
                   "nfs" => { :nfs     => true,
                              :create  => true,
                              :remount => true,
                            }
                 }
               }

end

When I start the box, I need to manually `sudo mount -t nfs 192.168.11.1:/path/to/host/folder /path/to/client/folder`

Comments

niccolox’s picture

Issue summary: View changes

on Ubuntu 12 host/Ubuntu 12 guest the following worked for me with discourse

    nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
    config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", type: "nfs", nfs_udp: "true", nfs_version: "4", :nfs => nfs_setting

note; I also had to add host IP determined by vagrant and guest IP determined by Vagrant to firewall exceptions