This repo is a document with Ubuntu servers installed in Oracle Virtualbox.
When the installation is complete, turn on the Oracle virtualbox
and create a new virtual machine. At this time, insert the downloaded Ubuntu ISO image
and create it.
Download the required Linux package. If you install net-tools
, you can use the ifconfig
command.
$ sudo apt install net-tools
$ ifconfig
# Show your IP Addresses and Adapter Names
I will fix my VM(virtual machine) IP Addresses.
$ sudo vi /etc/netplan/50-cloud-init.yaml
# File name can be difference. ex) 00-installer-config.yaml
And typing like this..
network:
ethernets:
enp0s3:
addresses:
- 192.168.1.10/24 # Input the IP Address you want.
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
routes:
- to: default
via: 192.168.1.1
version: 2
# Apply command
$ sudo netplan apply
# Check Ip address.
$ ifconfig
But it is not done. because we can Port Fowarding
.
Open Oracle VirtualBox Manager. And Click Tools -> Network
.
Create, Typing General Options, Typing Port Forwarding. Like This..
Finally, Fix Master VM Network.
We Are Done!!