Ask Your Question
0

How to enable both interface on VM interface on boot

asked 2015-02-25 03:31:03 -0600

How to enable both interface up and running, on VM creation

I have attached two NIC to VM instance with redhat-6 image, the Image booted up properly, the vm console only shows one interface up

ci-info: +--------+-------+-------------+---------------+-------------------+
ci-info: | Device |   Up  |   Address   |      Mask     |     Hw-Address    |
ci-info: +--------+-------+-------------+---------------+-------------------+
ci-info: |   lo   |  True |  127.0.0.1  |   255.0.0.0   |         .         |
ci-info: |  eth1  | False |      .      |       .       | fa:16:3e:23:23:30 |
ci-info: |  eth0  |  True | 10.0.255.21 | 255.255.255.0 | fa:16:3e:d7:ce:17 |
ci-info: +--------+-------+-------------+---------------+-------------------+

The eth0 is public interface and eth1 is private network,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-25 04:06:27 -0600

dbaxps gravatar image

You may via libguestfs package or via qemu-nbd , prepare required rhel-6 qcow2 image with 2 interfaces.
Upload it to glance && launching VM ( via horizon for instance) attach instance to two private networks
Then both interfaces would come up with corresponding private IPs. That is at least my experience.

edit flag offensive delete link more

Comments

Can this be simplified ? Is it possible to add a cloud-init file in postintslall script that will bring up both the interface,

Free OpenStack Consultant gravatar imageFree OpenStack Consultant ( 2015-02-25 06:45:01 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-25 03:31:03 -0600

Seen: 284 times

Last updated: Feb 25 '15