task vminfo:xxxx blocked for more than 120 seconds.

Discussions about using Linux guests in VirtualBox.
Post Reply
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

hello,

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
I have been told to use

Code: Select all

vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
but this is already the value I use (by default).

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
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by socratis »

zebul6 wrote:using virtualbox 4.3.18 from ubuntu repo
You'll need to uninstall the distro-specific version and download and install the official version from https://www.virtualbox.org/wiki/Downloads. It's the only one "supported" in these forums. And you don't have to download the guest additions, they're included. You may mean the Extension Pack, which provides USB2 support and other goodies. You'll need to download the matching version from the link above as well.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

so i installed instead virtualbox from official oracle repo (no utopic package ???)

And I still see this same lock-up, but no call (stack) trace in the log when this happens. It stops too when I unplugged the usb key.
Except that I was still using the 4.3.18 vbox guest addtitions.
So i instlled the 4.3.20 and rebooted.

I wait and see.
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

I does continue to freeze but I don't see anymore the call (stack) trace in the log.

Also I was already using 2048M of RAM in the VM, so I doubt it was missing any RAM ?

I tried my favorite distribution, archlinux, in another VM in virtualbox, and it worked really well. no freeze
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by socratis »

Please post 'Vbox.log' (after you've shutdown the guest VM) and '<YourVM>.vbox' as zipped attachments.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

what's new now is that the VM is crashing when I remove the usb wifi card after the network freezes.

Also I am wondering if the freeze is not related to the screensaver ??
Attachments
kali.zip
(20.13 KiB) Downloaded 39 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by Perryg »

Code: Select all

00:00:39.511816 OHCI: USB Resume
00:00:39.522309 EHCI: USB Suspended
00:00:39.550387 OHCI: USB Operational
There are multiple lines that show you are having issues with the USB and or device you have attached. Have you tried/used this device with previous versions of VirtualBox and was it successful?
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

no it's the first time I am using it in virtualbox
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by Perryg »

I would first try a simple test by using a USB memory stick and see if those line continue to repeat themselves in the log. Of course you would need to make sure that the USB wifi was not plugged in first. If the log still show this error I would try a previous version and matching extpack and see if it works without errors.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by mpack »

I'm concerned that you're assigning both cores (of a dual core host) to the guest. That could well play havoc with scheduling of tasks.
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

@mapck: the host has 4 cores. but I can reduce to one core if it matters

@Perryg: ok. I will try that too
zebul6
Posts: 12
Joined: 2. Feb 2008, 19:37

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by zebul6 »

the USB Suspended ... USB operational thing happens even if I am not pluging in any usb device. This happen when I login in.
and this happens only to this guest. no other VM shows log like this.

and this happens in the log early.
as the network lock-up happens after one hour or more so it might unrelated.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by mpack »

zebul6 wrote:@mapck: the host has 4 cores.
Not according to the log file, "00:00:00.762131 Physical host cores: 2".

And not according to Intel.
roundthecorner
Posts: 1
Joined: 17. Feb 2015, 20:19

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by roundthecorner »

Did anyone find a solution to the problem? I am facing the same problem with the same log entries with Kali Linux 1.1.0 as guest and Ubuntu 14.04 as host. Virtual box version is 4.3.10.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: task vminfo:xxxx blocked for more than 120 seconds.

Post by mpack »

You need to post the VM log (zipped) if you want help from us. Instructions already given above.
Post Reply