Skip to content
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

Rsync not installing nor notifying of installation on windows 10 guest #11296

Open
aklitzke opened this issue Jan 7, 2020 · 4 comments
Open

Comments

@aklitzke
Copy link

aklitzke commented Jan 7, 2020

Rsync.exe is not installing properly on guest when using windows 10. The documentation states that rsync should be automatically installed on the guest and if rsync can't be installed, a notification would be appear. However, no notification is output and inspecting the vagrant up debug logs it doesn't appear rsync is attempting to be installed.

Vagrant version

2.2.6

Host operating system

Mac OSX Mojave

Guest operating system

Windows 10

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "gusztavvargadr/windows-10"
  config.vm.synced_folder ".", "/vagrant", type: "rsync"
  config.vm.communicator = "winrm"
  config.winrm.username = "vagrant"
  config.winrm.password = "vagrant"
  config.vm.guest = :windows
  config.windows.halt_timeout = 15
end

Debug output

https://gist.github.com/aklitzke/00608422485439dc47c1bbc8d21c64dc

Expected behavior

We should be able to mount the rsync'd directory

Actual behavior

Up'ing the box failed

Steps to reproduce

Build the attached vagrantfile

References

https://www.vagrantup.com/docs/synced-folders/rsync.html

If Vagrant is unable to automatically install rsync for your operating system, it will tell you.

@briancain
Copy link
Member

Hey there @aklitzke - Can you link me to where you saw the docs mention that rsync will be auto-installed? This is mostly true, but not for all guests in Vagrant. Windows is not one of those guests, and Vagrant doesn't attempt to install rsync on it. You'll have to install it yourself if you want to use rsync on windows guests.

@aklitzke
Copy link
Author

aklitzke commented Jan 7, 2020

@briancain I referenced the location in the docs in the "References" section of my post.

Happy to install rsync manually, which rsync should I install? Doing some googling it doesn't appear that there is a 'standard' rsync for windows, and there looks to be a lot of differences between them.

It would be nice if Vagrant provided an rsync windows executable somewhere that is guaranteed to match the host.

@briancain
Copy link
Member

@aklitzke thanks! I recommend installing rsync through Cygwin or MinGW as the docs say. You could also potentially install it with chocolatey if it's available on the system. Essentially the problem with Vagrant automatically installing rsync like you mentioned is that there's not a great way to install it, unlike other linux systems that have proper package managers available.

@aklitzke
Copy link
Author

aklitzke commented Jan 7, 2020

Thanks for the guidance! I'll try that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants