Dear All,          

         I am facing the same problem as
<http://openvswitch.org/pipermail/discuss/2015-August/018439.html>
http://openvswitch.org/pipermail/discuss/2015-August/018439.html; But the
thread seems not to be solved , can someone help me?

 

Thank you.

 

1.

Ovs version : 2.5.0

Dpdk version: 2.2.0

Qemu verion : 2.2.1

vm ips are 192.168.0.93/24 and 192.168.0.91/24;  os is Centos 6.7 x86_64;
kernel is 2.6.32

host os is Ubuntu 14.04.2 kernel is 3.16.

host cat /etc/network/interface

 

auto lo

iface lo inet loopback

 

# The primary network interface

#auto p1p1

#iface p1p1 inet dhcp

 

auto p3p1

iface p3p1 inet dhcp

 

auto p1p1

iface p1p1 inet manual

up ifconfig $IFACE 0.0.0.0 up

down ifconfig $IFACE down

 

auto br0

iface br0 inet dhcp

 

2. Ovs-vsctl show:

                   root@host152:/# ovs-vsctl show

18f23a8a-6ce3-49c4-9068-fe4aa6cc735b

    Bridge "br0"

        Port "br0"

            Interface "br0"

                type: internal

        Port "dpdk0"

            Interface "dpdk0"

                type: dpdk

        Port "vhost-user1"

            Interface "vhost-user1"

                type: dpdkvhostuser

        Port "vhost-user2"

            Interface "vhost-user2"

                type: dpdkvhostuser

3.       Create vm using qemu as follows:

qemu-system-x86_64 -m 1024 -smp 1 -cpu host -hda /root/vm12.qcow2 -boot c
-enable-kvm -no-reboot -net none -vnc 0.0.0.0:2 -chardev
socket,id=char2,path=/usr/local/var/run/openvswitch/vhost-user2 -netdev
type=vhost-user,id=mynet2,chardev=char2,vhostforce -device
virtio-net-pci,mac=02:00:00:00:02:22,netdev=mynet2 -object
memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on -numa
node,memdev=mem -mem-prealloc -d exec -name vm12

 

qemu-system-x86_64: -netdev
type=vhost-user,id=mynet2,chardev=char2,vhostforce: chardev "char2" went up

 

4.       $DPDK_DIR/tools/dpdk_nic_bind.py --status

 

Network devices using DPDK-compatible driver

============================================

0000:01:00.0 '82575EB Gigabit Network Connection' drv=vfio-pci unused=

0000:01:00.1 '82575EB Gigabit Network Connection' drv=vfio-pci unused=

 

Network devices using kernel driver

===================================

0000:03:00.0 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
if=p3p1 drv=r8169 unused=vfio-pci *Active*

 

Other network devices

=====================

<none>

 

5.       ovs-ofctl dump-flows br0

 

NXST_FLOW reply (xid=0x4):

cookie=0x0, duration=8084.244s, table=0, n_packets=264, n_bytes=11088,
idle_age=320, in_port=2 actions=output:3

cookie=0x0, duration=8078.359s, table=0, n_packets=228, n_bytes=9576,
idle_age=1, in_port=3 actions=output:2

 

6.        ovs-ofctl show br0

OFPT_FEATURES_REPLY (xid=0x2): dpid:00002c534a01cd5e

n_tables:254, n_buffers:256

capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP

actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst

1(dpdk0): addr:2c:53:4a:01:cd:5e

     config:     0

     state:      0

     current:    100MB-FD

     speed: 100 Mbps now, 0 Mbps max

2(vhost-user1): addr:00:00:00:00:00:00

     config:     PORT_DOWN

     state:      LINK_DOWN

     speed: 0 Mbps now, 0 Mbps max

3(vhost-user2): addr:00:00:00:00:00:00

     config:     PORT_DOWN

     state:      LINK_DOWN

     speed: 0 Mbps now, 0 Mbps max

LOCAL(br0): addr:2c:53:4a:01:cd:5e

     config:     0

     state:      0

     current:    10MB-FD COPPER

     speed: 10 Mbps now, 0 Mbps max

OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

 

You mentioneid that "After tailing the logs and basic troubleshooting, we
finally can have 2 VMs to ping to each other. " Do you mean ovs log
ovs-vswitchd.log?
 
I can't find anything not normal;
 
root@host152:/# tail /usr/local/var/log/openvswitch/ovs-vswitchd.log
2016-04-07T08:43:51.319Z|00062|memory|INFO|15600 kB peak resident set size
after 10.1 seconds
2016-04-07T08:43:51.319Z|00063|memory|INFO|handlers:2 ports:4 revalidators:2
rules:5 udpif keys:9
2016-04-07T08:45:29.225Z|00001|dpdk(vhost_thread2)|INFO|vHost Device
'/usr/local/var/run/openvswitch/vhost-user2' 0 has been added
2016-04-07T08:50:50.133Z|00064|connmgr|INFO|br0<->unix: 1 flow_mods in the
last 0 s (1 deletes)
2016-04-07T08:50:57.794Z|00065|connmgr|INFO|br0<->unix: 1 flow_mods in the
last 0 s (1 adds)
2016-04-07T08:51:03.180Z|00066|connmgr|INFO|br0<->unix: 1 flow_mods in the
last 0 s (1 adds)
2016-04-07T10:07:44.938Z|00002|dpdk(vhost_thread2)|INFO|vHost Device
'/usr/local/var/run/openvswitch/vhost-user1' 1 has been added
2016-04-07T10:36:55.613Z|00067|connmgr|INFO|br0<->unix: 1 flow_mods in the
last 0 s (1 deletes)
2016-04-07T10:37:13.825Z|00068|connmgr|INFO|br0<->unix: 1 flow_mods in the
last 0 s (1 adds)
2016-04-07T10:37:19.710Z|00069|connmgr|INFO|br0<->unix: 1 flow_mods in the
last 0 s (1 adds)

 

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to