SSH 命令在 vagrant up 时以非零退出状态响应
SSH command responded with a non-zero exit status while vagrant up
我在vagrant中添加了debian os,然后运行 vagrant up命令,但是会抛出如下错误
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:'/u01/ChennaiBox/mage2_vagrant' /vagrant
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: Connection timed out
接下来我添加了/etc/sudoers
vagrant ALL=(ALL) NOPASSWD:ALL
Defaults:vagrant !requiretty
这是我在 vagrantfile 中的 Syn_Folder 代码:
if Vagrant::Util::Platform.windows?
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777", "fmode=777"]
else
# config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777", "fmode=777"] }
config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["dmode=777", "fmode=777"]
#rsync_args = ['--verbose', '--archive', '-z']
#config.vm.synced_folder ".", "/vagrant",
# rsync__args: rsync_args, rsync__exclude: ['.vagrant/'], rsync__auto: true, type: 'rsync'
end
现在也报同样的错误,请教我如何解决这个问题。
我解决了停止防火墙的问题
使用以下命令:
systemctl stop firewalld
对我有用。
我有同样的问题 suddelny vagrant up 不再工作并且错误消息 "mount.nfs: Connection timed out"。被显示
我只是删除旧版本的 vagrant 并下载新版本“2.2.4”
我在vagrant中添加了debian os,然后运行 vagrant up命令,但是会抛出如下错误
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:'/u01/ChennaiBox/mage2_vagrant' /vagrant
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: Connection timed out
接下来我添加了/etc/sudoers
vagrant ALL=(ALL) NOPASSWD:ALL
Defaults:vagrant !requiretty
这是我在 vagrantfile 中的 Syn_Folder 代码:
if Vagrant::Util::Platform.windows?
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777", "fmode=777"]
else
# config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777", "fmode=777"] }
config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["dmode=777", "fmode=777"]
#rsync_args = ['--verbose', '--archive', '-z']
#config.vm.synced_folder ".", "/vagrant",
# rsync__args: rsync_args, rsync__exclude: ['.vagrant/'], rsync__auto: true, type: 'rsync'
end
现在也报同样的错误,请教我如何解决这个问题。
我解决了停止防火墙的问题
使用以下命令:
systemctl stop firewalld
对我有用。
我有同样的问题 suddelny vagrant up 不再工作并且错误消息 "mount.nfs: Connection timed out"。被显示 我只是删除旧版本的 vagrant 并下载新版本“2.2.4”