How to install Ubuntu 20.04 on Virtualbox
Download Ubuntu Server
https://ubuntu.com/download/server
Download Oracle VirtualBox
https://www.virtualbox.org/wiki/Downloads
Setup VirtualBox
Install Oracle VM VirtualBoxClick Continue
Click InstallClick close
From Applications Open VirtualBox
Click New
Name the new VM. E.G Web Server
Chose the Memory Size for the virtual Machine (Default 1 G) , it's fine.
Select Create Virtual Hard Disk Now
Select VDI (Virtual Disk Image)
Select Dynamically allocated.Enter 25 GB or more
Click Settings
Attach the Ubuntu iso file
By default Adapter 1 is enabled and NAT is attached.
This is fine for GUI VMs
but for Ubuntu Server, we want to use SSH to connect to the VM.
So we need fixed IP
we have 3 options:
1-NAT + Host Only
2-Bridged
3-Internal Network
In the main menu click File/Host Network Manager
DHCP UncheckedConfigure Adapter Manually
IPv4 192.168.56.1
IPv4 Network Mask 255.255.255.0
Go to out VM settings
Enable Network Adapter 2
Now we are ready, Click Start.
Ubuntu Server installation starts
No mouse in Ubuntu Server, use TAB,UP/Down Arrows
Select your Language
Update installer or Continue Without UpdatingSelect the Keyboard layout
adapter 1 enp0s3 which uses DHCP has IP
but Adapter 2 en0s8 needs to be configured manualy
use Down Key and chose Edit IPv4
The Host Adapter manager had the IP 192.168.56.1
In the Subnet enter 192.168.56.0/24
IP address 192.168.56.xxx , I chose 100
In Gateway, Enter your local machine gateway
Usually 192.168.0.1 or 192.168.1.1
In names servers enter 8.8.8.8,8.8.8.4
The Save
Now the VM IPs are setType Your Name
Server Name (will be host name)
User Name (Ubuntu user)
Password
Ubuntu is downloading Security Updates
Ubuntu Server installation is done.
Let's connect using Secured Shell
Open Terminal/New Remote Connection
Press + to add new connectionEnter the IP of our VM
Enter the VM user name
Here we are, logged in the Ubuntu Server
Here is it.
Set your tie zone using timedatectl command
No comments:
Post a Comment