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

后端 未结 8 1885
情深已故
情深已故 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 21:14

    I found in another forum that the local Vagrant directory is mounted as "/vagrant" via rsync. This is set in the box itself, you can check by opening

    C:\Users\{your_username}\.vagrant.d\boxes\debian-VAGRANTSLASH-jessie64\8.2.2\virtualbox\Vagrantfile

    and see the setting

      config.vm.synced_folder \
        ".",
        "/vagrant",
        type: "rsync"
    

    to get around this I added the following line in my local Vagrantfile

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

    and the error was resolved

提交回复
热议问题