Ask Your Question

Is there a way to enable active instance to auto detect a new virtual NIC ?

asked 2013-11-27 01:11:01 -0500

chen-li gravatar image

updated 2013-11-27 01:11:45 -0500

Hi list

I'm working under CentOS 6.4 + Havana.

I noticed there is a command can add a new virtual port to an active instance. nova interface-attach

But, after this command, I have to get into the instance, and edit the new virtual NIC's configuration file to let it get IP from dhcp.

After a new virtual port been added, is there a way to enable the instance to auto detected the new NIC and get IP from dhcp by itself ?

Thanks. -chen

edit retag flag offensive close merge delete


This is OS dependent. If you use some linux variant, you could try to add an udev rule to do this when the interface is attached. Maybe this can help you start:

Cristi Falcas gravatar imageCristi Falcas ( 2013-12-12 14:12:05 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-12-10 13:44:14 -0500

gmi gravatar image

You ccould change the base image and define network interface scripts for multiple interfaces, e.g ifcfg-eth0, ifcfg-eth1, ifcfg-eth2, etc.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-11-27 01:11:01 -0500

Seen: 298 times

Last updated: Dec 10 '13