Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

NFS shared folder timed out #166

Closed
raupie opened this issue Dec 8, 2015 · 2 comments
Closed

NFS shared folder timed out #166

raupie opened this issue Dec 8, 2015 · 2 comments

Comments

@raupie
Copy link

raupie commented Dec 8, 2015

Trying the nfs options (mount_options: ['rw', 'vers=3', 'tcp', 'nolock']) and the provisioning hangs for 15 minutes then fails with a timed out error.

I'm running windows 7 and have winnfsd set up for my shared folders.

@czerasz
Copy link

czerasz commented May 25, 2016

I had the same issue on Ubuntu 16.04.

I removed the synced_folder_opts section:

global_config.cache.synced_folder_opts = {
  type: :nfs,
  mount_options: ['rw', 'vers=4', 'tcp', 'nolock']
}

Now the VM is using vboxsf:

$ mount -l | grep /tmp/vagrant-cache
vagrant-cache on /tmp/vagrant-cache type vboxsf (uid=1000,gid=1000,rw)

Mounting the cachier directory (/tmp/vagrant-cache) interfered with mounting the /vagrant directory.

Host system: Ubuntu 16.04
Guest system: Ubuntu 14.04.3

@raupie
Copy link
Author

raupie commented May 26, 2016

Removing the synced_folder_opts section allows the box to load now. I was trying to use vagrant-cachier for symfony / ezpublish cache, log and vendor folders.

config.cache.enable :generic, {  
  "cache"  => { cache_dir: "/var/www/symfony.dev/public_html/app/cache" },
  "logs"   => { cache_dir: "/var/www/symfony.dev/public_html/app/logs" },
  "vendor" => { cache_dir: "/var/www/symfony.dev/public_html/vendor" },
}

It appears to be working. I can see those cache buckets are now symlinks. Not sure if I should see anything in my C:\Users\USERNAME\.vagrant.d\cache\VENDOR\BOX folder.

Thank you for your help.

@raupie raupie closed this as completed May 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants