Installing Ubuntu Server in VMware
Get started with Ubuntu Server on VMWare Player! Follow our easy tutorial for installation and start building your own virtual environment today.
One of the most popular distributions in the Linux server world is undoubtedly the Ubuntu server. This is because its installation process is quite simple and straightforward, compared to other distributions in this realm.
I will uncover the wonderful process of installing an Ubuntu server as a virtual machine in VMware Workstation Player.
Here are the prerequisites:
- Any computer that supports virtualization with at least 4 GB of RAM
- Minimum 10 GB of disk space
- VMWare player
- Ubuntu Server ISO (prefer LTS version rather than normal releases)
And you can visit the official download page of canonical to download the latest ISO of the Ubuntu server.
Configuring VMware player
So let's start with creating a new VM. To do so, you can use the shortcut Ctrl + n
or by clicking on the File and selecting Create a New Virtual Machine
:
Next, click on the Browse
button and select the ISO from the file manager:
Now, the next step will be taken care of by VMWare itself as it will select the type Linux
and version Ubuntu
:
Next, it will ask you to select the disk size and how you want to store the disk. Allocate the disk space as per your needs (you can always increase the size after the installation).
In the next step, it will ask you to name this VM. So make sure to give this relevant name. I went with Ubuntu-Server
:
And it will show the summary of configurations you went with to create this VM.
Sure, many options were selected automatically such as processor count, RAM, networking configuration, etc. To do so, click on the Customize Hardware
:
For instance, you'd have to enable the Bridged
connection from the Network Adapter
options:
Once done save the configuration and start the VM.
Installing Ubuntu Server edition
The virtual machine starts up like this with a GRUB screen, and you are greeted with a terminal-based installation wizard.
Click on the Try or Install Ubuntu Server
to start the installation process:
Initial steps (language and keyboard layout)
Select your language and keyboard layout on the following pages.
Choosing the right edition
There will be two editions of the Ubuntu server that you can install:
- The normal version (equipped with utilities for an average server)
- Minimal version (a stripped-down version that includes only the basic utilities)
If you don't know what to choose, just select the normal version and continue.
Network configuration
For the network configuration, the installer will automatically set up a few things for you (such as IP address, gateway, etc) according to the network, to which your host system is connected.
But if you want a static IP address for SSH and other stuff, select the interface (here, it's an ethernet - ens33), followed by Edit IPv4, and then finally, the Manual option in the resulting dropdown.
If you are unsure what to configure, you can follow something similar:
- Subnet - The address followed by the port that defines the entire network (usually 192.168.1.0 followed by port 24)
- Address - The IP address is allocated for this machine (your preference)
- Gateway - The address for the gateway of the router (usually 192.168.1.1)
- Name servers - the DNS addresses that the server can access
- Domains - Domain names that can be allocated for this server (optional)
Proxies and mirrors
If your network is configured with a proxy, it can be entered here. If none, it can be left unattended.
You can also configure the mirror(s) from which you will be getting packages and updates. Check with the official site for the availability of mirrors in your region, and modify the address if necessary.
Or you can opt for the default mirror address.
Disk configurations
Here, the available disks are listed below. Configure the disks and partitions according to your convenience, and continue.
If you're new to this installation process, continuing with the automatically configured storage layout is recommended.
Once done, you'll be asked for confirmation twice in order to continue the installation wizard. It will start from the moment you select continue.
User configurations
The administrator user account will be configured on this screen along with the hostname. More accounts can be added only after the installation. Here is an example.
There's an option to install OpenSSH in the installation wizard itself, which is actually a great thing.
Provided that you have the necessary set-ups, SSH access (aka Remote login) will come in handy. You can also choose to import already configured profiles here.
Miscellaneous software
Here are a few different utilities that you can choose to install here. It includes docker, next cloud, AWS, etc. Select the required ones and continue.
Note that the above-selected software will be installed as snap packages; you can skip this step if you will configure these packages differently.
Reboot!
The installation process is continuing in the background from the moment you confirmed. Once these steps are complete, the installer will check for and install the latest updates and hence you are good to go.
The installer should be manually rebooted at the same installation screen.
First boot and SSH
Upon reboot, the installation media (ISO file) is ejected automatically and you will be greeted with a TTY screen, where you can log in.
To connect via SSH, first, you'd have to know the IP address of the Ubuntu server:
ip addr show
Once done, you can use the ssh command in the following manner:
Here is an example of mine:
That's all about the installation of the Ubuntu Server in VMware. Now with the bridged network configuration, you can access it via SSH, which requires the VM just to be running in the background without the output screen.
Want to enable live patching on the Ubuntu server?
Live patching means you can apply security patches even without rebooting your system.
Sounds super cool. Isn't it?
To enable live patching, you can refer to our detailed guide:
Have any doubts? Feel free to drop a comment.
This is Pranav Krishna, a Proud Linux user in twelfth grade.