Press "Enter" to skip to content

Configuring Ubuntu 22.04 LTS Virtual Machine on Windows 11 Hyper-V

Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source software. Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots. All the editions can run on the computer alone, or in a virtual machine.’

Ubuntu is released every six months, with long-term support (LTS) releases every two years. As of 21 April 2022, the most recent long-term support release is 22.04 (“Jammy Jellyfish”).

Configuring Ubuntu Virtual Machines on Windows 11 Hyper-V is very easy and quick. The Hyper-V offers Virtual Machine Gallery from where we can download the VM.

This requires a good internet connection as the VM size is approx. 2.4-2/5GB.

Step 1: Invoke Hyper-V Manager

Login to Windows 11 as Administrator user.

A normal user cannot see ‘administrative tools’ menu. You need to search for the ‘Hyper-V Manager’ MMC Snippet and “Run As Administrator” by right clicking it.

You will see the Hyper-V Manager as below.

Hyper V Manager
Hyper V Manager

 

Step 2: Select Hyper V Node & Click “Quick Create”

On the left hand side Tree Pane, select the Hyper V Node. Right Click

Hyper V QuickCreate
Hyper V QuickCreate

Step 3: Virtual Machine Gallery Dialog will be opened

Select the “Ubuntu 22.04TLS” from the List.

Select VM from Gallery
Select VM from Gallery

Here, you can click on “More Options” to choose Virtual Machine Settings and the Name of the “Virtual Machine”. You can change the settings later also.

Click “Create Virtual Machine” will create a Virtual Machine and Download the Image from Ubuntu.

Verifying Image
Verifying Image

If you have a good internet connection this will be quicker.

Extracting Image
Extracting Image

Step 4: The Virtual Machine is ready

You will see the below dialog

VM Created Successfully
VM Created Successfully

Step 5: Some important points – weird observations

The Newly Created Virtual Machine from Gallery – the Wizard does not offer us to choose no of Processors and “By-Default” assigns HALF of the Cores on your node.

Select Virtual Machine, and Right Click Settings: and review all hardware configuration.

CPU Core Setting
By Default it takes half of total cores of the host.

I had 20 cores to my PC and hence the QuickCreate assigned 10 Core to the new VM. You may want to change that.

Step 6: Review Boot Sequence once

Ensure that the HDD is selected as first Boot Sequence

Verify Boot Sequence
Verify Boot Sequence

Step 7: Start & Connect the Virtual Machine

Connect / Start VM
Connect / Start VM
Connecting to Ubuntu VM
Connecting to Ubuntu VM

Follow the On-Screen Process to setup Ubuntu.

Select Language
Select Language for Ubuntu Desktop
Select Keyboard
Select Keyboard
Select Timezone
Select Timezone

Configure your PC Name and Root User Password

Configure PC Name & Secure Password
Configure PC Name & Secure Password
Ubuntu VM Configuration Process
Ubuntu VM Ubuntu VM Configuration Process

Note- Keep the Network Switch as – Default Network Switch so that the newly created Virtual Machine has access to Internet and you can download and install tools like IFCONFIG as NETTOOLS are not included by-default.

Login to Ubuntu VM
Login to Ubuntu VM

You can open “Terminal” and Run following command

sudo apt-get install -y net-tools

 

Be First to Comment

Leave a Reply

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