How to Install Ubuntu/Linux Operating System on a Virtual Machine(VM)

Step-by-Step Guide: Creating a VM and Installing Ubuntu Server 22.04 on it.

Creating a virtual test lab or a single VM is one of the best ways to practice enterprise IT concepts such as installing Windows OS, Ubuntu/Linux, MAC and more.

In this guide, we’ll walk through installing Ubuntu Server 22.04 on a VM created with VMware Workstation 17 Pro.

1. Download, Installation VMware Workstation Pro and Creating a VM

You can create a single VM or a virtual test lab for practice using VMware Workstation. The Pro version is available for free on the Broadcom website. You can download it here by signing in or creating an account. 

 

System Requirements (recommended for smooth lab practice)-

i. 8‑core vCPU

ii. 16–32 GB RAM

iii. SSD storage (at least 100 GB free)

 

You’ll need VMware Workstation installed and a VM created. If you haven’t set that up yet, please refer to our post: Create a Virtual Machine.

2. Install Ubuntu Server 22.04 on a VM.

Ubuntu is one of the most popular Linux distributions (open source operating system), widely used for servers, desktops, and cloud environments. Installing it is straight forward, but knowing the right options during setup ensures a smooth experience.

 

It can be installed directly on the compatible laptop/desktop or even on any Virtual machine.

We already created a VM and selected the Ubuntu Server ISO during VM creation. If not, you can click Edit VM Settings and select the ISO under the CD/DVD device option.

Install Ubuntu/Linux OS on VM ISO

If the ISO is not available, you can download it directly from the Ubuntu website (Server) or For GUI Ubuntu Desktop.

 

We’re now ready to install the Ubuntu Server. If you’d like to watch a step‑by‑step walkthrough of these steps, please visit our YouTube Video.

 

Steps:-

    1. Start the above created VM.
    2. Once VM started, the VM will boot from the chosen ISO image and automatically launch the Ubuntu installation wizard
      Install Ubuntu/Linux OS on VM-Begin
    3. Select “Try or Install Ubuntu Server.” Use arrow/TAB keys to navigate and Press Enter.

3. Configure Ubuntu Installation Settings

Once the setup begins, you’ll be prompted to configure several required details and settings.

 

Steps:-

    1. Select the Language. Use arrow/TAB keys to navigate and press Enter for next step.Install Ubuntu/Linux OS on VM Language
    2. Select the Keyboard Layout if required or keep default. Use arrow/TAB keys to navigate to Done and press Enter. Install Ubuntu/Linux OS on VM keyb
    3. Select the option “Ubuntu Server.” Use arrow/TAB keys to navigate. Select Done and press Enter.Install Ubuntu/Linux OS on VM Server
    4. Select “Continue without Network” and press Enter. We’ll configure Network later in our next post.
      Install Ubuntu/Linux OS on VM Net
    5. Keep default setting and press Enter on next steps.
    6. Select “Continue without Updating” and press Enter. Packages can be updated later after installation.Install Ubuntu/Linux OS on VM update
    7. At the storage layout step, select “Use an entire disk“, then navigate to Done using the arrow/TAB keys and press Enter.
      Install Ubuntu/Linux OS on VM disk
    8. At the File System Summary step, either accept the default configuration (proceed to Step 12) or adjust the Logical Volume Manager (LVM) settings such as size and format.
      Install Ubuntu/Linux OS on VM LVM
    9. If you need to edit a Logical Volume, select the LV in the Used Devices list with the TAB key, press Enter to view options, select Edit, and press Enter again to edit LV.
      Install Ubuntu/Linux OS on VM LV edit
    10. At the Logical Volume editing step, adjust settings like size or format as needed. Navigate using the arrow/TAB keys, then select Save and press Enter to confirm.
      Install Ubuntu/Linux OS on VM LV save
    11. If you want to create a new Logical Volume, select Free Space and press Enter to open options. Select Create Logical Volume, press Enter, then define the size, format, and LV name. Finally, move to Create and press Enter to confirm.
      Install Ubuntu/Linux OS on VM LV Create
    12. At the Storage Configuration step, move to Done using the arrow/TAB keys and press Enter.
    13. Choose Continue and press Enter to confirm disk erase and formatting for installation.
      Install Ubuntu/Linux OS on VM continue
    14. At Profile Setup step, Enter your name, computer name, username, and password. These credentials will be used for your first login. Use the arrow/TAB keys to navigate, select Done and press Enter.Install Ubuntu/Linux OS on VM Details
    15. Choose “Skip Ubuntu Pro setup for now” and Continue. We can enable Ubuntu Pro later.Install Ubuntu/Linux OS on VM Pro
    16. Select “Install OpenSSH server” for remote access, navigate to Done and press Enter.Install Ubuntu/Linux OS on VM SSH
    17. At this stage, the installation process starts. It typically finishes in just a few minutes.
      Install Ubuntu/Linux OS on VM installing
    18. Once completed, reboot the system and remove/disconnect the installation media/ISO.Install Ubuntu/Linux OS on VM Reboot

4. Post Installation - First Login

After the reboot, the system will display the login prompt. Enter the username and password you created during Profile Setup (Step-14).

    1. Enter the Username and Password and press Enter.    Note: Password characters will not be visible while typing.Install Ubuntu/Linux OS on VM Login
    2. Now we can update packages or test basic commands to verify installation like date/ls/mkdir/vim/cd/rm/rmdir etc.Install Ubuntu/Linux OS on VM command

Your base Ubuntu Server VM is now ready for lab practice.

 

Pro Tip: Use VMware’s Snapshot feature after a clean installation. Snapshots allow you to roll back easily if something breaks during experimentation.

We have successfully installed Ubuntu Server 22.04 on a VMware Virtual Machine. This environment is now ready for Linux administration, lab practice, and testing.

Discover more:

Head over to our Blog page for the latest posts.

Share Your Thoughts

Your email address will not be published. Required fields are marked *

Scroll to Top