1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VirtualBox 6.1.28 にアップデートしたら vagrant 環境にネットワーク接続できなくなった問題の解決

Posted at

ふと気付くと、vagrant up した環境にネットワーク接続できなくなっていました。

ホスト上で ifconfig 見ると、なぜか vboxnet0 ネットワークが無くなってる。

調べた結果、原因は VirtualBox が許容しているデフォルトの IP アドレス範囲が変わったからでした。

ユーザーマニュアルの 116 ページ
https://download.virtualbox.org/virtualbox/6.1.28/UserManual.pdf

On Linux, Mac OS X and Solaris Oracle VM VirtualBox will only allow IP addresses
in 192.68.56.0/21 range to be assigned to host-only adapters. For IPv6 only link-local
addresses are allowed. If other ranges are desired, they can be enabled by creating
/etc/vbox/networks.conf and specifying allowed ranges there. For example, to allow
10.0.0.0/8 and 192.168.0.0/16 IPv4 ranges as well as 2001::/64 range put the following lines
into /etc/vbox/networks.conf:

    * 10.0.0.0/8 192.168.0.0/16
    * 2001::/64

今まで 192.168.33.x を使っていたので、上記の通り 192.168.0.0/16 に変更することで解決しました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?