KVM USB 直通和 Zydas USB 无线适配器:设备或资源繁忙

KVM USB 直通和 Zydas USB 无线适配器:设备或资源繁忙

我正在尝试为 80211 模块设置内核测试虚拟机。

我使用以下命令启动我的机器:

kvm -m 512 -net nic -net vde -usb -usbdevice host:0ace:1215  ktesting.img

我设置了一个 kvm 映像,其中 debian 连接到 eth0 接口上的 vde_switch,并且

Bus 003 Device 004: ID 0ace:1215 ZyDAS ZD1211B 802.11g

我安装了“zd1211-firmware”并在 /dev/bus/usb 中赋予了正确的权限。

wlan0 接口启动:

eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56  
          inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1706 (1.6 KiB)  TX bytes:1458 (1.4 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:02:72:71:dc:a3  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

但是当我尝试使用 wpa_supplicant 连接到我的路由器时:

wpa_supplicant -i wlan0 -c conf

我得到了这个输出(stderr 和 stout):

ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWFREQ]: Device or resource busy
ioctl[SIOCSIWFREQ]: Device or resource busy
ioctl[SIOCSIWFREQ]: Device or resource busy
ioctl[SIOCSIWFREQ]: Device or resource busy
wlan0: Trying to associate with 00:0c:f6:83:e8:9f (SSID='home' freq=2412 MHz)
wlan0: Association request to the driver failed 
wlan0: Authentication with 00:0c:f6:83:e8:9f timed out.
wlan0: Trying to associate with 00:0c:f6:83:e8:9f (SSID='home' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Authentication with 00:0c:f6:83:e8:9f timed out.
wlan0: Trying to associate with 00:0c:f6:83:e8:9f (SSID='home' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Authentication with 00:0c:f6:83:e8:9f timed out.
wlan0: Trying to associate with 00:0c:f6:83:e8:9f (SSID='home' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Authentication with 00:0c:f6:83:e8:9f timed out.
wlan0: CTRL-EVENT-TERMINATING - signal 2 received

我尝试使用笔记本电脑上的 wifi 适配器连接到同一个网络,使用同一个配置文件,只安装 zd1211-firmware,它工作正常。这不是我编译的内核的问题,因为问题仍然存在于库存 debian 内核(wheezy)

相关内容