Homestead v2.0.15 (and v2.0.16) is failing to complete a boot up of a virtual machine with NFS shared folders on the host I am currently using. The host OS is Windows and it is using a fresh installation of Homestead. The complete error message is:
"Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t vboxsf -o uid=id -u vagrant,gid=getent group vagrant | cut -d: -f3,actimeo=1 home_vagrant_Code /home/vagrant/Code
mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant,actimeo=1 home_vagrant_Code /home/vagrant/Code
The error output from the last command was:
unknown mount option `actimeo=1'
valid options:
rw mount read write (default)
ro mount read only
uid =
gid =
ttl =
iocharset =
convertcp =
dmode =
fmode =
umask =
dmask =
fmask =
There is some delay before it appears after the message "Mounting shared folders..." and the listing of folders has been shown.
Given the error of "unknown mount option `actimeo=1'", the following commit would seem to be the cause:
https://github.com/laravel/homestead/commit/977ca46b7b7c2fe5893db6b57d56176a5443bc8f
I have reverted my installation to v2.0.14 and confirmed that it is still working as expected.
I can confirm...
Laravel Homestead 0.2.6
VirtualBox 4.3.26
Vagrant 1.7.2
Windows 8.1
EDIT:
Solution: Remove type: "nfs" on your folders of Homestead.yaml.
http://docs.vagrantup.com/v2/synced-folders/nfs.html
"Windows users: NFS folders do not work on Windows hosts. Vagrant will ignore your request for NFS synced folders on Windows."
Someone should do a PR to documentation.
Perhaps you can try using another Solution like https://github.com/gpkfr/GenericVM.
hope this help !
Thanks @coolhome, removing type: "nfs" from Homestead.yaml file solved this issue with me.
Thanks @coolhome Removing type: "nfs" line completely worked for me. (thumbsup)
Another solution for WIndows users running wanting to use nfs in vagrant is installing the vagrant-winnfsd plugin. I've posted my issue and the solution a found in this stackoverflow post.
Most helpful comment
I can confirm...
Laravel Homestead 0.2.6
VirtualBox 4.3.26
Vagrant 1.7.2
Windows 8.1
EDIT:
Solution: Remove type: "nfs" on your folders of Homestead.yaml.
http://docs.vagrantup.com/v2/synced-folders/nfs.html
"Windows users: NFS folders do not work on Windows hosts. Vagrant will ignore your request for NFS synced folders on Windows."
Someone should do a PR to documentation.