Install Ubuntu18.04 on VirtualBox

Virtual Box에 Ubuntu18.04를 쓸일이 있어서 설치했는데 오랫만에 했더니 조금 헤매서 내용 정리함.

## Confer
* host only 아답터의 이름을 찾을때 아래와 같이 찾음.

find /|grep enp0s |grep -v proc|grep -v devices

## Process
1. install
2. shutdown & add host only Adopter & start
3. Add Setting to /etc/network/interfaces

auto lo
iface lo inet loopback

auto enp0s8
iface enp0s8 inet static
address 192.168.99.101
netmask 255.255.255.0
gateway 192.168.99.2

dns-nameservers 168.126.63.1 8.8.8.8

4. install ifupdown package

apt udpate
apt install ifupdown

5. nic restart

ifdown -a
ifup -a

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.