我在使用Vagrant& amp;安装文件夹时遇到了一些麻烦。 Puphpet。
这是错误消息(使用--debug):
/opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
INFO interface: error: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o vers=3,udp 192.168.56.1:/var/www/vm /mnt/vagrant-vflsf_dz1yb40c5aje
Stdout from the command:
Stderr from the command:
mount.nfs: Connection timed out
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o vers=3,udp 192.168.56.1:/var/www/vm /mnt/vagrant-vflsf_dz1yb40c5aje
Stdout from the command:
Stderr from the command:
mount.nfs: Connection timed out
INFO interface: Machine: error-exit ["Vagrant::Errors::NFSMountFailed", "The following SSH command responded with a non-zero exit status.\nVagrant assumes that this means the command failed!\n\nmount -o vers=3,udp 192.168.56.1:/var/www/vm /mnt/vagrant-vflsf_dz1yb40c5aje\n\nStdout from the command:\n\n\n\nStderr from the command:\n\nmount.nfs: Connection timed out\n"]
这很奇怪'因为IP pf该框是“192.168.56.102”,而不是“192.168.56.1”以及为什么“udp”? 我已经安装了这个包和插件:
sudo apt-get install nfs-kernel-server
vagrant plugin install vagrant-bindfs
vagrant plugin repair
我在:
Vagrant 1.9.3
VirtualBox 5.0.32_Ubuntu r112930
Linux spectre 4.4.0-66-lowlatency #87-Ubuntu SMP PREEMPT Fri Mar 3 16:43:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
如果我使用Vagrant添加--debug,系统会询问我root密码,但是,如果没有参数,请不要询问。
请问好吗?
由于 和Fabrice
答案 0 :(得分:0)
对我来说,罪魁祸首是思科的AnyConnect VPN客户端。 如果断开连接,一切都会正常工作(不再挂载NFS共享文件夹)。
希望有用。