I have installed Kali Linux 1.0.9 in a virtualbox VM inside an Ubuntu 14.10 host using virtualbox 4.3.18 from ubuntu repo.
I have an usb wifi key TL-WN722N that I have declared in a filter on the usb configuration to be able to use it inside the VM.
I was first using the virtualbox guest addition form kali repo but they were for 4.3.10 so I used the vbox guest addition from the cd/dvd now.
But I still have that problem that the network, say every one hour, hangs both for the virtual ethernet (bridged) and the usb wifi card.
When this happens, if I run ifconfig in a new terminal, it blocks and never output anything.
I have found out that it stops to hang if I unplug the usb key !
And later I found in /var/log/syslog the following error:
Code: Select all
[ 8280.748310] INFO: task vminfo:2168 blocked for more than 120 seconds.
[ 8280.748321] Tainted: G O 3.14-kali1-amd64 #1
[ 8280.748325] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 8280.748331] vminfo D ffff880069b74868 0 2168 1 0x00000000
[ 8280.748339] ffff880069b74450 0000000000000086 0000000000000001 ffffffff81813480
[ 8280.748346] 0000000000014340 ffff88006a45ffd8 0000000000014340 ffff880069b74450
[ 8280.748352] 0000000000000000 ffffffff81888980 ffffffff81888984 ffff880069b74450
[ 8280.748359] Call Trace:
[ 8280.748375] [<ffffffff814ec719>] ? schedule_preempt_disabled+0x9/0x10
[ 8280.748385] [<ffffffff814ee252>] ? __mutex_lock_slowpath+0x142/0x1c0
[ 8280.748394] [<ffffffff814ee2e6>] ? mutex_lock+0x16/0x25
[ 8280.748405] [<ffffffff81412b4a>] ? dev_ioctl+0x33a/0x560
[ 8280.748417] [<ffffffff8117e966>] ? kmem_cache_alloc+0x1a6/0x1c0
[ 8280.748428] [<ffffffff813e3ac5>] ? sock_do_ioctl+0x55/0x60
[ 8280.748438] [<ffffffff813e3d90>] ? sock_ioctl+0x70/0x2b0
[ 8280.748449] [<ffffffff811985c6>] ? alloc_file+0x26/0xe0
[ 8280.748459] [<ffffffff811a8b4e>] ? do_vfs_ioctl+0x7e/0x500
[ 8280.748469] [<ffffffff813e4a3a>] ? sock_alloc_file+0x9a/0x130
[ 8280.748479] [<ffffffff811b2d13>] ? __fd_install+0x23/0x60
[ 8280.748488] [<ffffffff811a9069>] ? SyS_ioctl+0x99/0xb0
[ 8280.748499] [<ffffffff813e6d1b>] ? SyS_socket+0x3b/0x70
[ 8280.748509] [<ffffffff814f7879>] ? system_call_fastpath+0x16/0x1b
Code: Select all
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
As this goes away as I unplug the usb key, I am thinking of a problem with virtualbox ??
Note: I have blacklisted the ath9k_htc module in the host so that it does not interfere with the guest using the usb key.
Note #2: I have installed the oracle extension to get usb pass-throguh; it is matching the versio of virtualbox