MacOS Virtualbox VM ssh 접속
파일 -> 호스트 네트워크 관리자 에서 IP 를 설정 합니다.
Default 로 설정된 IP를 사용 하여도 무방 합니다.
IP설정시 dhcp 사용여부에 따라 dhcp 의 IP 대역의 변경이 필요 합니다.


- Oracle VM VirtualBox 관리자 에서 설정을 클릭 합니다.
- 어댑터 2 설정 참고

추가된 Nic Device 를 확인 합니다.
test@ubuntu1804:~$ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.4 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:feef:dc10 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:ef:dc:10 txqueuelen 1000 (Ethernet)
RX packets 343 bytes 400022 (400.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 192 bytes 17859 (17.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 08:00:27:49:d1:f7 txqueuelen 1000 (Ethernet)
RX packets 1014 bytes 93803 (93.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 649 bytes 82497 (82.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 56 bytes 4404 (4.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 56 bytes 4404 (4.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
test@ubuntu1804:~$
추가된 Nic Device 를 설정 합니다.
test@ubuntu1804:~$ sudo vi /etc/netplan/50-cloud-init.yaml
network:
ethernets:
enp0s3:
addresses: []
dhcp4: true
enp0s8:
addresses: []
dhcp4: true
version: 2
변경된 설정을 적용합니다.
test@ubuntu1804:~$ sudo netplan apply
IP 주소를 확인 합니다.
test@ubuntu1804:~$ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.4 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:feef:dc10 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:ef:dc:10 txqueuelen 1000 (Ethernet)
RX packets 346 bytes 401292 (401.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 200 bytes 18979 (18.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.100 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::a00:27ff:fe49:d1f7 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:49:d1:f7 txqueuelen 1000 (Ethernet)
RX packets 1104 bytes 101845 (101.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 714 bytes 91017 (91.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
호스트 전용 아댑터 에 설정된 IP 로 접속을 진행 합니다.
MacOS@MacOS-MacBook-Pro ~ ssh test@192.168.100.100
test@192.168.100.100's password:
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-42-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Dec 6 01:16:25 UTC 2018
System load: 0.0 Processes: 93
Usage of /: 54.2% of 3.87GB Users logged in: 1
Memory usage: 3% IP address for enp0s3: 10.0.2.4
Swap usage: 0% IP address for enp0s8: 192.168.100.100
* MicroK8s is Kubernetes in a snap. Made by devs for devs.
One quick install on a workstation, VM, or appliance.
- http://bit.ly/microk8s
1 package can be updated.
0 updates are security updates.
Last login: Thu Dec 6 01:10:44 2018 from 192.168.100.1
test@ubuntu1804:~$