[ovs-dev] help! usb wifi device lost, even crash!
Hi, Here some usb wifi devices connect to host through an usb hub on centos linux release 7.2.1511. Execute "lsusb": Bus 002 Device 005: ID 0557:2419 ATEN International Co., Ltd Bus 002 Device 004: ID 0557:7000 ATEN International Co., Ltd Hub Bus 002 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 002 Device 002: ID 8087:8002 Intel Corp. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 026: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 025: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 024: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 023: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 018: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 017: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 016: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 015: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 014: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 013: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 012: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub Bus 001 Device 022: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 021: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 020: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 019: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 011: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 010: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 009: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 008: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 007: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 006: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 003: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub Bus 001 Device 002: ID 8087:800a Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Each usb wifi devices will map to every virtual machine based on libvirt(kvm). Several problems come out: a, the wifi devices will disappear after its virtual machine shutdown, only restart host it can reuse! b, even crash occurs, puzzle! So, anyone who had ever met these cases. Thans for response! Here are 2 logs for a/b, separated by "=...". BTW, i can not subscribe to linux-wireless/netdev maillist after several tries, i do not know why, so i can not report to them. == a.log == Apr 13 16:25:14 simpleMST kernel: [ cut here ] Apr 13 16:25:14 simpleMST kernel: WARNING: CPU: 0 PID: 0 at drivers/usb/host/xhci-ring.c:1598 handle_cmd_completion+0xdb5/0xe60() Apr 13 16:25:14 simpleMST kernel: Modules linked in: vhost_net vhost macvtap macvlan tun fuse ebtable_filter ebtables ip6table_filter ip6_tables bonding openvswitch gre vxlan libcrc32c nf_conntrack_ipv4 nf_defrag_ipv4 xt_comment xt_multiport xt_conntrack nf_conntrack iptable_filter arc4 ath9k_htc ath9k_common ath9k_hw ath mac80211 cfg80211 x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm rfkill crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper iTCO_wdt mei_me cryptd mei iTCO_vendor_support ata_generic pcspkr ioatdma sg i2c_i801 lpc_ich pata_acpi mfd_core shpchp ipmi_si ipmi_msghandler wmi acpi_power_meter nfsd auth_rpcgss nfs_acl lockd sunrpc ip_tables ext4 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic ast syscopyarea sysfillrect sysimgblt drm_kms_helper ttm drm igb ahci Apr 13 16:25:14 simpleMST kernel: libahci libata ptp crct10dif_pclmul crct10dif_common pps_core megaraid_sas crc32c_intel dca i2c_algo_bit i2c_core dm_mirror dm_region_hash dm_log dm_mod Apr 13 16:25:14 simpleMST kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.6 #1 Apr 13 16:25:14 simpleMST kernel: Hardware name: Powerleader PR2510G2/SC612DI-8F, BIOS 2.0a 06/17/2016 Apr 13 16:25:14 simpleMST kernel: 3cd0391b2f2511b6 88085fc03d68 8161eabb Apr 13 16:25:14 simpleMST kernel:
Re: [ovs-dev] [urgent] is there anyway to enable multi-vlan for one vm upon ovs ?
i get it, but the performance between SVM and VMs is very bad :( here show the details, it is a bit longer :) 1, add br1. ovs-vsctl add-br br1 2, create ovs-br1.xml. ovs-br1 3, start network ovs-br1. virsh create ovs-br1.xml 4, start 3 VMs. ovs-br1-centos7x64min1511 vlan-all eth0 NON-IPADDRas SVM vlan-trunks=2,3 _ovs-br1-centos7x64min1511vlan-02 eth0 192.168.111.92as VM vlan-tag=2 __ovs-br1-centos7x64min1511 vlan-03 eth0 192.168.111.93as VM vlan-tag=3 # then enable sshd on each VM. 5, configure SVM. modprobe 8021q systemctl stop NetworkManager chkconfig NetworkManager off vconfig add eth0 2 vconfig add eth0 3 vconfig set_name_type DEV_PLUS_VID_NO_PAD # add ifcfg-eth0.2 and ifcfg-eth0.3 in /etc/sysconfig/network-scripts/ set IPADDR=192.168.111.102 VLAN=yes DEVICE=eth0.2 in ifcfg-eth0.2 set IPADDR=192.168.111.103 VLAN=yes DEVICE=eth0.3 in ifcfg-eth0.3 systemctl restart network ip addr ls # will show eth0.2@eth0 192.168.111.102 and eth0.3@eth0 192.168.111.103, their mac is same as eth0 itself. 6, add routes for SVM. ip route add 192.168.111.92/32 via 192.168.111.102 dev eth0.2 ip route add 192.168.111.93/32 via 192.168.111.103 dev eth0.3 7, test connectivity. # ping from 192.168.111.92(VM vlan-tag=2) to 192.168.111.102(SVM vlan-trunks=2,3) is ok, v.v. :) # ping from 192.168.111.93(VM vlan-tag=3) to 192.168.111.103(SVM vlan-trunks=2,3) is ok, v.v. :) # ping from 192.168.111.92(VM vlan-tag=2) to 192.168.111.103(SVM vlan-trunks=2,3) is ok, v.v. :) # ping from 192.168.111.93(VM vlan-tag=3) to 192.168.111.102(SVM vlan-trunks=2,3) is ok, v.v. :) # # ping from 192.168.111.92(VM vlan-tag=2) to 192.168.111.93(VM vlan-tag=3) is not ok, v.v. :) # # so, it seems to meet requirements now :) 8, test performance. # @SVM, iperf -s. # @VMs, iperf -c 192.168.111.102 -d -t 60 or iperf -c 192.168.111.103 -d -t 60, up and down bandwidths are only tens KBps :( # next, i scp a 3.3GB size file from VM to SVM, speed is only tens KBps, even stalled ! # then i start another vm A(ovs-br1, tag=2) and scp the same file from VM to A, speed is up to hundreds MBps ! what is the bottleneck ? i guess that SVM can not deal 8021q fast enough may be the reason ? i need help, thanks for anyone who check this email :) regards ! -- Original -- From: "Ben Pfaff";<b...@ovn.org>; Date: Mon, Feb 6, 2017 12:42 PM To: "xiucai"<hualing...@foxmail.com>; Cc: "dev"<d...@openvswitch.org>; Subject: Re: [ovs-dev] [urgent] is there anyway to enable multi-vlan for onevm upon ovs ? I don't think it normally makes sense to have IP addresses on the same subnet on different VLANs. If you do that, then how would the kernel know, when it sends a packet to that subnet, which VLAN to use? On Mon, Feb 06, 2017 at 10:17:31AM +0800, xiucai wrote: > thanks a lot. > i am very sorry about my delay, because i have take the Chinese spring > festival holidays :) > > > in SVM, i had configured vlan as below: > modprobe 8021q > vconfig add eth0 2 > vconfig add eth0 3 > # add ifcfg-eth0.2/ifcfg-eth0.3 to /etc/sysconfig/network-scripts/ and > modify them. > systemctl restart network > # eth0/192.168.111.1 eth0.2@eth0/192.168.111.102 > eth0.3@eth0/192.168.111.103 will appear. > > > but, it still does not work :( > > > so, could you give me details of "how to enable multi-vlan for one vm upon > openvswitch" :) > > > regards! > > > -- Original -- > From: "Ben Pfaff";<b...@ovn.org>; > Date: Tue, Jan 24, 2017 00:21 AM > To: "xiucai"<hualing...@foxmail.com>; > Cc: "ovs-dev"<ovs-dev@openvswitch.org>; > Subject: Re: [ovs-dev] [urgent] is there anyway to enable multi-vlan for > onvm upon ovs ? > > > > On Sun, Jan 22, 2017 at 05:18:48PM +0800, xiucai wrote: > > hi, > > everyone :) > > > > > > in my case, there is one vm for storage sharing, we name it SVM, and > > several VMs as testing client. > > for historic reasons, i can not modify the network which uses vlan upon > > ovs. > > > > > > the SVM is corresponding to vnet0, make it as trunk for tag-2 and tag-3; > > the VM1 is corresponding to vnet2/tag-2 and the VM2 is corresponding to > > vnet4/tag-3. > > i wanna all VMx can connect to SVM, but VMx can not communicate with > > each other! > > > > > > ==configurations== > > SVM's eth0: 192.168.1.1 static 52:54:01:CB:35:C4 > > VM1's eth0: 192.168.1.2 static 52:54:02:CB:35:C4 > > VM2's eth0: 192.168.1.3 static 52:54:03:CB:3
[ovs-dev] [urgent] is there anyway to enable multi-vlan for on vm upon ovs ?
hi, everyone :) in my case, there is one vm for storage sharing, we name it SVM, and several VMs as testing client. for historic reasons, i can not modify the network which uses vlan upon ovs. the SVM is corresponding to vnet0, make it as trunk for tag-2 and tag-3; the VM1 is corresponding to vnet2/tag-2 and the VM2 is corresponding to vnet4/tag-3. i wanna all VMx can connect to SVM, but VMx can not communicate with each other! ==configurations== SVM's eth0: 192.168.1.1 static 52:54:01:CB:35:C4 VM1's eth0: 192.168.1.2 static 52:54:02:CB:35:C4 VM2's eth0: 192.168.1.3 static 52:54:03:CB:35:C4 Bridge "br1" Port "vnet4" tag: 3 Interface "vnet4" Port "vnet0" trunks: [2, 3] Interface "vnet0" Port "vnet2" tag: 2 Interface "vnet2" Port "br1" Interface "br1" type: internal ovs_version: "2.5.0" = but it does not work :( they can not ping through each other! i use tcpdump to monitor eth0 on SVM, and ping SVM from VM1, it said "ARP Request who-has SVM-IP to tell VM1-IP". and i use arp to add entry for each other, then it only said "VM1-IP > SVM-IP: ICMP echo request, id , seq x, length xx", but no "reply". i have got no idea about this case, i do not know i have mistaken the concept of trunk on ovs or my config is wrong :( waiting for warm-hearted response from you. regards! ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev