Я добавил debian os в vagrant, затем запустил команду 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
Это код My Syn_Folder в vagrantfile:
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
Теперь также выдает ту же ошибку, подскажите, как решить эту проблему.
config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["dmode=777", "fmode=777"]
- person Frederic Henri   schedule 21.05.2016