beautypg.com

Dell Emulex Family of Adapters User Manual

Page 842

background image

Emulex Drivers Version 10.2 for Linux User Manual

P010081-01A Rev. A

3. Configuration

Ethernet Driver Configuration

842

Detach desired VFs:

# virsh nodedev-dettach pci_0000_16_04_0 Device pci_0000_16_04_0

detached <-- VF LOM Port 0 (Function 0) # virsh nodedev-dettach

pci_0000_16_08_0 Device pci_0000_16_08_0 detached <-- VF LOM Port 1

(Function 1)

Example 2 (using only one VF per physical port):
SLES 11.x Xen: - View Emulex PCI devices with the lspci command:

# lspci | grep Emulex 16:00.0 Ethernet controller: Emulex

Corporation OneConnect 10Gb NIC (be3) (rev 03) <-- LOM Port 0 (Function 0)

16:00.1 Ethernet controller: Emulex Corporation OneConnect 10Gb NIC (be3)

(rev 03) <-- LOM Port 1 (Function 1) 16:04.0 Ethernet controller: Emulex

Corporation OneConnect 10Gb NIC (be3) (rev 03) <-- VF LOM Port 0 (Function

0) 16:08.0 Ethernet controller: Emulex Corporation OneConnect 10Gb NIC

(be3) (rev 03) <-- VF LOM Port 1 (Function 1) # lspci -nn | grep Emulex

16:00.0 Ethernet controller: [0200]: Emulex Corporation OneConnect 10Gb NIC

(be3) [19a2:0710] (rev 03) <-- LOM Port 0 (Function 0) 16:00.1 Ethernet

controller: [0200]: Emulex Corporation OneConnect 10Gb NIC (be3)

[19a2:0710] (rev 03) <-- LOM Port 1 (Function 1) 16:04.0 Ethernet

controller: [0200]: Emulex Corporation OneConnect 10Gb NIC (be3)

[19a2:0710] (rev 03) <-- VF LOM Port 0 (Function 0) 16:08.0 Ethernet

controller: [0200]: Emulex Corporation OneConnect 10Gb NIC (be3)

[19a2:0710] (rev 03) <-- VF LOM Port 1 (Function 1)

- List Emulex PCI device by device code

# virsh nodedev-list | grep 19a2 pci_19a2_710 <-- LOM Port 0

(Function 0) pci_19a2_710_0 <-- LOM Port 1 (Function 1)

pci_19a2_710_1 <-- VF LOM Port 0 (Function 0) pci_19a2_710_2 <-- VF LOM

Port 1 (Function 1) # virsh nodedev-dettach pci_19a2_710_1 Device

pci_19a2_710_1 detached <-- VF LOM Port 0 (Function 0) # virsh

nodedev-dettach pci_19a2_710_2 Device pci_19a2_710_2 detached <-- VF LOM

Port 1 (Function 1)

10. Use the Virtual Machine Manager GUI to attach the VF (step 5 on page 839) to the

guest operating system by using the add physical device option.

Note: To reconfigure a system that is already set up, remove the attached VF from

the guest operating system by selecting the VF and using the remove option.

See the documentation for the host operating system for information on

using the Virtual Machine Manager to attach and remove virtual interfaces.

11. Start the RHEL 6.x guest operating system. Once the guest operating system is

booted, use the lspci command to confirm the visibility of the NIC function. The

output shows a NIC function, for example:

03:00.0 Ethernet controller: Emulex Corp. Emulex OneConnect 10Gb

NIC (be3)

12. The Ethernet driver automatically loads with the out-of-box driver, and creates the

network interfaces. Use the ifconfig command to verify that the interface is created.

13. After configuring the network interfaces with proper IP addresses, you can send

and receive network traffic from the VM. See the documentation for the host and

guest operating systems for information on network configuration.