Vagrant is attempting to interface with the UI in a way that requires a TTY

本文介绍了当遇到Vagrant启动失败并提示需要TTY的问题时的解决方法。主要原因是Vagrant无法确定使用哪个网络接口,解决方式包括禁用多余的网卡及在Vagrantfile中指定正确的桥接网卡。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

vagrant up启动失败,提示:
Vagrant is attempting to interface with the UI in a way that requires a TTY
错误信息:

 [D:\vag]$ vagrant up
Bringing 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 2230
2) 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 requires
a TTY. Most actions in Vagrant that require a TTY have configuration
switches to disable this requirement. Please do that or run Vagrant
with 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中也适用)

参考:http://stackoverflow.com/questions/23633276/vagrant-is-attempting-to-interface-with-the-ui-in-a-way-that-requires-a-tty

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值