error when attempting to rsync a synced folder
NA3 opened this issue · 1 comments
NA3 commented
BOX successfully built!
vagrant box add -f windows-2019-amd64 windows-2019-amd64-vsphere.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'windows-2019-amd64' (v0) for provider:
box: Unpacking necessary files from: file:///home/goad/windows-vagrant/windows-2019-amd64-vsphere.box
==> box: Successfully added box 'windows-2019-amd64' (v0) for 'vsphere'!
vagrant box list
windows-2019-amd64 (vsphere, 0)
❯ cd example
❯ vagrant up
==> vagrant: You have requested to enabled the experimental flag with the following features:
==> vagrant:
==> vagrant: Features: typed_triggers
==> vagrant:
==> vagrant: Please use with caution, as some of the features may not be fully
==> vagrant: functional yet.
Bringing machine 'default' up with 'vsphere' provider...
==> default: Setting custom memory: 4096
==> default: Setting custom cpu count: 4
==> default: Calling vSphere CloneVM with the following settings:
==> default: -- Template VM: Kore/vm/Modeles/Packer/windows-2019-amd64-vsphere
==> default: -- Target VM: Kore/vm/GOAD/windows-2019-vagrant-example
==> default: New virtual machine successfully cloned
==> default: Waiting for the machine to report its IP address...
default: Timeout: 240 seconds
default: IP: 1.25.52.158
==> default: Waiting for machine to boot. This may take a few minutes...
default: WinRM address: 1.25.52.158:5985
default: WinRM username: vagrant
default: WinRM execution_time_limit: PT2H
default: WinRM transport: negotiate
==> default: Machine booted and ready!
==> default: Setting hostname...
==> default: Waiting for machine to reboot...
==> default: Rsyncing folder: /home/goad/windows-vagrant/example/ => /vagrant
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /home/goad/windows-vagrant/example/
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/vagrant-rsync-20221112-199115-1lwg5d2 -o ControlPersist=10m -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i '/home/goad/.vagrant.d/insecure_private_key'" "--exclude" ".vagrant/" "/home/goad/windows-vagrant/example/" "vagrant@1.25.52.158:/vagrant"
Error: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
can i skip the folder sync?
Regard.
NA3 commented
i got it
config.vm.synced_folder '.', '/vagrant', disabled: true