nsidc / vagrant-vsphere

VMware vSphere provider for Vagrant
Other
608 stars 166 forks source link

Unable to sync folders using rsync and ssh #205

Closed bgblanch closed 7 years ago

bgblanch commented 7 years ago

Vagrant version

Vagrant 1.8.6 & vSphere

Host operating system

Ubuntu 16.04.1

Guest operating system

Windows Server 2012R2

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "dummy"
  config.vm.guest = :windows
  config.vm.communicator = "winrm"
  config.vm.boot_timeout = 600
  config.vm.graceful_halt_timeout = 600
  config.vm.network :forwarded_port, guest: 3389, host: 3389
  config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true

  config.vm.provider :vsphere do |vsphere|
    vsphere.host = '<removed>'
    vsphere.name = 'Windows_Build_Server_2012R2'
    vsphere.data_center_name = '<removed>'
    vsphere.vm_base_path = '<removed>'
    vsphere.template_name = '<removed>'
    vsphere.clone_from_vm = 'true'

    vsphere.memory_mb = '4096'
    vsphere.cpu_count = '2'

    vsphere.user = 'william'
    vsphere.password = :ask
    vsphere.insecure = 'true'
  end

  config.vm.provision "shell", path: "provisioner/prereqs.ps1"
  config.vm.provision :reload
  config.vm.provision "shell", path: "provisioner/vs_install.ps1"
  config.vm.provision :reload
  config.vm.provision "shell", path: "provisioner/install.ps1"
end

Debug output

ssh_issue.log gist

There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /home/william/Git/Windows_Build_vSphere/
Guest path: /vagrant
Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--no-owner" "--no-group" "-e" "ssh -p 22 -o LogLevel=FATAL  -o ControlMaster=auto -o ControlPath=/tmp/ssh.132 -o ControlPersist=10m  -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i '/home/william/.vagrant.d/insecure_private_key'" "--exclude" ".vagrant/" "/home/william/Git/Windows_Build_vSphere/" "vagrant@192.168.1.134:/vagrant"
Error: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]

Expected behavior

local project folder is "sync'd" with vSphere /vagrant folder

Steps to reproduce

`vagrant up --provider=vsphere `