Framework: Homestead v2.0.15+ failing with "unknown mount option `actimeo=1'"

Created on 13 Apr 2015  路  5Comments  路  Source: laravel/framework

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 = default file owner user id
gid = default file owner group id
ttl = time to live for dentry
iocharset = i/o charset (default utf8)
convertcp = convert share name from given charset to utf8
dmode = mode of all directories
fmode = mode of all regular files
umask = umask of directories and regular files
dmask = umask of directories
fmask = umask of regular files"

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.

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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gabriellimo picture gabriellimo  路  3Comments

iivanov2 picture iivanov2  路  3Comments

kerbylav picture kerbylav  路  3Comments

Fuzzyma picture Fuzzyma  路  3Comments

ghost picture ghost  路  3Comments