Debian

Debian 8 dist 升級後 Hyper-V 失去了合成網卡?

  • November 26, 2018

我在 Hyper-V(Win Srv 2012R2)上執行 Debian 8 vm,當我對 stable 進行 dist-upgrade 時,我失去了所有網路連接。使用控制台,我可以看到網路介面為 UP,但無法 ping 任何外部地址。

dist-upgrade 將核心升級到 linux-image-3.16.0-4-686-pae (3.16.7-ckt11-1+deb8u2)。

我可以通過添加 2 個可以被這個新核心辨識的舊網路介面來解決這個問題,但是性能會大大降低。

Hyper-V 模組似乎載入良好:

root@rproxy3:~# lsmod | fgrep hv_
hv_utils               17454  0
hv_netvsc              30069  0
hv_storvsc             17048  2
hv_vmbus               27978  6       hyperv_keyboard,hv_netvsc,hid_hyperv,hv_utils,hyperv_fb,hv_storvsc
scsi_mod              164132  5 sg,libata,sd_mod,sr_mod,hv_storvsc
root@rproxy3:~# dmesg | fgrep hv_
[    1.303529] hv_vmbus: Hyper-V Host Build:9200-6.2-16-0.16729; Vmbus version:2.4
[    1.336977] hv_vmbus: registering driver hv_storvsc
[    1.343214] hv_vmbus: registering driver hid_hyperv
[    1.344921] hv_vmbus: registering driver hv_netvsc
[    1.345790] hv_netvsc: hv_netvsc channel opened successfully
[    1.359193] hv_netvsc: hv_netvsc channel opened successfully
[    2.644921] hv_netvsc vmbus_0_13: Send section size: 6144, Section count:170
[    2.645032] hv_netvsc vmbus_0_13: Device MAC 00:15:5d:01:56:1c link state down
[    3.060851] hv_netvsc vmbus_0_11: Send section size: 6144, Section count:170
[    3.061034] hv_netvsc vmbus_0_11: Device MAC 00:15:5d:01:56:1b link state down
[    7.672833] hv_vmbus: registering driver hyperv_fb
[    7.893312] hv_vmbus: registering driver hyperv_keyboard
[    8.071484] hv_utils: Registering HyperV Utility Driver
[    8.071487] hv_vmbus: registering driver hv_util

但僅檢測到 2 個舊版 NIC(我配置了 2 個舊版和 2 個合成 NIC):

root@rproxy3:~# dmesg | fgrep eth
[    1.351882] net eth0: Digital DS21140 Tulip rev 32 at Port 0xe880, 00:15:5d:01:56:1e, IRQ 9
[    1.503780] net eth1: Digital DS21140 Tulip rev 32 at Port 0xec00, 00:15:5d:01:56:1f, IRQ 9
[   11.628988] net eth0: Using EEPROM-set media 100baseTx-FDX
[   11.733151] net eth1: Using EEPROM-set media 100baseTx-FDX

知道該怎麼做才能進一步調試嗎?

作為對這個問題的一個非常晚的答案,我永遠無法讓它與第 1 代機器一起工作,但是在將 vm 重新安裝為第 2 代機器之後,它已經工作了幾個月了。

引用自:https://serverfault.com/questions/709697