问题1:Vagrant启动会时无响应
问题现象:启动时Vagrant等待,一直不能启动起来。
直接在virtualBox中启动时,报错不能为虚拟电脑启动一个任务,返回码为:E_FAIL (0x80004005)
经过查询,原来电脑没有开启vt技术,本人电脑为TP420,开启方式:
开机按F12,进入BIOS的Security中开启以下两项:
- Intel (R) Virtualization Technology [Enable]
- Intel (R) VT-d Feature [Enable]
问题2:Vagrant启动时Timeout
问题现象:启动时报如下错误
[default: Error: Connection timeout. Retrying... ]
[default: Error: Connection timeout. Retrying... ]
[default: Error: Connection timeout. Retrying... ]
这个是因为360的晶核防护禁用了64位,关闭它就可以了(在安全防护中心的右上角)。
VirtualBox没有32位选项也是这个原因:
Intel-VT晶核防护引擎占用了CPU的虚拟化技术,将其关闭后重启系统,再打开VM VirtualBox,就可以建立64位虚拟机系统了。
问题3:不能挂载共享文件夹
问题现象:启动时报如下错误
==> default: Mounting shared folders...
default: /vagrant => E:/VmWork/ubuntu14.04
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` vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant
The error output from the last command was:
stdin: is not a tty
mount: unknown filesystem type 'vboxsf'
这个问题请移步:手工为Vagrant安装VBoxGuestAdditions