Hi All,
I created vhostuser port using OVS-DPDK on RHEL 7.1 host machine. I'm able to
ping gateway using the newly created OVS brige.
But when I launched a guest VM, not able ping the gateway from the guest VM.
I'm clueless about the issue. Previously I had run the same steps on same host
everything was working fine.
Please let me know how to debug/fix the issue.
[root@kujo ~]# ovs-vsctl show
67f49972-493f-46bb-ae8d-671fe55226ea
Bridge "pkt0"
Port "vhostuser2"
Interface "vhostuser2"
type: dpdkvhostuser
Port "pkt0"
Interface "pkt0"
type: internal
Port "dpdk0"
Interface "dpdk0"
type: dpdk
[root@kujo ~]# ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.4.0
Compiled Jan 5 2016 16:12:47
DB Schema 7.12.1
[root@kujo ~]# qemu-system-x86_64 --version
QEMU emulator version 2.4.1, Copyright (c) 2003-2008 Fabrice Bellard
[root@kujo ~]# ifconfig pkt0
pkt0: flags=323<UP,BROADCAST,RUNNING,PROMISC> mtu 1500
inet 10.54.216.88 netmask 255.255.255.0 broadcast 10.54.216.255
inet6 fe80::e611:5bff:fe98:963 prefixlen 64 scopeid 0x20<link>
ether e4:11:5b:98:09:63 txqueuelen 500 (Ethernet)
RX packets 4 bytes 394 (394.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 732 (732.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@kujo ~]# ping -I pkt0 10.54.216.1
PING 10.54.216.1 (10.54.216.1) from 10.54.216.88 pkt0: 56(84) bytes of data.
64 bytes from 10.54.216.1: icmp_seq=1 ttl=255 time=2.48 ms
64 bytes from 10.54.216.1: icmp_seq=2 ttl=255 time=3.01 ms
64 bytes from 10.54.216.1: icmp_seq=3 ttl=255 time=3.96 ms
^C
--- 10.54.216.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 2.484/3.153/3.960/0.610 ms
Guest VM launched:
[root@kujo ~]# qemu-system-x86_64 -smp 4 -boot d -cdrom TinyCore-current.iso -m
512 TinyCore-current.iso -boot d -name varun -object
memory-backend-file,id=mem,size=8192M,mem-path=/dev/hugepages,share=on
-mem-prealloc -chardev
socket,id=char1,path=/usr/local/var/run/openvswitch/vhostuser2 -netdev
type=vhost-user,id=mynet1,chardev=char1,vhostforce -device
virtio-net-pci,mac=52:55:00:00:00:01,netdev=mynet1 -daemonize
qemu-system-x86_64: -netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce:
chardev "char1" went up
WARNING: Image format was not specified for 'TinyCore-current.iso' and probing
guessed raw.
Automatically detecting the format is dangerous for raw images, write
operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
VNC server running on `::1:5900'
10.54.216.222 is my guest VM IP:
[root@kujo ~]# tcpdump -i pkt0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on pkt0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:47:14.822665 ARP, Request who-has 10.54.216.222 tell 10.54.216.1, length 46
17:47:18.342539 ARP, Request who-has 10.54.216.22 tell 10.54.216.156, length 46
Regards,
Varun
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss