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

落日映苍穹つ 2022-07-30 19:25 253阅读 0赞
  1. 使用agrant安装系统时,遇到的错误提示:Vagrant with VirtualBox on Windows10: Rsync could not be found on your PATH
  2. 配置如下:
  3. Vagrant.configure(2) do |config|
  4. config.vm.box = "debian/jessie64"
  5. config.vm.provider "virtualbox" do |v|
  6. v.customize ["modifyvm", :id, "--memory", "768"]
  7. end
  8. config.vm.provision :shell, path: "bootstrap.sh"
  9. config.vm.network :private_network, ip: "172.27.146.17"
  10. config.vm.hostname = "www.delevensstijl.hst1.nl"
  11. config.hostsupdater.aliases = ["www.thelifestylemethod.hst1.nl"]
  12. end

报错信息如下:

Center

解决方式,找到如下的文件:

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

原配置:

  1. config.vm.synced_folder \
  2. ".",
  3. "/vagrant",
  4. type: "rsync"

改为:

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

原文地址:http://stackoverflow.com/questions/34176041/vagrant-with-virtualbox-on-windows10-rsync-could-not-be-found-on-your-path

发表评论

表情:
评论列表 (有 0 条评论,253人围观)

还没有评论,来说两句吧...

相关阅读