Homestead 无法挂载共享目录解决方案
2015-10-22 18:50
621 查看
那么不废话。 我执行
然后我装了vagrant-vbguest, 重装了homestead, vagrant甚至virtual box.
但都没什么卵用
最后我尝试了一个一开始我觉得最不可能的方法:http://stackoverflow.com/questions/30175290/laravel-homestead-vagrant-vboxsf-not-available-issue (看第一个答案。)
我打开了
找到了
然后
热泪盈眶啊。
打个小广告: 装逼图片认准装逼大全
homestead up。 虚拟机启动没问题、SSH连接没问题,但是到了挂载的时候报错:
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_idagou /home/vagrant/idagou mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant`,actimeo=1 home_vagrant_idagou /home/vagrant/idagou 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 =<arg> default file owner user id gid =<arg> default file owner group id ttl =<arg> time to live for dentry iocharset =<arg> i/o charset (default utf8) convertcp =<arg> convert share name from given charset to utf8 dmode =<arg> mode of all directories fmode =<arg> mode of all regular files umask =<arg> umask of directories and regular files dmask =<arg> umask of directories fmask =<arg> umask of regular files
然后我装了vagrant-vbguest, 重装了homestead, vagrant甚至virtual box.
但都没什么卵用
最后我尝试了一个一开始我觉得最不可能的方法:http://stackoverflow.com/questions/30175290/laravel-homestead-vagrant-vboxsf-not-available-issue (看第一个答案。)
我打开了
AppData\Roaming\Composer\vendor\laravel\homestead\scripts\homestead.rb
找到了
mount_opts的位置然后将
['actimeo=1']改成了
['']。
然后
homestead halt,
homestead up。 一切就都OK了!
备选方案
homestead edit然后检查folders项,看看type是不是给设置成nfs了。去掉type那一行即可。
热泪盈眶啊。
打个小广告: 装逼图片认准装逼大全
相关文章推荐
- mac 安装laravel/homestead
- Windows7系统中使用vagrant构建Linux虚拟化开发环境
- Vagrant 1.1, salt and vbguest 配置开发环境的虚拟机
- 安装 pgdg 源中的 PostgreSQL 9.2
- Ruby on Rails 成长记(2)
- Mac 使用vagrant安装ubuntu环境
- vagrant,Linux下利用代理进行apt-get下载
- vagrant 资源收集
- vagrant 打包问题
- 用于devstack的vagrant配置文件
- 《Storm实时数据处理》学习笔记之二:使用Vagrant配置本地集群(下)
- 《Storm实时数据处理》学习笔记之一:使用Vagrant配置本地集群(上)
- Laravel 曲谱 - 1.2 安装 - c) 创建 Vagrant Box
- apt-get: Could not resolve 'archive.ubuntu.com'
- 在windows 7下创建windows server 2008 virtual box
- windows下使用ssh挫折记录
- The following SSH command responded with a non-zero exit status.(vagrant)
- 使用VirtualBox + Vagrant打造属于自己的开发环境1
- 使用VirtualBox + Vagrant打造属于自己的开发环境2
- 使用Packer制作vagrant box