1 개요[ | ]
- VirtualBox에 Ubunutu 16 설치하기
2 사전 작업[ | ]
3 VM 생성[ | ]
- VirtualBox 실행
- [새로 만들기(N)] 클릭
- (가상 머신 만들기) --- 이름: Ubuntu16[1] --- [다음(N)]
- 메모리 크기[2] --- [다음(N)]
- "추천하는 하드 디스크 크기는 10.00 GB입니다." --- (O) 지금 새 가상 하드 디스크 만들기(C) --- [만들기]
- (O) VDI --- [다음(N)]
- (O) 동적 할당(D) --- [다음(N)]
- 40.00 GB --- [만들기]
이제 Ubuntu16 이라는 VM이 보인다.
4 VM 시작, iso 마운트[ | ]
- [시작(T)] 버튼 클릭하여 VM 시작
- (시동 디스크 선택 창) iso 파일(예: ubuntu-16.04.3-server-amd64.iso) 선택 --- [시작]
5 (Optional) 호스트키 변경[ | ]

가상머신 포커스로부터 빠져나오는 키가 호스트키인데, 기본으로 오른쪽 컨트롤 키로 되어 있다. 그런데 노트북에는 오른쪽 컨트롤 키가 없을 수 있다. 호스트키를 변경해두자.
- 입력 --- 키보드 --- 키보드 설정
- 호스트 키 조합 클릭 --- ⇧ Shift+Ctrl --- [OK]
6 우분투 16 설치[ | ]
English
↵ EnterInstall Ubuntu Server
↵ EnterEnglish - English
↵ Enterother
↵ Enter ---Asia
↵ Enter ---Korea, Republic of
↵ EnterUnited States - en_US.UTF-8
↵ Enter- "Detect keyboard layout?" ---
〈No〉
↵ Enter Korean
↵ EnterKorean
↵ Enter
( 설치 진행 ... )
- Hostname: ubuntu16 ↵ Enter
- Full name for the new user: ubuntu ↵ Enter
- Username for your account: ubuntu ↵ Enter
- Choose a password for the new user: P@ssw0rd ↵ Enter
- Re-enter password to verify: P@ssw0rd ↵ Enter
- Encrypt your home directory?:
〈No〉
↵ Enter
( 설치 진행 ... )
- Is this time zone correct?
〈Yes〉
↵ Enter - Partitioning method:
Guided - user entire disk and set up LVM
↵ Enter - Select disk to partition:
SCSI3 (0,0,0) (sda) - 42.9 GB ATA VBOX HARDDISK
↵ Enter - Write the changes to disks and configure LVM?
〈Yes〉
↵ Enter - Amount of volume group to use for guided partitioning: 42.4 GB ↵ Enter
- Write the changes to disks?
〈Yes〉
↵ Enter
( 설치 진행 ... )
- HTTP proxy information (blank for none): ↵ Enter
( 설치 진행 ... )
- How do you want to manage upgrades on this system?
No automatic updates
↵ Enter - Choose software to install:
- [*] standard system utilities
- [*] OpenSSH server
〈Continue〉
↵ Enter
( 설치 진행 ... )
- Install the GRUB boot loader to the master boot recored?
〈Yes〉
↵ Enter
( 설치 진행 ... )
- "Finish the installation"
〈Continue〉
↵ Enter
( 재부팅 진행 ... )
7 우분투 로그인[ | ]
Console
Copy
Ubuntu 16.04.3 LTS ubuntu tty1
ubuntu16 login: ubuntu
Password: P@ssw0rd
... (생략)
ubuntu@ubuntu16:~$
8 (Optional) 스냅샷 1차[ | ]
여기까지 됐으면 스냅샷을 하나 떠놓자...
- VirtualBox 관리자 --- 📷 스냅샷(S) 클릭 --- 📷 클릭
- 스냅샷 이름(N): 우분투16-설치완료 --- [OK]
9 (Optional) 인터넷 연결 확인[ | ]
호스트에서 인터넷이 된다면 게스트(리눅스)에서도 인터넷이 된다.
Console
Copy
ubuntu@ubuntu16:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
... (생략)
10 (Optional) 브리지 네트워크로 전환[ | ]

- (Oracle VM VirtualBox 관리자) Ubuntu16 우클릭 --- 설정(S)...
- (Ubuntu16 - 설정) 네트워크 --- 다음에 연결됨(A): 브리지 어댑터 --- [확인]
11 IP 확인[ | ]
Console
Copy
ubuntu@ubuntu16:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65546 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:24:6f:1b:d3 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe3f:7fa6/64 scope link
valid_lft forever preferred_lft forever
- → enp0s3의 IP가 10.0.2.15 임
Console
Copy
ubuntu@ubuntu16:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp
- → enp0s3은 DHCP로부터 IP를 받음
Console
Copy
ubuntu@ubuntu16:~$ sudo /etc/init.d/networking restart
sudo: unable to resolve host ubuntu16: Connection timed out
[sudo] password for ubuntu: P@ssword
[ ok ] Restarting networking (via systemctl): networking.service.
Console
Copy
ubuntu@ubuntu16:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65546 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:24:6f:1b:d3 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.181/24 brd 192.168.43.255 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe3f:7fa6/64 scope link
valid_lft forever preferred_lft forever
- → enp0s3의 IP가 192.168.43.181 으로 변경됨 (DHCP로부터 받아온 IP)
12 SSH 서비스 설치[ | ]
Console
Copy
ubuntu@ubuntu16:~$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Console
Copy
ubuntu@ubuntu16:~$ sudo apt install openssh-server -y
... (생략)
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Console
Copy
ubuntu@ubuntu16:~$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2968/sshd
tcp 0 0 :::22 :::* LISTEN 2968/sshd
13 호스트→게스트 SSH 접속 확인[ | ]
- PuTTY 등의 터미널 프로그램으로 접속해보자.
Console
Copy
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
7 packages can be updated.
7 updates are security updates.
Last login: Fri Aug 4 15:05:49 2017
ubuntu@ubuntu16:~$
14 (Optional) 스냅샷 2차[ | ]
여기까지 됐으면 스냅샷을 하나 더 떠놓자...
- VirtualBox 관리자 --- 📷 스냅샷(S) 클릭 --- 📷 클릭
- 스냅샷 이름(N): 우분투16-SSH--- [OK]
15 같이 보기[ | ]
16 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- VirtualBox (5)
VirtualBox 리눅스 SSH 연결 (NAT) ― RootVirtualBox 리눅스 SSH 연결 (NAT) ― JmnoteVirtualBox 리눅스 인터넷 연결 ― …VirtualBox 리눅스 인터넷 연결 ― JmnoteVirtualBox 리눅스 인터넷 연결 ― …