I get "no route to host" when I ssh my CirrOS instance

asked 2016-01-26 01:49:01 -0600

Hello everyone,

I set up OpenStack on 5 Ubuntu-Servers (controller, compute, networking, block storage, object storage). After I succeeded overcoming some difficulties, I launched an instance as I was told in the documentation. Now I want to do ssh cirros@ but everytime I try it says ssh: connect to host port 22: No route to host although I think my rules are set correctly:

#nova secgroup-list-rules default
 |  IP Protocol  |  From Port  |  To Port  |  IP Range |  Source Group  |
 | tcp           | 22          | 22        | |                |
 |               |             |           |           | default        |
 |               |             |           |           | default        |
 | icmp          | -1          | -1        | |                |

I also can't ping the server (Destination Host Unreachable). But that might be because of our firewall: I cant ping any IP on the www but apt-get update works out.

I tried out different solutions from the internet, also from this forum but nothing worked out. I would really welcome it, if somebody could help me. Also if you need some more information, tell me - I'm new to this topic, so I don't really know what would be helpful for you.

Kind regards and thanks in advance, Stupendissima

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-02-19 01:49:42 -0600

I found several typos, so after I corrected them, everything worked - grazie lo stesso.

edit flag offensive delete link more

answered 2016-01-26 10:56:43 -0600

Ciao Julia, have you verified (through VM's console) that it correctly gets IP address from DHCP? from which machine are you attempting to ssh cirros VM? Do you have connectivity from that machine?

Something you could test...

Connect to the network host and try command ip netns. It will show all dhcp and router instances created. Then try connecting to the DHCP referred to the subnet you are attaching your cirros VM to (15.196...) executing ip netns exec qdhcp-<SUBNET_ID> ifconfig. If it works, try connecting to the instance from there: ip netns exec qdhcp-<SUBNET_ID> ssh cirros@

  • If you have access, then it means previous attempts were performed from a machine that does not have connectivity to the VM.
  • If you don't, there is a problem with the VM (e.g. it does not get correct IP from DHCP)
edit flag offensive delete link more


Ciao Antonio, in the meantime I found out, that there are no IPs assigned to the instance. But I don't know how to figure out what's the error exactly.

stupendissima gravatar imagestupendissima ( 2016-01-28 02:42:24 -0600 )edit

Ciao Julia, do you have any error in your neutron log files? If so, please pastebin them.

Antonio G. gravatar imageAntonio G. ( 2016-01-30 11:09:06 -0600 )edit

Ciao Antonio, I've the same issue. It's impossible to reach the instance I've opened a post here

https://ask.openstack.org/en/question/119783/no-route-to-instance-ssh-and-ping-no-route-to-host/ (post)

Can you help me? thanks in advance

d@kj gravatar imaged@kj ( 2019-03-01 09:29:58 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-26 01:20:54 -0600

Seen: 5,899 times

Last updated: Feb 19 '16