[dpdk-dev] How to bind VM's NIC to OVS

Vivek Gupta vivek-g at hcl.com
Wed Apr 27 16:16:05 CEST 2016


Hi All

I am testing a scenario where I will receive the traffic on DPDK binded port on host machine and will forward that traffic to DPDK binded port of VM machine. For this I have done the followings-
1.	Binded eth0 and eth1 of host machine to DPDK
2.	Created the OVS bridge in host machine as below
$OVS_DIR/utilities/ovs-vsctl  add-br ovsbr0 -- set Bridge ovsbr0 datapath_type=netdev 
$OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk0 -- set Interface dpdk0   type=dpdk 
$OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk1 -- set Interface dpdk1   type=dpdk 

3. Installed the VM and created virtual NIC(eth4, eth5)
4. Binded VM machine NIC to VM's DPDK 

Now I am not able to understand how to attach VM's NIC to OVS?

To solve this I tried below command on HOST MACHINE
$OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk4 -- set Interface dpdk4   type=dpdk 
$OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk5 -- set Interface dpdk5   type=dpdk 

but got error "Cannot get interface dpdk4". I believe this is due to OVS is looking in host machine for interface "dpdk4 & dpdk5" although these interface are available in VM machine.

Do I need QEMU, if yes then how it will help.

Please suggest.

Thanks & Regards
Vivek Gupta
9971514343


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------



More information about the dev mailing list