Sync Vagrant folder in Windows with VirtualBox
NickName:BluePrint Ask DateTime:2016-03-03T21:32:07

Sync Vagrant folder in Windows with VirtualBox

I don't understand the answers that I can find to this, so I'll try to ask it again. I'm using Vagrant on a virtual machine using VirtualBox. My host machine has Windows 10.

According to https://www.vagrantup.com/docs/synced-folders/basic_usage.html i should edit the Vagrantfile to contain config.vm.synced_folder "src/", "/srv/website". In understand the second parameter without any problem (the one on the guest machine).

I have two questions:

1: If my Vagrantfile is in C:\Users\mabj\Documents\vagrant\test2 and my folder that I want to sync is in C:\Users\mabj\Documents\code\test2, what should I write in the first parameter (host machine)?

2: Using Windows and VirtualBox, do I have to add any optional parameters?

Copyright Notice:Content Author:「BluePrint」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/35773602/sync-vagrant-folder-in-windows-with-virtualbox

More about “Sync Vagrant folder in Windows with VirtualBox” related questions

Sync Vagrant folder in Windows with VirtualBox

I don't understand the answers that I can find to this, so I'll try to ask it again. I'm using Vagrant on a virtual machine using VirtualBox. My host machine has Windows 10. According to https://www.

Show Detail

How to sync folder with Vagrant in Windows?

Using Vagrant 1.9.2 on Windows 10. Installed rsync by chololatey: C:\> choco install rsync The Vagrantfile: Vagrant.configure("2") do |config| ... config.vm.synced_folder "data", &

Show Detail

Mounting a symlinked folder in vagrant & virtualbox

Okay, so here is my problem: I use vagrant with VirtualBox. The host is Windows 8.1, the guest is Ubuntu (64bit). I am trying to use a symlinked windows folder created by mklink /j somefolder

Show Detail

Vagrant / Virtualbox, shared folder out of sync when there are many file-related operation

This is not about vagrant or virtualbox guest running slowly due to slow shared folder access, we know that can be resolved more or less by enabling nfs. It's rather about mounted shared folder go...

Show Detail

Wrong sync Folder Mapping in Vagrant with Windows

I use Vagrant for Web-Development with a Windows Host. However I seem to have a strange problem and Digging all sorts of Google results wont hand me any solution for this. Problem: I have a Sync ...

Show Detail

Vagrant up on Windows 10 virtualbox ignores administrative rights

I'm trying to set Vagrant's sync_type to smb, but fail on running vagrant up after changing the configuration. I receive the following error: SMB shared folders require running Vagrant with

Show Detail

Vagrant sync folder doesn't work on windows 10

I'm trying to sync folders from a windows 10 hosto to a ubuntu guest but I get this error: $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box '

Show Detail

Vagrant: Sync folder with boot2docker box on Windows

I try to synchronize a folder with the boot2docker Vagrant box (on Windows 8.1): Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.hostname = "doc...

Show Detail

Vagrant: Sync centos folder to windows

I am trying to sync folder from my vagrant virtual machine to Windows 7 machine. I tried in the .vagrant file like this: config.vm.synced_folder "/home/x/y/z/", 'C:/Users/me/Virtual Machines/node...

Show Detail

Reconnect synced folders from Vagrant after VirtualBox restart

I have created a puppet/vagrant/VirtualBox generated installation of Ubuntu running on a Windows host; see https://bitbucket.org/dmenne/rstudio-shiny-server-on-ubuntu for details. This allows users...

Show Detail