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 type 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, 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)

 

neutron router-create demo-ib-router

neutron net-create --provider:physical_network=physnet1 --provider:network_type=vlan --provider:segmentation_id=1000 netib

neutron subnet-create netib --name demo-ib-subnet --gateway 192.168.22.1 192.168.22.0/24

neutron router-interface-add demo-ib-router demo-ib-subnet

neutron port-create netib --name sriov_port_ib --binding:vnic_type direct

 

neutron net-create icehouse-net

neutron subnet-create icehouse-net --name icehouse-subnet --gateway 192.168.151.1 192.168.151.0/24

neutron router-interface-add demo-ib-router icehouse-subnet

neutron port-create icehouse-net --name eth_port --binding:vnic_type normal

 

#nova boot --flavor m1.medium --image "CentOS-VM"

  --nic port-id=87536b49-34a5-4a46-bb5b-37e9c7d1506f

  --nic net-id=7d23d441-ac30-40dc-b4a0-9d0deefdeb28

  --availability-zone fac-e-Test:abc  sriov-ib-eth-test

 

// I tried 2 <port-id> cases also, not using 1 <port-id> and 1 <net-id> case (above one), 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>