Vagrant: Vagrant 1.9.4: mount.nfs: access denied by server while mounting 33.33.33.1

Created on 29 Apr 2017  ยท  11Comments  ยท  Source: hashicorp/vagrant

Vagrant version

Vagrant 1.9.4

Host operating system

Ubuntu 16.10 x86_64

Guest operating system

Ubuntu 13.10 x64

Vagrantfile

Vagrant::Config.run do |config|

    # Configure the VM box to use
    config.vm.box = 'ubuntu-server'
#    config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210.box'
    config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-1310-x64-virtualbox-puppet.box'

# Configure VM Ram usage
   config.vm.customize ["modifyvm", :id,
        "--memory", "1024",
        "--cpus", "2"
        ]

    # Configure network and port forwarding
    config.vm.network :hostonly, "33.33.33.10"
    config.vm.forward_port 80, 8080,      :auto => true  # HTTP
    config.vm.forward_port 5433, 5433,  :auto => true  # Postgresql
    config.vm.forward_port 9000, 9000,  :auto => true  # FPM

    #config.vm.forward_port 27017, 27017 # MongoDB

    # Configure shared folders
    config.vm.share_folder "vagrant-root", "/vagrant", ".", :nfs => true
    config.vm.share_folder "www", "/var/www", "..", :nfs => true
    config.vm.share_folder "puppet", "/tmp/vagrant-puppet", "puppet", :nfs => true

    # Configure provisioning
    config.vm.provision :puppet do |puppet|
        puppet.manifests_path = "puppet/manifests"
        puppet.module_path = "puppet/modules"
    end
end

Debug output

https://gist.github.com/giancarloandroid/f27cfad52c4b8a9f26b9e354caa52452

Expected behavior

Virtual machine started with success

Actual behavior

mount.nfs: access denied by server while mounting 33.33.33.1:/home/giancarlo/Documentos/Programacao/Vagrant/vagrant-symfony-psql
 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 33.33.33.1:/home/giancarlo/Documentos/Programacao/Vagrant/vagrant-symfony-psql /vagrant\n\nStdout from the command:\n\n\n\nStderr from the command:\n\nmount.nfs: access denied by server while mounting 33.33.33.1:/home/giancarlo/Documentos/Programacao/Vagrant/vagrant-symfony-psql\n"]

Steps to reproduce

  1. git clone https://github.com/giancarloandroid/vagrant-symfony-psql.git
  2. cd vagrant-symfony-psql
  3. vagrant up
synced-foldernfs

Most helpful comment

I "fixed" my problem by removing the nfs option.

All 11 comments

Happening to me as well, it seems like the last it's trimming the ip address from your Vagrantfile

You have 33.33.33.10 but the mount command is using 33.33.33.1

Same here.

Same.

I "fixed" my problem by removing the nfs option.

Same problem here. please help.

same problem

Same here

I've just had this with an Ubuntu 14.04 guest. It seems some versions of mount.nfs default to sec=krb5. Adding sec=sys to mount_options fixed it for me. See Specifying NFS Arguments. Might not be your issue, but worth a try.

This should be resolved in recent versions of Vagrant. If you are still experiencing this issue after upgrading, please create a new issue and I will investigate further.

Cheers!

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bbaassssiiee picture bbaassssiiee  ยท  3Comments

janw-me picture janw-me  ยท  3Comments

jsirex picture jsirex  ยท  3Comments

rrzaripov picture rrzaripov  ยท  3Comments

mpontillo picture mpontillo  ยท  3Comments