I use config.vm.synced_folder
to sync folders from the host to the VM, but I'd like to sync it in the other direction. Is this possible using vagrant/virtualbox?
From the VMWare Player menu: VM / Settings / Options Tab / Shared Folders. Click Add and enter the drive lettter (D:) as the host path. Enable the share. From a Windows Explorer Window in the guest OS, map the desired drive letter to the VMWare share.
To share a host folder with a virtual machine in Oracle VM VirtualBox, you must specify the path of the folder and choose a share name that the guest can use to access the shared folder. This happens on the host. In the guest you can then use the share name to connect to it and access files.
By default Vagrant uses VirtualBox's vboxsf
to sync folders between host and guest.
It is two way, so if you make changes to the files in /vagrant_data
in the guest, it changes the corresponding files in the host's directory. You don't need to do it again the other way around.
Other options to sync files:
See more => Synced Folders
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With