-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant doesn't honor config.vm.synced_folder
set to disabled
and sets up an rsync folder with a CentOS 7 guest using VirtualBox
#6154
Comments
Is this not caused by the target path being different? The CentOS 7 box's Vagrantfile specifies:
In my Vagrantfile, using
works for me. It no longer tries to install rsync or sync the directory. Of course, there is still the question of why they create an image that uses rsync by default and then not include rsync in the image... |
with the specification of the right destination folder this works for me too. |
Is this the new default in 1.7.4 where /vagrant is disabled now? It is no longer mounting the current working directory as
|
This rsync shared folder is set in the Vagrantfile contained in the "centos/7" box.
I guess that for some reason the creators of the official box thought it prudent that everyone use rsync without giving us a hint or description on how to properly disable it. Thankfully I found this issue :) |
I also can't reproduce this. I'm going to mark as not a bug. |
I also faced this today on a CentOS 7 box. In CentOS 7, this works config.vm.synced_folder '.', '/home/vagrant/sync', disabled: true and this does't config.vm.synced_folder '.', '/vagrant', disabled: true |
I'm experiencing this too.(just starting to use vagrant so I might've done something wrong)
This is the Vagrantfile it created
If I destroy and update the Vagrantfile to
the rsync doesn't fire up. |
@gdanielson I did not quite understand your issue. Do you want rsync to be enabled or disabled ? config.vm.synced_folder '../../', '/vagrant', type: 'rsync', rsync__exclude: '.git/', owner: 'root', group: 'root' |
I wanted to disable rsync. I didn't think that something like rsync replication would be enabled by default so I assumed it was an error. |
i have this problem with |
When I did |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Versions of installed components (the system is Fedora 20):
Steps to reproduce the problem:
Add the official CentOS 7 box to Vagrant:
Use the following
Vagrantfile
:Start the machine:
Expected Results:
Vagrant disables syncing the current folder.
Actual Results:
Even though syncing the current folder is disabled, Vagrant installs
rsync
on the guest machine and rsyncs the contents of the current folder. Here is the output:The text was updated successfully, but these errors were encountered: