Closed raupie closed 8 years ago
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
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.
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.