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

后端 未结 8 765
情书的邮戳
情书的邮戳 2020-12-15 19:17

Problem: vagrant up fails with the error below. I am running vagrant on Windows 7 and the base box is Ubuntu )( files.vagrantup.com/precise32.box ).

how can it be fi

相关标签:
8条回答
  • 2020-12-15 19:28

    I'm using Vagrant 1.7.4

    Execute the below code before running vagrant up:

    export VAGRANT_DETECTED_OS=cygwin
    

    That will eliminate the exiting of vagrant and will allow you to choose Network Interface.

    0 讨论(0)
  • 2020-12-15 19:29

    This worked for me on cygwin:

    Or add this to ~/.bashrc:

    export VAGRANT_DETECTED_OS=cygwin
    

    Then I got the "Vagrant displays a message that it needs to run some internal upgrades..."

    Edit - Oops! Spoke to soon. During its updates, I got Warning: Authentication failure. Retrying... until timeout :P

    Edit 2 - I was able to fix it by setting config.ssh.private_key_path to the .vagrant.d/insecure_private_key in my Windows user's home directory.

    0 讨论(0)
  • 2020-12-15 19:29

    This may also be caused by not having Hardware Virtualization enabled in BIOS.

    Also encountered this with Windows 10, when Vagrant cannot properly detect OS.

    0 讨论(0)
  • 2020-12-15 19:30

    I had the same error while destroying a Vagrant Box. I simply added -f and it did the job.

    vagrant destroy m001 -f
    

    This is happening because when script attempts vagrant destroy, Vagrant asks for [Yes/No] confirmation. Adding -f skips that.

    0 讨论(0)
  • 2020-12-15 19:32

    I got the same error after upgrading Vagrant from 1.4 to 1.6.3 (Windows 7).

    Running VAGRANT_HOME\bin\vagrant.exe manually resolved this issue for me:

    • Execute VAGRANT_HOME\bin\vagrant.exe
    • Vagrant displays a message that it needs to run some internal upgrades
    • "Press any key to continue"...
    • Once the process finished (it took several minutes), I was able to proceed with Vagrant instance launch as usual.
    0 讨论(0)
  • 2020-12-15 19:35

    also can happen if you have both vmware and virtual box installed and you try to use MinGW.

    0 讨论(0)
提交回复
热议问题