VirtualBox ゲストOS のネットワークが頻繁に Up/Down するが原因は分かっていない話
本件、今のところ結局解決していないので、解決策には言及していません。
(追記)解消しました。
VirtualBox ゲストOS のネットワークが頻繁に Up/Down していたが NATネットワークに変えたら解消 - 社内se × プログラマ × ビッグデータ
VirtualBox のゲストOSとして、lubuntu(ubuntu)を乗せているのだが、頻繁にネットワークが切断されてしまう。
ログを見てみると、1~2分に1回の頻度で Link の Up/Downが繰り返されている。
Down -> Up までは 5秒程度だが、ダウンしている間はネットワークに接続できず、Webページ一つ開くにも、再度クリックしなければならないことが頻繁にある。
$ less /var/log/kern.log | grep -e "NIC Link is Down" -e "NIC Link is Up" | head -20 Jul 30 21:34:49 xxx kernel: [ 38.396584] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:35:54 xxx kernel: [ 102.912681] e1000: enp0s3 NIC Link is Down Jul 30 21:36:00 xxx kernel: [ 108.962889] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:36:58 xxx kernel: [ 167.424237] e1000: enp0s3 NIC Link is Down Jul 30 21:37:02 xxx kernel: [ 171.456655] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:38:07 xxx kernel: [ 235.969067] e1000: enp0s3 NIC Link is Down Jul 30 21:38:11 xxx kernel: [ 240.004110] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:39:15 xxx kernel: [ 304.512446] e1000: enp0s3 NIC Link is Down Jul 30 21:39:22 xxx kernel: [ 310.656653] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:40:24 xxx kernel: [ 373.152291] e1000: enp0s3 NIC Link is Down Jul 30 21:40:30 xxx kernel: [ 379.200501] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:41:43 xxx kernel: [ 451.776211] e1000: enp0s3 NIC Link is Down Jul 30 21:41:49 xxx kernel: [ 457.888537] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:42:57 xxx kernel: [ 526.432210] e1000: enp0s3 NIC Link is Down Jul 30 21:43:03 xxx kernel: [ 532.480859] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:44:02 xxx kernel: [ 590.944245] e1000: enp0s3 NIC Link is Down Jul 30 21:44:08 xxx kernel: [ 596.992489] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:45:04 xxx kernel: [ 653.440290] e1000: enp0s3 NIC Link is Down Jul 30 21:45:10 xxx kernel: [ 659.488486] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX Jul 30 21:46:15 xxx kernel: [ 724.000182] e1000: enp0s3 NIC Link is Down
アダプタの状態を見てみても、Speed は 1000Mb/s 設定されているし、Duplex も Full (Halfになっていない)。
特に不安定になっているようには見えない。
$ ethtool enp0s3 Settings for enp0s3: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on MDI-X: off (auto) Cannot get wake-on-lan settings: Operation not permitted Current message level: 0x00000007 (7) drv probe link Link detected: yes
ホストOSは Windows7 でネットワークにはUSB接続の無線LANアダプタを使用している。
※ゲストOSとのアダプタは NAT。
ハードウェア側に問題があるとすれば、このアダプタに問題があるか、あるいはルーターも古いので怪しいところはある。
ネットで検索してみると、似たような状況になっている記事や質問がいくつか見かけられたが、ハードウェアを疑っているケースも多かった。
すぐには試せないが、有線ケーブルで接続してみれば、案外それで安定はするのかもしれない。