Article 4W5AQ [VAGRANT] connectivity to VM fails

[VAGRANT] connectivity to VM fails

by
czezz
from LinuxQuestions.org on (#4W5AQ)
Hi,
Im not sure if this is a right place to write about VAGRANT but if it is maybe someone can help me?

I am following a guide to deploy OpenStack on VirtualBox using VAGRANT 2.0.1.
Host OS: Ubuntu 16.04.6 LTS
Virtualbox: Oracle VM VirtualBox Manager 5.1.38_Ubuntu

When I execute "vagrant up" instantiation is going good up to the moment when it tries to connect to VM...
Code:root@xPC:/home/labuser/Desktop/openstacklab/vagrant-openstack# vagrant up
Bringing machine 'compute-01' up with 'virtualbox' provider"
Bringing machine 'controller-01' up with 'virtualbox' provider"
Bringing machine 'openstack-client' up with 'virtualbox' provider"
==> compute-01: Checking if box 'bento/ubuntu-18.04' is up to date"
==> compute-01: Clearing any previously set forwarded ports"
==> compute-01: Clearing any previously set network interfaces"
==> compute-01: Preparing network interfaces based on configuration"
compute-01: Adapter 1: nat
compute-01: Adapter 2: hostonly
compute-01: Adapter 3: hostonly
compute-01: Adapter 4: hostonly
compute-01: Adapter 5: hostonly
==> compute-01: Forwarding ports"
compute-01: 22 (guest) => 2222 (host) (adapter 1)
==> compute-01: Running 'pre-boot' VM customizations"
==> compute-01: Booting VM"
==> compute-01: Waiting for machine to boot. This may take a few minutes"
compute-01: SSH address: 127.0.0.1:2222
compute-01: SSH username: vagrant
compute-01: SSH auth method: private key
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.Obviously, there is no error in above output. So, I try manually connect to the localhost on 2222 but it fails.

Code:root@xPC:/home/labuser/Desktop/openstacklab/vagrant-openstack# netstat -anop | grep 2222 | grep -v unix
tcp 0 0 127.0.0.1:2222 0.0.0.0:* LISTEN 2573/VBoxHeadless off (0.00/0/0)
root@xPC:/home/labuser/Desktop/openstacklab/vagrant-openstack# ssh 127.0.0.1 -p 2222
ssh_exchange_identification: read: Connection reset by peer

root@xPC:/home/labuser/Desktop/openstacklab/vagrant-openstack# ssh -v 127.0.0.1 -p 2222
OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 2222.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8
ssh_exchange_identification: read: Connection reset by peer
Any idea what might be wrong?latest?d=yIl2AUoC8zA latest?i=KtqZS581ucY:cC8NWwurv7o:F7zBnMy latest?i=KtqZS581ucY:cC8NWwurv7o:V_sGLiP latest?d=qj6IDK7rITs latest?i=KtqZS581ucY:cC8NWwurv7o:gIN9vFwKtqZS581ucY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments