Учитывая следующий Vagrntfile:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = 4000
vb.cpus = 2
end
## hold of on these - not sure why but they don't seem to work
config.vm.network :private_network, ip: "192.168.0.103"
config.vm.synced_folder ".", "/vagrant/", type: "nfs"
## forward web
config.vm.network "forwarded_port", guest: 8080, host: 8080
## forward API
config.vm.network "forwarded_port", guest: 1337, host: 1337
## forward SignalR
config.vm.network "forwarded_port", guest: 1338, host: 1338
config.vm.box_download_insecure = true
config.vm.box = "box-cutter/ubuntu1404-desktop"
end
Почему, почему я продолжаю получать:
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.0.1:'/Users/wayne/sonatribe' /vagrant
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.0.1:/Users/wayne/sonatribe
ПОМОЩЬ!!!
[ОБНОВИТЬ]
Вывод после изменения строки NFS на
config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777","fmode=777"] }
Выдает следующее:
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Installing NFS client...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
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.0.1:'/Users/wayne/sonatribe' /vagrant
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.0.1:/Users/wayne/sonatribe
[ОБНОВЛЕНИЕ 2] Моя настроенная базовая коробка:
config.vm.box = "XUbuntu" config.vm.box_url = "https://www.dropbox.com/s/86m4h2r70mowtse/package.box?dl=0&raw=1
Это просто XUbuntu с установленными NVM, node, emberjs
Я собираюсь попытаться восстановить базовый блок с установленной NFS в соответствии с https://coderwall.com/p/uaohzg/use-nfs-to-speed-up-your-vagrant