Last Updated: September 09, 2019
·
7.228K
· arosenhagen

prevent stdin is not a tty error in vagrant

add the following line to prevent tty errors:

config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"

2 Responses
Add your response

For the record, the command above works by placing it beneath the following line in your Vagrantfile:

Vagrant.configure(VAGRANTFILEAPIVERSION) do |config|

over 1 year ago ·

be aware that this will break the vagrant-exec plugin.

over 1 year ago ·