Install the Ubuntu server on Virtual Box
2 min readJul 15, 2023
We all might be familiar with the Linux servers & their use cases provided by different service providers like AWS, Azure, etc. But the same thing can be experienced and explored by us using virtualization using Oracle virtual box.
Before we move ahead with the installation part let us understand why the server instead of the actual OS.
1. In the real world we need to interact with OS via the command line instead of GUI.
2. Get the flavor of some networking commands to interact with different machines.
Prerequisites
- Oracle Virtual Box
- Ubuntu server 22.04 iso file (Download file -> https://ubuntu.com/download/server)
Steps :
- Open the virtual box. Click on the new button, and name your server eg- Ubuntu-server.
- Allocate Ram (Minumun 2 GB).
- Click on Create virtual disk now
- Select VDI (Virtual Disk Image)
- Select Dynamically allocated.
- You will now prompt to choose a File location and size. Set the size to 20 GB(optional).
- Select your virtual machine and click on the settings tab.
- Click on storage option -> Controller IDE -> Choose optical drive. Select your downloaded ISO file. Click on the OK button.
- Select the virtual machine and click on the Start button
- A new window will get open with the option to choose your language press SPACE BAR to select and ARROW keys to move up or down.
- Next, it will ask for updates while installing you can continue without updating.
- Choose a keyboard layout.
- It will ask for the type of installation, go with the Ubuntu server.
- No changes in networking connections. Click on Done
- Currently, no need to enter the proxy address. Select Done
- The mirror address has no changes required.
- Storage configuration: choose the entire disk.
- Profile setup. Enter the name and password for the server.
- SSH Setup, as of not required.
- For third-party drivers, Click on continue
- Featured server snaps. select if required.
- Depending on your system and conf it will take some time.
- Congratulations, installation is now completed, select reboot now. Even a reboot will take some time.