Ask Your Question

cannot ssh, ping to instance (instance can't get dhcp ip).

asked 2014-06-05 03:43:57 -0500

punxism gravatar image

updated 2014-06-06 17:20:21 -0500

smaffulli gravatar image

I'm newbi in openstack and network. I can't connect using ssh to my instance.

  1. virtual box on my window machine.
  2. icehouse, ubuntu 14.04.
  3. single node, installed with 3 nic

I used nova-network with FlatDHCP.

on my instance consol-log.

> udhcpc (v1.20.1) started
> Sending discover...

> No lease, failing

> WARN: /etc/rc3.d/S40-network failed

> .....

> checking

> failed 1/20: up 186.37. request failed

on my ubuntu syslog

 **un  5 17:25:03 openstack-ubuntu dnsmasq-dhcp[2576]: DHCPDISCOVER(br100) fa:16:3e:7b:2d:6c no address available**

ps aux | grep dns

nobody    2576  0.0  0.0  28204   996 ?        S    17:13   0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/ **--listen-address=** --except-interface=lo --**dhcp-range=set:vmnet,,static,,120s** --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

root      2577  0.0  0.0  28204   248 ?        S    17:13   0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/ **--listen-address=** --except-interface=lo --**dhcp-range=set:vmnet,,static,,120**s --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

nova network-list

| ID                                   | Label | Cidr        |
| dd760648-8f94-4cc4-8f94-7fe4c59f141c | vmnet | |
| b328c540-324a-4bc3-b6ec-0e50e29acdb0 | demo2 | |

nova list (my instance use demo2 network)

| ID                                   | Name           | Status | Task State | Power State | Networks                               |
| 4593ec95-ed4f-4859-8543-5e93b677aa2b | demo-instance1 | ACTIVE | -          | Running     | demo2=,, |
  1. I created floating ip ( and associated ip to intance. But i can`t ssh, ping to instance.
  2. I disabled ufw firewall but problem is same.

I assumed the problem happens becase ip-range is mismatched. I found that dnsmasq listen-address is, But my instance address, then i think, my instance can't find dnsmasq. does it seem a correct assumption?

then I want to changed listen-address to how to change dnsmasq listen-address.

and my dnsmasq dhcp-range=set:vmnet,,static,,120s my instance ip doesn't included. But i don't understand why vmnet is included and why demo2 network doesn`t included. I didn't create vmnet. Does anybody have any suggestion on how to proceed?

edit retag flag offensive close merge delete


There are dozens of questions about similar issues on this site. Please search this site and edit your question to highlight why this issue should be different than the others.

smaffulli gravatar imagesmaffulli ( 2014-06-06 17:21:40 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-06-08 23:27:01 -0500

punxism gravatar image

updated 2014-06-08 23:29:54 -0500

Solved my self.

My instance ip is but dnsmasq listen-address is It was not matched. Then I deleted all vm network using "nova-manager delete" command in opentstack machine.

And NAT CIDR is on virtual box, I think, It is duplicated with Host-Only network use that as private network on my openstack), then I changed my private network as

Then when i created vm instance. I can connected vm instance and dnsmasq listen-address is


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-06-05 03:43:57 -0500

Seen: 1,358 times

Last updated: Jun 08 '14