Product SiteDocumentation Site

4.2.5. Verify Host Connection to Guest

Before moving forward, it’s worth verifying that the host can contact the guest on port 3121. Here’s a trick you can use. Connect using ssh from the host. The connection will get destroyed, but how it is destroyed tells you whether it worked or not.
First add guest1 to the host machine’s /etc/hosts file if you haven’t already. This is required unless you have DNS setup in a way where guest1’s address can be discovered.
# cat << END >> /etc/hosts
192.168.122.10    guest1
END
If running the ssh command on one of the cluster nodes results in this output before disconnecting, the connection works:
# ssh -p 3121 guest1
ssh_exchange_identification: read: Connection reset by peer
If you see one of these, the connection is not working:
# ssh -p 3121 guest1
ssh: connect to host guest1 port 3121: No route to host
# ssh -p 3121 guest1
ssh: connect to host guest1 port 3121: Connection refused
Once you can successfully connect to the guest from the host, shutdown the guest. Pacemaker will be managing the virtual machine from this point forward.