Vagrant with VirtualBox on Windows10: “Rsync” could not be found on your PATH

后端 未结 8 1895
情深已故
情深已故 2021-01-29 20:21

I\'ve used Vagrant for a while on a windows 7 system. Now I\'ve a new PC with windows 10. I installed Oracle Virtual Box and Vagrant and I try to start a machine with the comman

8条回答
  •  借酒劲吻你
    2021-01-29 20:57

    I have solved this issue as below when use cent/7 at Windows 7.

    Check the box synced_folder at C:\Users[username]\.vagrant.d\boxes\centos-VAGRANTSLASH-7\1602.02\virtualbox\Vagrantfile

    config.vm.synced_folder ".", "/home/vagrant/sync", type: "rsync"   
    

    Override the defition at project Vagrantfile for directory mapping.

    config.vm.synced_folder ".", "/home/vagrant/sync", type: "virtualbox"  
    

    I imagine the box might be prepared at non Windows system, this case can be happened on many boxes, such as fedora/23-cloud-base.

提交回复
热议问题