Dell Mellanox Family of Adapters User Manual

Page 44

Advertising
background image

Driver Installation and Configuration

Rev 1.1

Mellanox Technologies

44

4.2.7.3 Enabling SR-IOV and Para Virtualization on the Same Setup

To enable SR-IOV and Para Virtualization on the same setup:

Step 1.

Create a bridge.

Step 2.

Change the related interface (in the example below bridge0 is created over eth5).

Step 3.

Restart the service network.

Step 4.

Attach a virtual NIC to VM.

4.2.7.4 Assigning a Virtual Function to a Virtual Machine

This section will describe a mechanism for adding a SR-IOV VF to a Virtual Machine.

Assigning the SR-IOV Virtual Function to the Red Hat KVM VM Server

Step 1.

Run the virt-manager.

Step 2.

Double click on the virtual machine and open its Properties.

vim /etc/sysconfig/network-scripts/ifcfg-bridge0

DEVICE=bridge0

TYPE=Bridge

IPADDR=12.195.15.1

NETMASK=255.255.0.0

BOOTPROTO=static

ONBOOT=yes

NM_CONTROLLED=no

DELAY=0

DEVICE=eth5

BOOTPROTO=none

STARTMODE=on

HWADDR=00:02:c9:2e:66:52

TYPE=Ethernet

NM_CONTROLLED=no

ONBOOT=yes

BRIDGE=bridge0

ifconfig -a

eth6 Link encap:Ethernet HWaddr 52:54:00:E7:77:99

inet addr:13.195.15.5 Bcast:13.195.255.255 Mask:255.255.0.0

inet6 addr: fe80::5054:ff:fee7:7799/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:481 errors:0 dropped:0 overruns:0 frame:0

TX packets:450 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:22440 (21.9 KiB) TX bytes:19232 (18.7 KiB)

Interrupt:10 Base address:0xa000

Advertising