Hello,
I have a problem with getting my wireless USB adapter (ALFA USB WIFI AWUS036NEH) to work in my Kali VM, connected it to VM as an USB Device.
I run Kali with VirtualBox (Windows 8.1 Host).
The device seems to be down, and I can't get it up...
Or at least I can't scan for any networks. The device works fine on Windows.
I guess it's a driver problem, but I'm stuck and don't know what to do next.
Code:
# uname -a
Linux vmk 4.3.0-kali1-amd64 #1 SMP Debian 4.3.5-1kali1 (2016-02-11) x86_64 GNU/Linux
# lsusb | grep Ralink
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
# ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:c0:ca:8a:d2:02 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# airmon-ng
PHY Interface Driver Chipset
phy0 wlan0 rt2800usb Ralink Technology, Corp. RT2870/RT3070
# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down
# ifconfig wlan0 up
# iwlist wlan0 scan
wlan0 No scan results
# ip a | grep wlan0
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
# ip link set up wlan0
# ip a | grep wlan0
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
#ifconfig wlan0 down
# ifconfig wlan0 up
SIOCSIFFLAGS: Device or resource busy
# dmesg | tail
[ 1252.332315] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -110
[ 1252.444773] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -110
[ 1252.555946] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -110
[ 1252.667755] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -110
[ 1252.779554] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -110
[ 1252.892172] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -110
[ 1252.899210] ieee80211 phy0: rt2800_wait_csr_ready: Error - Unstable hardware
[ 1253.004220] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x7010 with error -110
[ 1253.108399] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x7010 with error -110
[ 1253.210800] ieee80211 phy0: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0404 with error -110
# lsmod
Module Size Used by
fuse 94208 3
bnep 20480 2
vboxsf 45056 0
nfnetlink_queue 20480 0
nfnetlink_log 20480 0
nfnetlink 16384 2 nfnetlink_log,nfnetlink_queue
bluetooth 512000 5 bnep
arc4 16384 2
binfmt_misc 20480 1
rt2800usb 28672 0
rt2x00usb 24576 1 rt2800usb
rt2800lib 94208 1 rt2800usb
rt2x00lib 53248 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 626688 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 540672 2 mac80211,rt2x00lib
crc_ccitt 16384 1 rt2800lib
rfkill 24576 6 cfg80211,bluetooth
vboxguest 278528 8 vboxsf
joydev 20480 0
ppdev 20480 0
vboxvideo 16384 2
evdev 20480 18
snd_intel8x0 40960 4
iosf_mbi 16384 0
psmouse 126976 0
pcspkr 16384 0
serio_raw 16384 0
drm 348160 4 vboxvideo
snd_ac97_codec 126976 1 snd_intel8x0
parport_pc 28672 0
snd_pcm 102400 2 snd_ac97_codec,snd_intel8x0
snd_timer 32768 1 snd_pcm
snd 81920 12 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
soundcore 16384 1 snd
ac97_bus 16384 1 snd_ac97_codec
parport 49152 2 ppdev,parport_pc
sg 32768 0
i2c_piix4 24576 0
battery 16384 0
8250_fintek 16384 0
ac 16384 0
acpi_cpufreq 20480 0
tpm_tis 20480 0
button 16384 0
video 36864 0
tpm 40960 1 tpm_tis
processor 36864 1 acpi_cpufreq
autofs4 40960 2
ext4 577536 1
crc16 16384 2 ext4,bluetooth
mbcache 20480 1 ext4
jbd2 106496 1 ext4
hid_generic 16384 0
usbhid 49152 0
hid 118784 2 hid_generic,usbhid
sr_mod 24576 0
cdrom 57344 1 sr_mod
sd_mod 40960 3
ata_generic 16384 0
ohci_pci 16384 0
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
crc32c_intel 24576 0
jitterentropy_rng 16384 0
sha256_ssse3 28672 1
sha256_generic 24576 1 sha256_ssse3
hmac 16384 1
drbg 24576 1
ansi_cprng 16384 0
aesni_intel 167936 0
aes_x86_64 20480 1 aesni_intel
lrw 16384 1 aesni_intel
gf128mul 16384 1 lrw
glue_helper 16384 1 aesni_intel
ablk_helper 16384 1 aesni_intel
cryptd 20480 2 aesni_intel,ablk_helper
ahci 36864 2
libahci 32768 1 ahci
ata_piix 36864 0
ehci_pci 16384 0
ohci_hcd 49152 1 ohci_pci
ehci_hcd 77824 1 ehci_pci
usbcore 233472 7 rt2x00usb,ohci_hcd,ohci_pci,rt2800usb,ehci_hcd,ehci_pci,usbhid
usb_common 16384 1 usbcore
e1000 135168 0
libata 233472 4 ahci,libahci,ata_generic,ata_piix
scsi_mod 229376 4 sg,libata,sd_mod,sr_mod
also possibly relevant dmesg:
Code:
[ 19.221778] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected
[ 20.080575] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[ 20.578808] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 20.579180] usbcore: registered new interface driver rt2800usb
[ 21.527121] cfg80211: World regulatory domain updated:
[ 21.527126] cfg80211: DFS Master region: unset
[ 21.527128] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 21.527132] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 21.527134] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 21.527136] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 21.527139] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 21.527142] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 21.527144] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 21.527146] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 21.527149] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 22.795703] Bluetooth: Core ver 2.20
[ 22.795713] NET: Registered protocol family 31
[ 22.795714] Bluetooth: HCI device and connection manager initialized
[ 22.795835] Bluetooth: HCI socket layer initialized
[ 22.795837] Bluetooth: L2CAP socket layer initialized
[ 22.795841] Bluetooth: SCO socket layer initialized
[ 22.855764] Netfilter messages via NETLINK v0.30.
[ 24.596167] vboxsf: Successfully loaded version 5.0.14 (interface 0x00010004)
[ 26.840597] VBoxService 5.0.14 r105127 (verbosity: 0) linux.amd64 (Jan 19 2016 17:39:53) release log
00:00:00.000097 main Log opened 2016-02-19T16:42:12.919729000Z
[ 26.840692] 00:00:00.000234 main OS Product: Linux
[ 26.840744] 00:00:00.000293 main OS Release: 4.3.0-kali1-amd64
[ 26.840790] 00:00:00.000344 main OS Version: #1 SMP Debian 4.3.5-1kali1 (2016-02-11)
[ 26.840848] 00:00:00.000389 main Executable: /opt/VBoxGuestAdditions-5.0.14/sbin/VBoxService
00:00:00.000391 main Process ID: 690
00:00:00.000392 main Package type: LINUX_64BITS_GENERIC
[ 26.842799] 00:00:00.002335 main 5.0.14 r105127 started. Verbose level = 0
[ 29.261029] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 29.261082] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 29.475265] rt2800usb 1-1:1.0: firmware: direct-loading firmware rt2870.bin
[ 29.475275] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[ 35.098913] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 35.107048] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 35.110294] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 35.111825] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[ 35.112325] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 35.986820] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 46.451842] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 46.451846] Bluetooth: BNEP filters: protocol multicast
[ 46.451851] Bluetooth: BNEP socket layer initialized
[ 69.284767] fuse init (API version 7.23)
Thanks