WinRb / vagrant-windows

Other
444 stars 83 forks source link

[vagrant 1.5.1] Using rsync with vagrant-windows fails #180

Closed lmayorga1980 closed 10 years ago

lmayorga1980 commented 10 years ago

Are you planning to support rsync on the windows guest. It seems like by default you need a cygwin environment on the windows guest in order for vagrant rsync to work but haven't figure this out yet.

vagrant-windows: vagrant-windows (1.6.0)

vagrant reload win2012
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
==> win2012: Attempting graceful shutdown of VM...
==> win2012: Clearing any previously set forwarded ports...
==> win2012: Clearing any previously set network interfaces...
==> win2012: Preparing network interfaces based on configuration...
    win2012: Adapter 1: nat
    win2012: Adapter 2: hostonly
==> win2012: Forwarding ports...
    win2012: 3389 => 3389 (adapter 1)
    win2012: 5985 => 5985 (adapter 1)
    win2012: 22 => 2222 (adapter 1)
==> win2012: Running 'pre-boot' VM customizations...
==> win2012: Booting VM...
==> win2012: Waiting for machine to boot. This may take a few minutes...
==> win2012: Machine booted and ready!
==> win2012: Checking for guest additions in VM...
==> win2012: Setting hostname...
==> win2012: Configuring and enabling network interfaces...
==> win2012: Rsyncing folder: /Users/lmo0/git/puppet/puppet-gold/ => /vagrant
==> win2012:   - Exclude: [".vagrant/", ".git/"]
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /Users/lmo0/git/puppet/puppet-gold/
Guest path: /vagrant
Command: rsync --verbose --archive --delete -z -e ssh -p 2222 -o StrictHostKeyChecking=no -i '/Users/lmo0/.vagrant.d/insecure_private_key' --exclude .vagrant/ --exclude .git/ /Users/lmo0/git/puppet/puppet-gold/ vagrant@127.0.0.1:/vagrant
Error: /bin/sh: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
sneal commented 10 years ago

I could see this potentially being useful, but I have no plans to add this. Perhaps this is something that will eventually be added to Vagrant core.