[prev in list] [next in list] [prev in thread] [next in thread] 

List:       npaci-rocks-discussion
Subject:    Re: [Rocks-Discuss] KVM additional network interfaces
From:       Luca Clementi <luca.clementi () gmail ! com>
Date:       2013-12-12 17:37:56
Message-ID: CAERW5Oz76y1QCg76y5fYD+UA9FNAzAbHQ2iFSEF4m_f_vJCVxw () mail ! gmail ! com
[Download RAW message or body]

On Wed, Dec 11, 2013 at 11:57 AM, Karun K <hpcmonk@gmail.com> wrote:
> Is it possible to add more network interfaces to a KVM host ? All our
> physical hosts have two network interfaces, rocks KVM's by default are
> created with only one interface.
>
> I am using Rocks 6.1 with CentOS 6.4
>
> Any suggestions or comments ?
>


Yes you can add as many interface as you want.

You will need to play with rocks add host interface vm_name eth2 ......
http://central6.rocksclusters.org/roll-documentation/kvm/6.1/network.html

Depending if you want bridging (the vm node will need to talk to the
vm-container) or a tap interface (the vm node will not be able to talk
to the vm-container but it will get better performance) the cmd line
is slightly different.

For tap interface you need to create a fake vlanN interface on the
vm-container-0-1 on vlan N.

The path to resolve the physical interface name is: hosted-vm-0-1-0
eth0 vlan number -> vlanN interface vlan number -> vlanN interface
subnet name -> vm-container-0-1 subnet name -> physical interface


HOST                SUBNET  IFACE MAC               IP
NETMASK       MODULE NAME               VLAN OPTIONS CHANNEL
vm-container-0-1:   private eth0  00:14:4f:80:de:00 10.1.255.250
255.255.0.0   ------ vm-container-0-1   ---- ------- -------
vm-container-0-1:   ------- eth1  00:14:4f:80:de:01 ---------------
------------- ------ ------------------ ---- ------- -------
vm-container-0-1:   private vlan3 ----------------- ---------------
------------- ------ ------------------ 3    ------- -------
hosted-vm-0-1-0:    ------- eth0  1a:77:6e:00:00:08 ---------------
------------- ------ hosted-vm-0-1-0    3    ------- -------

Luca
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic