Quantcast
Channel: Mellanox Interconnect Community: Message List
Viewing all articles
Browse latest Browse all 6275

Is it possible to setup both SR-IOV-IB and Non-SR-IOV-Ethernet within 1 VM?

$
0
0

Hello,

 

I'm working for Icehouse-SR-IOV testbed on CentOS7.1.

I could setup SR-IOV-Infiniband testbed.

Mellanox-Neutron-Icehouse-Redhat-InfiniBand - OpenStack

 

Now, on SR-IOV-Infiniband testbed, I'm going to add one more normal ethernet (10G) NIC into VM, that is, 2 different types of network within 1 VM. Is it possible?

 

Even though I added one more net/subnet/bridge/port for normal ethernet NIC, VM can't get normal ethernet IP. Only SR-IOV-IB NIC is working.

 

To make SR-IOV-IB on compute node, I had to stop neutron-openvswitch-agent and start only neutron-mlnx-agent service.

Using neutron-mlnx-agent/mlnx_vif/eswitch, both SR-IOV-IB and normal ethernet can be attached to one VM?

 

br-data ----- ib0 (SR-IOV-IB, E_IPOIB)

br-eno4 ----- eno4 (10G)

// I tried (a) 2 <port-id> cases and (b) 1 <port-id> and 1 <net-id> case, but the result is same.

 

#nova list

+--------------------------------------+-------------------+--------+------------+-------------+--------------------------------------------------+

| ID                                   | Name              | Status | Task State | Power State | Networks                                         |

+--------------------------------------+-------------------+--------+------------+-------------+--------------------------------------------------+

| c1dff155-6578-4e79-8d03-817b04005b08 | sriov-ib-eth-test | ACTIVE | -          | Running     | netib=192.168.22.18; icehouse-net=192.168.151.11 |

+--------------------------------------+-------------------+--------+------------+-------------+--------------------------------------------------+

 

#ip netns exec qrouter-c64eb05b-471b-45a2-a5b8-ad6e08051172 ssh root@192.168.22.18

...

[root@kvm ~]# ifconfig

ib0       Link encap:InfiniBand  HWaddr A0:00:0A:18:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 

          inet addr:192.168.22.18  Bcast:192.168.22.255  Mask:255.255.255.0

...

[root@kvm ~]# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.22.0    *               255.255.255.0   U     0      0        0 ib0

default         host-192-168-22 0.0.0.0         UG    0      0        0 ib0

 

 

How can I attach both SR-IOV-IB and Non-SR-IOV-Ethernet within one VM? Am I missing something? Any help is welcome!


Viewing all articles
Browse latest Browse all 6275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>