‘vagrant ssh’ times out with bento box on old Ubuntu 14.04 Trusty. There is a simple fix. This short article details bypass for this bug step by step.
On old Ubuntu 14.04 LTS trusty, ‘vagrant ssh’ can’t connect: “default: Warning: Connection timeout. Retrying…”. This is a bug with known bypass.
$ nano Vagrantfile
## Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.provider 'virtualbox' do |vb|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
end
end
$ vagrant up
$ vagrant ssh
And you’re in:
vagrant@vagrant:~$
Adminstrivia
Tested on Ubuntu 14.04.3 LTS, x86_64 (amd64), vagrant 1:1.7.4, virtualbox 5.0.8-103449~Ubuntu~trusty, Linux 3.19.0-73-generic.
Updated: made this article shorter.