码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-06-03 13:13:57      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

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无法选择使用哪一个,解决办法:

  1. 禁用掉另外其他网卡

  2. 修改vagrantfile文件,添加桥接网卡
    (建议用不含中文的网卡,我用本地网卡“Realtek PCIe GBE 系列控制器”失败,换成无线“Intel(R) Centrino(R) Wireless-N 2230”亲测成功):

    vm.network "public_network", bridge: "Intel(R) PRO/1000 PL Network Connection"#(引号中的网卡换成你电脑上的网卡)
  3. 运行VAGRANT_HOME\bin\vagrant.exe,会提示一个信息让你升级


  4. "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

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

标签:

原文地址:http://www.cnblogs.com/dapang/p/heheda.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!