Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS mount results in error #2

Closed
mariusgrigaitis opened this issue Mar 12, 2015 · 5 comments
Closed

NFS mount results in error #2

mariusgrigaitis opened this issue Mar 12, 2015 · 5 comments

Comments

@mariusgrigaitis
Copy link
Contributor

➜  vagrant_puphpet git:(master) vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'puphpet/ubuntu1404-x32'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'puphpet/ubuntu1404-x32' is up to date...
==> default: Setting the name of the VM: vagrant_puphpet_default_1426199225999_95106
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Checking for host entries
==> 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...
Password:
Sorry, try again.
Password:
==> 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.59.1:'/Users/mgrigaitis/work/vagrant_puphpet' /var/www

Stdout from the command:



Stderr from the command:

stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.59.1:/Users/mgrigaitis/work/vagrant_puphpet
@tautrimas
Copy link
Member

Plugin has been installed?

@mariusgrigaitis
Copy link
Contributor Author

I think so. Will check.

@mariusgrigaitis
Copy link
Contributor Author

Looks like it's not a problem in plugins

➜  vagrant_puphpet git:(master) vagrant up

============================================================
You have the Vagrant::HostManager plugin installed.
You may be required to enter your host's root/privileged
password below to continue!
============================================================

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'puphpet/ubuntu1404-x32'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'puphpet/ubuntu1404-x32' is up to date...
==> default: Setting the name of the VM: vagrant_puphpet_default_1426200127244_87786
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Checking for host entries
==> 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.59.1:'/Users/mgrigaitis/work/vagrant_puphpet' /var/www

Stdout from the command:



Stderr from the command:

stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.59.1:/Users/mgrigaitis/work/vagrant_puphpet

➜  vagrant_puphpet git:(master) vagrant plugin list
vagrant-bindfs (0.4.0)
vagrant-hostmanager (1.5.0)
vagrant-hostsupdater (0.0.11)
vagrant-share (1.1.3, system)

@mariusgrigaitis
Copy link
Contributor Author

Tried to run it inside the box:

root@packer-virtualbox-iso-1422643551:/home/vagrant# mount -v -o 'vers=3,udp' 192.168.59.1:'/Users/mgrigaitis/work/vagrant_puphpet' /var/www
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Thu Mar 12 22:51:13 2015
mount.nfs: trying text-based options 'vers=3,udp,addr=192.168.59.1'
mount.nfs: prog 100003, trying vers=3, prot=17
mount.nfs: trying 192.168.59.1 prog 100003 vers 3 prot UDP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.59.1 prog 100005 vers 3 prot UDP port 792
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.59.1:/Users/mgrigaitis/work/vagrant_puphpet

Seems to be related to hashicorp/vagrant#1744 ?

@mariusgrigaitis
Copy link
Contributor Author

Seems like cleaning /etc/exports helps.

So sudo echo "" > /etc/exports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants