How to enable two-way folder sync in Vagrant with VirtualBox?

434 views
Skip to first unread message

Adnan Latif

unread,
Oct 11, 2016, 4:06:26 PM10/11/16
to Vagrant
Hi,

I want to know 

How to enable two-way folder sync in Vagrant with VirtualBox?


I found a solution but its not working in my case. I have created a folder with files on guest and I need its access on my host platform. Is there any possibility of two-way sharing/sync?

Thanks.

Alvaro Miranda Aguilera

unread,
Oct 11, 2016, 10:58:30 PM10/11/16
to vagra...@googlegroups.com
Hello

There is no difference from where you update the files if the shared folder is on virtualbox/vmware/nfs

the only ones i think may be a problem is with rsync since that is meant to be host -> guest 

So as long you don't use rsync you should be fine.. what are you using today?

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/c0cf002c-6677-47ce-91b6-3f55e36a3195%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Adnan Latif

unread,
Oct 12, 2016, 12:27:23 AM10/12/16
to vagra...@googlegroups.com
I am using its default settings. I don't know what are default settings used sync or rsync.
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/uFIwKfgLtZI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ez2sf%3DjCfVELAg1owJSRU6Oe3H5aZ1px63AqWmzy-CL%2Bw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Thanks & Regards

Adnan Latif
Software Engineer
Cell  #  +92-321-6850321
Skype: adnanlatif.bwp

Alvaro Miranda Aguilera

unread,
Oct 12, 2016, 2:00:40 AM10/12/16
to vagra...@googlegroups.com
Hello

If you can share the name of the box. and a gist of the output of vagrant up I can help.

Some boxes don't have the virtualization driver or they use rsync (for license issues or some people think rsync is faster/better/etc)

So my suggestion will be test other box too:  hashicorp/precise64

Thanks
Alvaro.


For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Adnan Latif

unread,
Oct 12, 2016, 10:12:15 AM10/12/16
to vagra...@googlegroups.com
Hello,

I am using using/trusty64

Output of vagrant up

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 (guest) => 4567 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => K:/work/vagrant_ubuntu_14.04
    default: /home/projects/adnan => K:/work/adnan
    default: /home/projects/khaapk => K:/work/khaapk
    default: /home/projects/androidianz => K:/work/androidianz
    default: /home/projects/meraplan-web => K:/work/meraplan-web
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages