vbox の環境設定
Windows のネットワーク接続の設定
コンパネ -> ネットワークと共有センター -> アダプターの設定の変更
ヴァーチャルマシンの設定
ゲストの Ubuntu での設定
ゲストOS は Ubuntu 16.04 です。
/etc/network/interfaces
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
# Nat
auto enp0s8
iface enp0s8 inet dhcp
プロキシの設定
bash
export http_proxy=http://xxx.xxx.xxx.xxx:port
export https_proxy=http://xxx.xxx.xxx.xxx:port
export ftp_proxy=http://xxx.xxx.xxx.xxx:port
/etc/apt/apt.conf
Acquire::http::proxy "http://xxx.xxx.xxx.xxx:port";
Acquire::https::proxy "http://xxx.xxx.xxx.xxx:port";
Acquire::ftp::proxy "http://xxx.xxx.xxx.xxx:port";