Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

DHCP requests into external networks don't work per default. I don't know how to change that, but you can use cloud-init (and config-drive) to provide an ip address to an instance in an external network. That's how we configure our VMs with interfaces in external networks. So basically, it's something like

nova boot --flavor <FLAVOR> --image <IMAGE> --nic port-id=<PORT-ID> --config-drive true <YOUR-VM>

The referenced port should be created prior to the instance, of course. Alternatively, you can specify an ip address instead of a specific port:

... --nic net-id=<NET-ID>,v4-fixed-ip=<YOUR-IP>

Cloud-init has to be active inside the used image, and if everything works, it will configure the VM's nic according to your configuration. Hope this helps!