symfony2-vagrant
symfony2-vagrant copied to clipboard
NFS is reporting that your exports file is invalid
Hi
After a vagrant up, i receive the following error:
==> default: Exporting NFS shared folders... NFS is reporting that your exports file is invalid. Vagrant does this check before making any changes to the file. Please correct the issues below and execute "vagrant reload":
exports:2: path contains non-directory or non-existent components: /Users/xxx/Documents/vagrant/path exports:2: no usable directories in export entry exports:2: using fallback (marked offline): /
After the second vagrant up,
Bringing machine 'default' up with 'virtualbox' provider... ==> default: VirtualBox VM is already running.
If i ping the box i receive a answer, but if call the ip on the browser, i get a ERR_CONNECTION_TIMED_OUT response
Tested on OS X 10.10.1
Are you edited any files? It looks like Vagrant tries to mount non existing directory are you sure you followed installation guide correctly?
You were right. I fixed the problem as described here http://amygroshek.com/wp/vagrant-nfs-export-file-invalid/
but now, i have the following error message tried with Vagrant 1.7.1
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: symfony2-vagrant_default_1420489767006_5321
==> 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: 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: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.2.0
default: VirtualBox Version: 4.3
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
default: /tmp/vagrant-puppet-4/manifests => /Users/jack/Documents/vagrant/symfony2-vagrant/puppet/manifests
default: /tmp/vagrant-puppet-4/modules-0 => /Users/jack/Documents/vagrant/symfony2-vagrant/puppet/modules
==> default: Running provisioner: puppet...
==> default: Running Puppet with default.pp...
==> default: stdin: is not a tty
==> default: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class mysql at /tmp/vagrant-puppet-4/manifests/default.pp:70 on node precise64.home
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.