VirtualBox VM 网络因以太网“重置适配器”而挂起

VirtualBox VM 网络因以太网“重置适配器”而挂起

我有一台虚拟机,它是使用以下设置在主机上创建的:http://pastebin.com/raw.php?i=sevF5V7Z

几个月来,它一直运行顺利,但最近虚拟机与外界失去了联系。发生这种情况时,登录了以下内容/var/log/messages

23:54:14.260088+02:00 foobar kernel: [11347792.392529] e1000 0000:00:03.0 eth0: Reset adapter

此后每 8 分钟记录一次以下内容:

INFO: task kworker/0:2:15934 blocked for more than 480 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/0:2     D ffff88029fc132c0     0 15934      2 0x00000000
 ffff8800d3373d20 0000000000000046 ffff8800d3370740 ffff8800d3373fd8
 ffff8800d3373fd8 ffff8800d3373fd8 ffff8801175560c0 ffff8800d3370740
 ffff88029fc132c0 ffff8800d3372000 ffff8800d3370740 00000000ffffffff
Call Trace:
 [<ffffffff81596bf2>] schedule_preempt_disabled+0x22/0x30
 [<ffffffff815957dd>] __mutex_lock_slowpath+0xdd/0x170
 [<ffffffff815951fa>] mutex_lock+0x1a/0x40
 [<ffffffffa00f3f0e>] e1000_watchdog+0x7e/0x560 [e1000]
 [<ffffffff810616ab>] process_one_work+0x12b/0x4d0
 [<ffffffff81062f1d>] worker_thread+0x15d/0x460
 [<ffffffff810681c3>] kthread+0xb3/0xc0
 [<ffffffff8159eafc>] ret_from_fork+0x7c/0xb0

虚拟机无法从外部访问(甚至无法 ping 通),因此我不得不从主机重新启动它。但所有其他服务仍在运行。

在这几个月中,仅有的另外一次eth0: Reset adapter日志记录发生在最后 3 天的随机时段。在这 3 次事件中,网络均未中断,因为“重置适配器”似乎已成功完成:

2014-01-23T14:08:57.951062+02:00 foobar kernel: [11053476.083094] e1000 0000:00:03.0 eth0: Reset adapter
2014-01-23T14:08:58.042241+02:00 foobar kernel: [11053476.174267] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
...
2014-01-25T19:03:46.588071+02:00 foobar kernel: [11243964.720101] e1000 0000:00:03.0 eth0: Reset adapter
2014-01-25T19:03:46.658094+02:00 foobar kernel: [11243964.790501] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
...
2014-01-26T16:33:43.312085+02:00 foobar kernel: [11321361.444181] e1000 0000:00:03.0 eth0: Reset adapter
2014-01-26T16:33:43.504585+02:00 foobar kernel: [11321361.636903] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
...

在这 3 次成功重置之前,我收到了看门狗警告:http://pastebin.com/raw.php?i=Q1vXE5mn

有关该系统的更多信息:

# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)

# ethtool -i eth0
driver: e1000
version: 7.3.21-k8-NAPI
firmware-version:
bus-info: 0000:00:03.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

我在日志中找不到与此问题相关的任何其他内容。知道为什么会发生这种情况吗?我下一步应该查看哪里?

答案1

今天早上升级到 4.3.22 后出现了类似的问题。快速解决方法是关闭我的虚拟机并将网络适配器类型更改为非英特尔类型。

已运行几个小时,没有任何问题。

相关内容