我在安装文件夹时遇到了一些麻烦。
这是错误消息(带有--调试):
/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"]这很奇怪,因为这个盒子是"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进行调试,系统会问我根密码,但是如果没有参数,就不要问。
有什么想法吗?
谢谢法布里斯
发布于 2017-05-03 11:32:26
对我来说,罪魁祸首是思科的AnyConnect VPN客户端。如果您断开连接,一切将正常工作(不再挂载NFS共享文件夹挂起)。
希望能有用。
https://stackoverflow.com/questions/43015731
复制相似问题