14-Finish

Introduction

In this blog post, we will learn how to install the Linux Ubuntu desktop operating system in Hyper-V on Windows 10.

If you are running a Windows 10 or 11 operating system and want to install the Ubuntu desktop operating system for daily use, testing, or educational purposes, then you can enable Hyper-V on Windows 10 and inside Hyper-V you can create a virtual machine and install Ubuntu on that virtual machine.

Prerequisites

Before installing Ubuntu on Hyper-V, you should meet the following prerequisites.

1.First and foremost, ensure that Hyper-V is enabled in the Windows 10 operating system by going to Program and Features > Turn Windows Features On or Off. If you don’t know how to enable Hyper-V in Windows 10, then follow the steps mentioned in the below link.

https://easytechhub.com/how-to-install-hyper-v-on-windows-10/

2. Your hardware must support virtualization in BIOS, otherwise you won’t be able to install Linux Ubuntu on Hyper-V.

3. You must have a good internet connection if you are creating virtual machines, downloading and installing Ubuntu on Hyper-V by using the quick create method automatically.

4. You need to download the Linux Ubuntu desktop ISO image file from the official ubuntu.com website if you are planning to create a virtual machine and install Ubuntu manually.

Create a Virtual Switch

Create a virtual switch in Hyper-V for Ubuntu. Otherwise, you won’t be able to install Ubuntu. Let’s see how to create a virtual switch in Hyper-V.

How to create a virtual switch in Hyper-V for Ubuntu

1. Type hyper in search and click “Hyper-V Manager.”

How to Install Linux Ubuntu on Windows 10 using Hyper-V

2. Click “Action” then “Virtual Switch Manager“.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

3. Click “New Virtual Network Switch“, then choose “External” as the virtual switch type, and then click “Create Virtual Switch“.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

4. Enter the Virtual Switch Name and under connection type, make sure “External network” adapter is selected, click Apply and OK.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

A virtual network switch has been created and the Hyper-V is ready to install Ubuntu.

Install Linux Ubuntu in Hyper-V

Let’s see how to create a virtual machine and install Ubuntu on it.

There are two methods for creating virtual machines that Hyper-V offers.

1. The first method is by using the Quick Create option, which allows you to automatically download and install the operating system and install it on the virtual machine.

2. The second method is that you can download the Linux Ubuntu ISO image file, create a new virtual machine, and then install an operating system manually.

Quick Create Setup

Let’s see how to install Ubuntu by using the quick create method.

1. Open Hyper-V manager, click Action and then Quick Create to start the quick creation wizard.

2. On the left pane, select the latest Ubuntu 22.04 LTS from the list of operating systems. At the time of posting this blog, the latest Ubuntu version was 22.04 LTS.

3. Click “Create Virtual Machine” to start the downloading process from the Ubuntu official website. After the downloading process is completed, the virtual machine will be created automatically.

4. After the virtual machine is created, you can right-click the virtual machine and click “Connect” and follow the Ubuntu installation instructions.

Manual Setup

Let’s see how to install Ubuntu by using manual method.

1. Click Start and type Hyper-V in search and open “Hyper-V Manager“. Then click “Action” > New > “Virtual Machine“.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

2. Click “Next“.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

3. Enter the virtual machine name. The default location for the virtual machine is C:\ProgramData\Microsoft\Windows\Hyper-V. You can change the location if your computer’s C: Drive doesn’t have enough space and click “Next.”

How to Install Linux Ubuntu on Windows 10 using Hyper-V

4. Specify Generation, leave the default or you can select Generation 2 if you want a UEFI-based firmware and click “Next“.

5. Assign memory to your virtual machine. In the case of Ubuntu, it requires a minimum of 4GB of RAM. But my computer system has less memory, so we will allocate 2 GB. That is enough for installation, but for smooth functioning of Ubuntu, assign 4 GB of minimum memory and then click “Next.”

6. Use the drop-down menu to select the virtual switch that you created earlier and click “Next.”

7. Assign virtual hard disk size to a minimum of 25GB, which is Ubuntu’s minimum requirement, but for installation and testing here, we gave 20GB, which is sufficient, and clicked on “Next“.

8. On the installation options, select “install an operating system from a bootable CD/DVD-ROM” and choose “Image file (.iso)”. At the time of posting this blog, the latest Ubuntu version is 22.04 TLS, but we downloaded version 20.04 a few months ago, so we will use the same ISO image. The installation process is the same for both the versions. Select the path of the Ubuntu ISO file and click “Next“.

9. Review the virtual machine specifications and click on “Finish.”

Start a Virtual Machine and Install Ubuntu

1. Open Hyper-V Manager under virtual machines, right-click and click “Connect“.

2. Click “Start” to start the virtual machine.

3. Choose your language and click “Install Ubuntu“. If you want to try Ubuntu before installing it, then click “Try Ubuntu”.

4. On the keyboard layout, choose your language keyboard and click “Continue“.

5. At Updates and other software, choose “Normal installation” and select “Download updates while installing Ubuntu“. click “Continue“.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

On installation type, I am not creating a partition just going by default, so I will select “Erase disk and install Ubuntu“. If you want to create a partition, then choose something else and create a partition and then click “Install Now“.

How to Install Linux Ubuntu on Windows 10 using Hyper-V

Click “Continue” and it will write the changes to the disks.

Choose your time zone and click “Continue“.

Provide your name, the computer’s name, username, and password, then click “Continue“.

Login to Ubuntu

Conclusion

Hyper-V on Windows 10 allows you to create a virtual machine and install the Ubuntu desktop operating system on that virtual machine. It is a very good option to have if you want to test Ubuntu before using it on your laptop or desktop computer.

Spread the love

By Feroz Khan

Feroz Khan works as a system administrator with more than 12 years of experience in information technology. He would like to share the knowledge with others that he has gained during his working experience.

5 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x