Ask Your Question

cloud-config without IP address on VM

asked 2016-08-24 21:49:55 -0600

satish.lx gravatar image

I have neutron networking with liberty and am running flat VLAN with my provider vlan. Now i have disabled DHCP server so when i boot instance it doesn't have IP address :( i am trying to pass some #cloud-config data to set hostname and some custome configuration but it doesn't working.

Question is does #cloud-config work without IP address on instance when it boots? How openstack pass that data to instance?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-08-25 02:02:40 -0600

eblock gravatar image

The only way I found (in Mitaka) to get cloud-init to apply the network configuration for external networks or networks with disabled DHCP was via config-drive. Depending on the cloud-init version and the images you are using there could be difficulties, though. If you work with CLI you can pass the option --config-drive true to nova boot command. If you work with Horizon there is a checkbox in the Launch Instance dialog. With this option set a virtual drive is mounted temporarily to the instance from where cloud-init reads the network information and writes the respective files, you don't even have to do anything, depending on your cloud.cfg, of course.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2016-08-24 21:49:55 -0600

Seen: 655 times

Last updated: Aug 25 '16