Quantcast
Channel: Sniffer10G
Viewing all articles
Browse latest Browse all 99

Does the Sniffer10G software support KVM?

$
0
0

Yes. Here are instructions for, and an example of, using Sniffer10G with KVM. This uses Sniffer10G 2.0.7.50292 with KVM (kvm --version is qemu-kvm-1.0) hypervisor.

Sniffer10G 2.0.7 or later is required to install the software in a virtualized environment.

The KVM host was running Ubuntu 12.04 3.2.0-27-generic x86_64. Install all KVM related packages on the host:

# apt-get install qemu-kvm
# apt-get install libvirt-bin
# apt-get install virt-manager
# apt-get install virt-viewer

Add intel_iommu=on to the kernel cmdline. For 10G-PCIE2-8B2-* and 10G-PCIE2-8C2-* adapters, please edit /etc/libvirt/qemu.conf and enable the relaxed_acs_check=1 option. Reboot KVM host.

Start virt-manager and create a Guest Virtual Machine.

Before starting the Guest VM, click on the Open button and then Click on Details to show the VM details.

On the lower left, Click on "+Add Hardware". A Pop-up window appears. On the left side pane, Select "PCI Host Device". On the right side pane, scroll down to the Myricom device to pass through (0C:00.0 Myri-10G Dual-Protocol NIC) and select it. Click on the Finish button. Click on Run to start the Guest VM and proceed to install the Guest OS and the Sniffer10G package.

This test was run on asus3 and created asus3vm1 with a CentOS6.2 Guest OS.

Licensing tools work on Guest OS(tested myri_license -b 0 -f /tmp/lic, -b 1 -c and -b 1 -f). Licenses are shown below:

asus3vm1# myri_nic_info -B
# Serial MAC               ProductCode      Driver   Version
1 421561 00:60:dd:45:46:98 10G-PCIE2-8C2-2S myri_snf 2.0.7.50292
4 421561 00:60:dd:45:46:99 10G-PCIE2-8C2-2S myri_snf 2.0.7.50292
2 400945 00:60:dd:45:c7:18 10G-PCIE2-8B2-2C myri_snf 2.0.7.50292
3 400945 00:60:dd:45:c7:19 10G-PCIE2-8B2-2C myri_snf 2.0.7.50292
0 370151 00:60:dd:46:86:3b 10G-PCIE-8B-S    myri_snf 2.0.7.50292

Testing: asus3vm1 8B-S to sm1 8C2-2S port0

asus3vm1# ./myri_counters -c -b 0
asus3vm1# ./tests/snf_simple_recv -t -p 0
0>  8444368 pkts (   710861485B         0 events     0 pkts) in 1.000 secs ( 8443506 pps), Avg Pkt:     84, BW (Gbps):  5.686
Packets received   in HW:        321099300
Packets reinjected,    app:        0
Packets reflected to netdev:       0
Total bytes received,  app:        27021321900 (25769 MB)
Total bytes received + HW aligned: 28678299216 (27349 MB)
Average Packet Length:    84 bytes
Dropped, NIC overflow:    0
Dropped, ring overflow:   0
Dropped, bad:             0
sm1# ./snf_replay -p 0 -i 150 /tmp/tcpdump3.out
Thread 0> Packets: 321099300
Thread 0> Bytes: 27021321900
Thread 0> Rate: 8.42 Mpps
Thread 0> Throughput: 5.665 Gbps in 38.157 secs
sm1# ./snf_pktgen -s 60 -n 1000000000
 Size    Mbps    Mpps    Efficiency
   60   7140.93  14.877   99.97%
sm1# ./snf_pktgen -p 1 -s 9000 -n 1000000
 Size    Mbps    Mpps    Efficiency
 9000   9972.18  0.139    99.99%

Testing: asus3vm1 8C2-2S port1 to sm1 8C2-2S port1

asus3vm1# ./myri_counters -c -b 4
asus3vm1# ./tests/snf_simple_recv -t -p 4
sm1# ./snf_replay -p 1 -i 150 /tmp/tcpdump3.out
sm1# ./snf_pktgen -p 1 -s 60 -n 1000000000
sm1# ./snf_pktgen -p 1 -s 9000 -n 1000000

Related Note:


Viewing all articles
Browse latest Browse all 99

Trending Articles