Shared and Sync folder concept in vagrant
Basically shared folders are renamed to synced folder from v1 to v2 (docs).
Vagrantfile directory mounted as
Vagrantfile directory mounted as /vagrant in guest
Vagrant is mounting the current working directory (where
Vagrantfile resides) as /vagrant in the guest, this is the default behaviour.
Note:You can disable this behaviour by adding
cfg.vm.synced_folder ".", "/vagrant", disabled: true
in your
Vagrantfile.
Use
VAGRANT_INFO=debug vagrant up or VAGRANT_INFO=debug vagrant reload to start the VM for more output regarding why the synced folder is not mounted. Could be a permission issue (mode bits of /tmp on host should be drwxrwxrwt).
I did a test quick test using the following and it worked (I used opscode bento raring vagrant base box)
config.vm.synced_folder "/tmp", "/tmp/src"
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment