#12264 closed defect (fixed)
unregister_netdevice => Fixed in SVN
回報者: | artie | 負責人: | |
---|---|---|---|
元件: | network/hostif | 版本: | VirtualBox 4.3.0 |
關鍵字: | unregister_netdevice | 副本: | |
Guest type: | Windows | Host type: | Linux |
描述
The problem I faced seems to be the same as this: https://www.alldomusa.eu.org/ticket/10624
Ubuntu 13.10 with 3.11.0-12 generic kernel, virtualbox 4.3. Using virtualbox 4.2.18 on the same machine is perfect.
So the problem is when shutting down unregister_netdevice waiting for vboxnet0 to become free arrives as message.
附加檔案 (3)
更動歷史 (33)
11 年 前 由 編輯
附檔: | 新增 unregister_netdevice.jpg |
---|
comment:1 11 年 前 由 編輯
I have the same issue.
VirtualBox 4.3.0 r89960
Ubuntu Linux 13.10 64-bit, kernel is 3.11.0-12-generic
There's also a report of this bug in an old ticket: https://www.alldomusa.eu.org/ticket/10624#comment:12
comment:2 11 年 前 由 編輯
To me it seems that some application is still holding references to that module. Can you check if any VirtualBox application / service is running before you shutdown, especially VBoxSVC, VBoxNetDHCP and/or VBoxNetNAT?
comment:3 11 年 前 由 編輯
No applications runs. However interesting thing is that while running, VBoxNetDHCP is zombie. Just realized. Can this cause some issue?
comment:4 11 年 前 由 編輯
Yes, this is at least the reason for the message you saw. The only question is why the VBoxNetDHCP application isn't properly terminated. Please attach a VBox.log file of such a VM session.
comment:5 11 年 前 由 編輯
Well, now I have 4.3.2 installed, and with windows guest there is no problem any more - but there is one now with android as guest, the same VBoxNetDHCP. Log attached.
11 年 前 由 編輯
附檔: | 新增 VBoxSVC.log |
---|
comment:6 11 年 前 由 編輯
Another interesting news, it seems when I switch network from vboxnet0 to NAT, it runs fine. Am I right when I say this option has been removed from 4.3 and problems are caused by this?
comment:8 11 年 前 由 編輯
And which problem do you see with your Android guest? The VBoxSVC.log you attached shows only a few warnings for failed ioctls for certain interfaces on the host, nothing we can blame VBox for.
comment:9 11 年 前 由 編輯
I have upgraded to VirtualBox 4.3.2 r90405, still having the same issue with unregister_netdevice: count = 1 after running Windows Guest with vboxnet0
I use Ubuntu x64, kernel 3.11.3
comment:10 11 年 前 由 編輯
I'm having the same issue, my specs are quite similar:
Ubuntu 13.10, x86_64, kernel 3.11.0-14-generic, Virtualbox 4.3.2. Guest OS is Ubuntu Precise 12.04.3, 4.2.x guest extensions, running in in headless mode.
Even when I just try to run service vboxdrv stop
the same error appears in dmesg/syslog. This is with or without virtual machines running.
As an extra angle to consider .. I'm using vagrant on this machine, which in turn uses virtualbox to manage its virtual machine. The network adapter on the machine is set to NAT and there's a second one set to "Host-only Adapter" with the name coming up as not selected which the gui, rightfully, complains about being an invalid configuration.
Could it be that little detail? (Update: I think this was caused by me unloading the vboxnet
module while watching the gui. It didn't turn up again on subsequent tests)
I'll run a few tests.
comment:11 11 年 前 由 編輯
Alright, here are my findings. I did the following things:
- After reaching the described VM state, run "
service vboxdrv stop
" - See whether the error occurs
VM state | Result |
---|---|
VM is not running, has never been run during the respected cycle | Script runs fine, would not block a reboot |
VM is running | Script is blocked, would block a reboot as well |
VM has been run once and then stopped, so not running right now | Script is hanging, would stop a reboot |
VM is running, with the Host-only Adapter removed | Script is hanging, would stop a reboot |
VM has been run once and then stopped, not running while running the script, with the Host-only Adapter removed | Script runs without errors, would not block a reboot |
What I conclude from this are two possible angles:
- When a VM is running it is impossible to reboot the host without running into an endless loop of "
unregister_netdevice: waiting for vboxnet0 to become free. Usage count = 1
". I don't know if this is intended or not, as normally you would shutdown a non-headless guest when closing down your X environment. However, for headless guests this is an issue.
- There seems to be an issue with the Host-only Adapter networking triggering an issue within the vboxnetadp network driver (also causing the infamous "
unregister_netdevice: waiting for vboxnet0 to become free. Usage count = 1
" errors), since that is where the "service vboxdrv stop
" script hangs in the end.- As a sidenote: this might be an artifact caused by how/when vagrant sets up its VMs. However, judging from the profile created within virtualbox itself there doesn't seem to be anything suspicious about the setup.
comment:12 11 年 前 由 編輯
摘要: | unregister_netdevice → unregister_netdevice => Fixed in SVN |
---|
The whole problem came from the fact that VBoxNetDHCP connects to VBoxSVC. Therefore VBoxSVC would not terminate, thus VBoxNetDHCP would not terminate (VBoxNetDHCP is a child of VBoxSVC). This will be fixed in the next maintenance release.
comment:15 11 年 前 由 編輯
The issue seems to occur again. I am using LXC and when I try to download data, this error occurs.
The issue occurs on VB 4.3.6-91406 for OSX. Then I downgrade to the version 4.3.4-91027, but it still present. The Linux version is:
Linux ubuntu 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
I not dont know if it's a kernel issue or a VB issue...
comment:16 11 年 前 由 編輯
+1
VirtualBox 4.3.6 r91406 (appears as 4.3.6-dfsg-2 in apt)
Linux 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux
I'm on Linux Mint Debian Edition.
I couldn't run "service vboxdrv stop" as advised because this service is not available.
跟進: 18 comment:17 11 年 前 由 編輯
This is still happening for me using Virtual Box 4.3.10 on Fedora 20 host running CentOS guest machines in headless mode with vboxnet networking using vagrant.
comment:18 11 年 前 由 編輯
Replying to mpeters:
This is still happening for me using Virtual Box 4.3.10 on Fedora 20 host running CentOS guest machines in headless mode with vboxnet networking using vagrant.
A fix that worked for me (though I'm running Ubuntu): edit /etc/default/virtualbox and change the line
SHUTDOWN_USERS=""
to
SHUTDOWN_USERS=all
comment:19 10 年 前 由 編輯
Issue is still there for kubuntu 14.04.1 LTS and VirtualBox:
4.3.16-95972~Ubuntu~raring amd64 Oracle VM VirtualBox
kernel version: 3.13.0-36-generic.
Every time when i try to reboot this message spammed every second: unregister_netdevice: waiting for vboxnet0 to become free. Usage count = 1
Unfortunately fix above (SHUTDOWN_USERS=all) didn't help
comment:20 10 年 前 由 編輯
狀態: | closed → reopened |
---|---|
處理結果: | fixed |
comment:21 10 年 前 由 編輯
Can verify that hang on shutdown for "unregister netdevice waiting for vboxnet0" is still an issue.
VBox version: 4.3.12
Host uname: 3.13.0-24-generic #47-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Guest OS: CentOS 6.5
vboxnet0 is a host-only adapter with default settings. Other adapter is NAT with default settings.
$ tail /home/logos/.config/VirtualBox/VBoxSVC.log 00:00:00.132620 nspr-2 Successfully initialised host USB using sysfs 00:00:00.138525 nspr-2 HostDnsMonitorProxy: Host's DNS information updated: 00:00:00.138540 nspr-2 DNS server 1: 127.0.1.1 00:00:00.138548 nspr-2 DNS domain: xxxxxxxxxxxx.com 00:00:00.149443 nspr-2 NetIfAdpCtlOut: VBoxNetAdpCtl: Error while retrieving link status for vboxnet0: VBoxNetAdpCtl: ioctl failed: Operation not supported 00:00:00.150546 nspr-2 VDInit finished 00:00:00.164184 nspr-2 Loading settings file "/home/logos/VirtualBox VMs/FFN_DEV_LOCAL/FFN_DEV_LOCAL.vbox" with version "1.12-linux" 00:00:00.733709 nspr-3 NetIfAdpCtlOut: VBoxNetAdpCtl: Error while retrieving link status for vboxnet0: VBoxNetAdpCtl: ioctl failed: Operation not supported 00:18:31.404770 nspr-3 NetIfAdpCtlOut: VBoxNetAdpCtl: Error while retrieving link status for vboxnet0: VBoxNetAdpCtl: ioctl failed: Operation not supported 00:18:31.411052 nspr-3 NetIfAdpCtlOut: VBoxNetAdpCtl: Error while retrieving link status for vboxnet0: VBoxNetAdpCtl: ioctl failed: Operation not supported
comment:22 10 年 前 由 編輯
元件: | network/NAT → network |
---|
comment:23 10 年 前 由 編輯
Still a problem with 4.3.20 r96996 Ubuntu 14.04 host with Ubuntu 14.04 guest and using (Vagrant to manage a) MediaWiki-Vagrant guest with VirtualBox as the provider.
comment:24 10 年 前 由 編輯
Still a problem for me with the following configuration:
~ $ dpkg -l | grep virtualbox
ii unity-scope-virtualbox 0.1+13.10.20130723-0u all VirtualBox scope for Unity
ii virtualbox-4.3 4.3.24-98716~Ubuntu~r amd64 Oracle VM VirtualBox
~ $ uname -a
Linux <edited out username>-Dell 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
~ $ lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty
~ $ dpkg -l | grep vagrant
ii vagrant 1:1.7.2 amd64 no description given
comment:25 10 年 前 由 編輯
same problem here, with almost the same setup:
$ dpkg -l | grep virtualbox ii virtualbox-4.3 4.3.26-98988~Ubuntu~raring amd64 Oracle VM VirtualBox $ uname -r 3.16.0-34-generic lsb_release -a No LSB modules are available. vagrant = 1.6.5
comment:26 9 年 前 由 編輯
元件: | network → network/hostif |
---|
comment:27 9 年 前 由 編輯
Here is a 4.3.29 test build which contains a fix which hopefully helps. The two Linux packages on our test builds package contain this fix as well.
But it's also sufficient to just apply the diff I will attach next to the host kernel modules and recompile the host kernel modules with /etc/init.d/vboxdrv setup.
9 年 前 由 編輯
附檔: | 新增 diff_unregister_netdev |
---|
comment:28 9 年 前 由 編輯
Please either try one of the test builds or the diff and tell us if this fixes your problems. Thank you!
comment:29 9 年 前 由 編輯
Frank, you are a friggin' hero! I can confirm this solved the issue for me (using your test build). My configuration details are in my last post.
Thanks again, dude!
comment:30 9 年 前 由 編輯
狀態: | reopened → closed |
---|---|
處理結果: | → fixed |
Fix is part of VBox 5.0. The next 4.3.x maintenance release will contain this fix as well.
Error message at shutdown