vagrant报错
来源:互联网 发布:公务员论坛qzzn 软件 编辑:程序博客网 时间:2024/06/04 00:06
错误1
vagrant up启动时如果设置成private_network报如下错:
Bringing machine 'default' up with 'virtualbox' provider...[default] Importing base box 'precise64'...[default] Matching MAC address for NAT networking...[default] Setting the name of the VM...[default] Clearing any previously set forwarded ports...[default] Creating shared folders metadata...[default] Clearing any previously set network interfaces...There was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: ["hostonlyif", "create"]Stderr: 0%...Progress state: E_INVALIDARGVBoxManage.exe: error: Failed to create the host-only adapterVBoxManage.exe: error: Assertion failed: [!aGuid.isValid()] at 'D:\tinderbox\win-4.3\src\VBox\Main\src-server\HostNetworkInterfaceImpl.cpp' (74) in long __cdecl HostNetworkInterface::init(class com::Bstr,class com::Bstr, class com::Guid,enum __MIDL___MIDL_itf_VirtualBox_0000_0000_0034).VBoxManage.exe: error: Please contact the product vendor!VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterface, interface IHostNetworkInterfaceVBoxManage.exe: error: Context: "int __cdecl handleCreate(struct HandlerArg *,int,int *)" at line 66 of file VBoxManageHostonly.cpp
Failed to create the host-only adapte
原因是virtualbox4.3.26版本有bug,无法创建host-only网卡
解决办法:下载4.3.24版本安装(安装会覆盖掉之前的版本,但不影响之前配置的虚拟机)
–》
Failed to create the host-only adapte
错误2
vagrant up启动失败,提示:
Vagrant is attempting to interface with the UI in a way that requires a TTY
错误信息:
[D:\vag]$ vagrant upBringing machine 'default' up with 'virtualbox' provider...==> default: Clearing any previously set network interfaces...==> default: Available bridged network interfaces:1) Intel(R) Centrino(R) Wireless-N 22302) Realtek PCIe GBE 绯诲.?у.?3) VirtualBox Host-Only Ethernet Adapter==> default: When choosing an interface, it is usually the one that is==> default: being used to connect to the internet.Vagrant is attempting to interface with the UI in a way that requiresa TTY. Most actions in Vagrant that require a TTY have configurationswitches to disable this requirement. Please do that or run Vagrantwith TTY
这是因为多网卡Vagrant无法选择使用哪一个,解决办法:
禁用掉另外其他网卡
修改vagrantfile文件,添加桥接网卡
(建议用不含中文的网卡,我用本地网卡“Realtek PCIe GBE 系列控制器”失败,换成无线“Intel(R) Centrino(R) Wireless-N 2230”亲测成功):
vm.network “public_network”, bridge: “Intel(R) PRO/1000 PL Network Connection”#(引号中的网卡换成你电脑上的网卡)
运行VAGRANT_HOME\bin\vagrant.exe,会提示一个信息让你升级
“Press any key to continue”…
等更新完之后就可以正常启动vagrant up了(据说在OSX中也适用)
==》
Vagrant is attempting to interface with the UI in a way that requires a TTY
错误3
Vagrant error : Failed to mount folders in Linux guest
解决方法:
vagrant plugin install vagrant-vbguest
参考这里:
Vagrant error : Failed to mount folders in Linux guest
- Vagrant启动报错
- vagrant报错
- vagrant+centos7 安装报错
- vagrant reload命令报错:UndefinedConversionError
- vagrant rsync-auto 代码同步失败报错:UndefinedConversionError
- vagrant up报错 Warning: Authentication failure. Retrying...解决方案
- vagrant up报错 * The box 'tBox' could not be found
- vagrant启动报错The following SSH command responded with a non-zero exit status.
- vagrant启动报错The following SSH command responded with a non-zero exit status.解决方法
- vagrant up启动 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 报错,已解决
- Vagrant
- vagrant
- vagrant
- vagrant
- Vagrant
- vagrant
- vagrant
- vagrant
- 使用HiVE分析数据
- 正则表达式(精华)
- 根据条件查询动态拼接sql语句
- 1006. insert for single link list with head node
- 2016找工作一路走来
- vagrant报错
- Hibernate主键生成策略
- 表格嵌套出现边框重叠变粗问题
- ubuntu 安装配置ROS Indigo
- angularjs service全局保存数据的误区
- win系统下nodejs安装及环境配置
- 第8周项目3 顺序串算法(4)
- 深度学习中的数学与技巧(7):特征值和特征向量的几何意义、计算及其性质
- 3516A/D千兆网络变百兆方法