はじめに
VirtualboxでUbuntu16.04(サーバ版)のゲストOSをNAT+ホストオンリーアダプタのいつもの組み合わせでインターネットに繋げようとしたら繋がらなかったので、そのときの対応をメモしておく。
プロキシ無しの環境下のため、プロキシは関係なし。
対応メモ
動かなかったときの設定内容が以下。
/etc/network/interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp
auto enp0s8
iface enp0s8 inet static
address 192.168.33.4
netmask 255.255.255.0
何やら見慣れぬ以下の行をコメントアウトしたらインターネットに繋がった。
#source /etc/network/interfaces.d/*
きっと、ディレクトリを使ったネットワークの設定もあるのだろうけど、とりあえずインターネットに繋がるようになったから、まぁいっかという適当なあっしを許してください。。。