VM does not get IP address

asked 2013-04-02 10:16:43 -0500

jj-ador gravatar image

I followed the following instruction for installing Folsom Devstack http://networkstatic.net/openstack-folsom-quantum-devstack-installation-tutorial/ (http://networkstatic.net/openstack-fo...) when it was done, I checked route -n in host machine , I didn't see any route for fixed (172.24.17.0/24) and floating (172.31.246.128/25) ip. So, I could not ping external and internal network. When I uploaded one instance from horizon,it showed fixed ip is assigned and even I could allocate floating ip but when I checked the log file of VM,

" cloudsetup: failed to read iid from metadata. tried 30 WARN: /etc/rc3.d/S45cloudsetup failed Starting dropbear sshd: OK ===== cloudfinal: system completely up in 51.81 seconds ==== wget: can't connect to remote host (169.254.169.254): Network is unreachable wget: can't connect to remote host (169.254.169.254): Network is unreachable wget: can't connect to remote host (169.254.169.254): Network is unreachable instanceid: publicipv4: localipv4 : wget: can't connect to remote host (169.254.169.254): Network is unreachable clouduserdata: failed to read instance id WARN: /etc/rc3.d/S99clouduserdata failed "

and when I loged in to VM, it could not recieve ip address, what should I do?!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-04-08 01:10:03 -0500

I had the same problem but I resolved it :)

I noticed that inside the instance, the mac address of an interface (i.e. eth0) doesn't match the address of its corresponding vnet address on the host.

iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM --checksum-fill

run this command, I hope it will solve your problem.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-02 10:16:43 -0500

Seen: 56 times

Last updated: Apr 08 '13