How to Install Ubuntu 20.04 Virtual Machine on Hyper-V Server

How to Install Ubuntu 20.04 Virtual Machine on Hyper-V Server. Today, hypervisors are more ubiquitous than ever, allowing you to run an operating system exactly as you would on your hard disk drive.

Like today’s virtualization software and operating systems, hypervisors are freely available and run on all manner of hardware.

Above all, Microsoft Hyper-V is a native hypervisor and server virtualization platform that provides system level virtualization, including full support for hardware assisted virtualization.

Accordingly, designed for use as a free alternative to Microsoft’s proprietary Hypervisor and supports both x86 and x64 platforms, as well as other operating systems.

In this article, you will learn about how to How to Install Ubuntu 20.04 Virtual Machine on Hyper-V Windows Server.

What is Hyper-V

All in all, Virtualization has exploded in popularity over the past few years. It allows you to run multiple operating systems on a single server and is particularly useful for large networks where you need to isolate machines or reduce the attack surface.

Then, Hyper-V Windows Server is a hypervisor that runs as a role in Windows Server, allowing you to create and run virtual machines for different operating systems, programming languages, or even for testing management software.

In order to operate a virtual computer, Hyper-V offers a private, isolated environment. It enables the simultaneous operation of several virtual machines. To prevent problems with a crash that impact your other operations, this will be quite helpful.

Altogether, it increases the capacity of your virtualized infrastructure. The software is designed to help you host virtual machines, build your own cloud, and manage hybrid clouds.

Ubuntu is a popular open-source operating system that can be installed on the Windows Server Hyper-V platform. This gives businesses a safe and reliable place to run their apps.

Features of Hyper-V

Basically, Hyper-V comes with the following features:

    • Optimization.

    • Portability.

Advantages of Hyper-V

The following are some of the most significant advantages of Hyper-V:

    • Workload Efficiency. 

    • Flexibility.

    • Scalability.

    • Disaster Recovery.

    • Resource efficiency.

Please, follow this post to learn how to install an Ubuntu 20.04 virtual machine on a Hyper-V Windows server.

How to Install Ubuntu 20.04 Virtual Machine on Hyper-V Windows Server

Prerequisites

    • A user account with administrative rights.

Enable Virtualization in BIOS

Firstly, you have to enable virtualization in the motherboard’s BIOS in order to use any type of virtualization software. The specific stages in this procedure will change based on the type of motherboard you are using.

Secondly, restart your computer, then, depending on the motherboard type, click the BIOS button (F1, F2, F10, F12, or Delete) as requested.

Depending on your system, the virtualization settings might be in the CPU settings or the Advanced BIOS settings.

Note that many systems use different names for the virtualization settings. Look for technologies like AMD-V, SVM, VT-X, Intel Virtualization Technology, and Hyper-V.

After, you have selected the proper options, utilize the Save and Exit options to verify your changes.

Enable Hyper-V

  1. Remember, that Hyper-V is not enabled by default in Windows, so you must activate it from the settings menu before configuring the virtual machine. Select the Settings window from the Windows Start menu.

2. Navigate to the Apps tile and select the Optional features option on the right-hand side.

3. Next, select the More Windows feature option.

4. A Windows features window will pop up. You can check and uncheck Windows features here to turn Windows features on or off.

5. Check the Hyper-V option, as well as the Hyper-V Management Tools and Hyper-V Platform sub-options, by scrolling down and selecting them.

6. To validate the modifications, click OK.

7. Restart your computer again when prompted.

Configure a Virtual Network Switch

A) Open Hyper-V Manager by going to the Windows Administrative Tools folder in the Start menu.

B) In the Manager window’s left panel, click the right mouse button on the name of your system. From the drop down menu, choose Virtual Switch Manager.

C) On the left side of the Virtual Switch Manager window, choose the New virtual network switch option. Click Create Virtual Switch after setting the virtual switch type to External.

D) Give the new virtual switch a name. Ubuntu 20.04 will be used in this example. To complete configuring the virtual switch, click OK.

E) You could see a new window asking you to make network modifications. Confirm the updated network adjustments by clicking Yes.

Install Ubuntu 20.04 Virtual Machine on Hyper-V

Certainly, in here, there are two options for creating an Ubuntu 20.04 virtual machine on Hyper-V.

Use the Quick Create option and utilize a wizard to directly download and install an operating system on a virtual machine.

Or, you set up a new virtual machine, and install an operating system from your hard drive or from an outside source.

We’ll go through how to set up Ubuntu 20.04 using both methods:

Using Quick Create

Concurrently, to launch the rapid creation wizard, click on the Action tab and select Quick Create from the drop-down menu.

From the list of operating systems on the left, choose Ubuntu 20.04 from the drop down menu. Select the Ubuntu 20.04 virtual switch from the Network menu and click More options to give the new virtual machine a name.

Consequently, to begin the installation procedure, choose the Create Virtual Machine option. Hyper-V will automatically download and install Ubuntu.

When the installation is complete, click Connect to launch your virtual machine or click Edit settings to modify its settings.

Using Manual Method

  1. Before setting up a new virtual machine, you need to get the Ubuntu 20.04 installation image from the official Ubuntu website.

2. Click on the Action tab in the top-left corner and select New > Virtual Machine from the drop-down box.

3. Click Next in the New Virtual Machine Wizard to begin configuring the new virtual machine. Select the new virtual machine’s name and installation location, then click Next to continue.

4. Select the new virtual machine’s generation, and then click Next.

5. Set up the RAM for the virtual computer. Take advantage of dynamic memory and set it to at least 2 GB of RAM.

6. Click Next after selecting Ubuntu 20.04 as the virtual network switch.

7. To build a new hard drive for the virtual computer, click on Create a virtual hard disk. Give your hard drive at least 20 GB of space, then click Next to proceed.

8. Select the Ubuntu image you previously downloaded under the Install an operating system from a bootable CD/DVD-ROM option by selecting the image file (.iso). 

9. A summary of the new virtual machine configuration is provided in the last step. To make adjustments, click Previous; to construct the virtual machine, click Finish.

Launch the Ubuntu Virtual Machine on Hyper-V Windows Server

Equally, the Hyper-V Manager window displays the new virtual machine. To start the virtual machine, right click on its name and choose Connect.

Evidently, you can see the virtual machine with Ubuntu load up in the new window, and you can see the Ubuntu installation page load up. Finish up the Ubuntu installation.

That’s it for the Ubuntu 20.04 virtual machine installation on Hyper-V Server.

How to Install Ubuntu 20.04 Virtual Machine on Hyper-V Server Conclusion

After finishing this tutorial, Hyper-V should be activated, and a brand new virtual machine with Ubuntu 20.04 installed and ready for use should be accessible to you. 

It is not limited to Ubuntu. Microsoft’s Hyper-V is a virtualization solution that will assist you in building and operating any kind of system.

Explore our Hyper-V section to learn about this virtualization solution.

Avatar for Sobia Arshad
Sobia Arshad

Information Security professional with 4+ years of experience. I am interested in learning about new technologies and loves working with all kinds of infrastructures.

5 1 vote
Article Rating
Subscribe
Notify of
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x