How To Install Ubuntu On Hyper-V

Ubuntu is one of the most popular Linux distributions in the world, known for its user-friendly interface, strong security, regular updates, and extensive software support. Whether you want to learn Linux, develop software, host services, practice system administration, or explore open-source tools, Ubuntu is an excellent choice.

One of the safest and easiest ways to use Ubuntu on a Windows 11 computer is through Hyper-V. Hyper-V is Microsoft’s built-in virtualization platform that allows you to run virtual machines without modifying your existing Windows installation. By installing Ubuntu inside a Hyper-V virtual machine, you can enjoy the full Linux experience while keeping Windows 11 as your primary operating system.

Update Windows Drivers

Running Ubuntu in Hyper-V provides several benefits. You can switch between Windows and Ubuntu without rebooting, test Linux applications safely, create development environments, and learn Linux commands without affecting your main PC. Since the virtual machine operates independently, any changes you make inside Ubuntu remain isolated from Windows.

PC running slow or unstable? Do you want to update drivers?

In this guide, you’ll learn how to download Ubuntu, create a Hyper-V virtual machine, install Ubuntu, configure networking, and optimize the virtual machine for the best performance.

Requirements Before Installing Ubuntu

Before beginning the installation process, ensure your system meets the following requirements.

Windows Requirements

You need:

  • Windows 11 Pro
  • Windows 11 Enterprise
  • Windows 11 Education

Hyper-V is not officially available in Windows 11 Home.

Hardware Requirements

Recommended specifications:

  • 8 GB RAM minimum
  • 16 GB RAM preferred
  • Multi-core processor
  • SSD storage
  • Hardware virtualization enabled

Required Files

You’ll need:

  • Hyper-V enabled on Windows 11
  • Ubuntu ISO image
  • Internet connection
Repair PC

Using the latest Ubuntu Long-Term Support (LTS) release is recommended for stability and long-term updates.

Method 1: Download the Ubuntu ISO File

The first step is obtaining the Ubuntu installation image.

Steps:

  • Visit the official Ubuntu website.
  • Download the latest Ubuntu Desktop ISO.
  • Save the file to your computer.
  • Wait for the download to complete.
PC running slow or unstable? Do you want to update drivers?

The ISO file contains everything required to install Ubuntu inside a virtual machine.

A stable LTS version is generally the best option for most users because it receives security updates and support for several years.

Method 2: Verify Hyper-V Is Enabled

Before creating the virtual machine, make sure Hyper-V is installed.

Steps:

  • Open Start.
  • Search for Hyper-V Manager.
  • Launch the application.

If Hyper-V Manager opens successfully, Hyper-V is already enabled.

If it does not appear, you must enable Hyper-V first before continuing.

Method 3: Create a Virtual Switch

A virtual switch allows Ubuntu to access the internet.

Steps:

  • Open Hyper-V Manager.
  • Click Virtual Switch Manager.
  • Select External.
  • Click Create Virtual Switch.
  • Enter a switch name.
  • Select your active network adapter.
  • Click Apply.
  • Click OK.
PC running slow or unstable? Do you want to update drivers?

The virtual switch connects the Ubuntu virtual machine to your network.

Without a virtual switch, internet access may not function correctly.

Method 4: Create a New Ubuntu Virtual Machine

Now you can create the virtual machine that will host Ubuntu.

Steps:

  • Open Hyper-V Manager.
  • Select your computer name.
  • Click New.
  • Choose Virtual Machine.
  • Click Next.
  • Enter a virtual machine name.
  • Click Next.

Example names:

  • Ubuntu Desktop
  • Ubuntu Lab
  • Ubuntu Development VM
  • Linux Test Machine

Using descriptive names makes future management easier.

Method 5: Choose Generation 2

Hyper-V offers two virtual machine generations.

Steps:

  • Select Generation 2.
  • Click Next.

Generation 2 is recommended because it provides:

  • UEFI support
  • Better performance
  • Secure Boot compatibility
  • Modern hardware support

Most current Ubuntu releases work perfectly with Generation 2 virtual machines.

Method 6: Allocate Memory

Ubuntu requires memory to operate efficiently.

Steps:

  • Enter the startup memory amount.
  • Enable Use Dynamic Memory.
  • Click Next.

Recommended allocations:

  • Minimum: 2048 MB
  • Recommended: 4096 MB
  • Heavy workloads: 8192 MB or more

Providing sufficient memory improves responsiveness and multitasking performance.

Method 7: Configure Networking

Connect the virtual machine to your virtual switch.

Steps:

  • Select the virtual switch created earlier.
  • Click Next.

This enables:

  • Internet access
  • Software updates
  • Package downloads
  • Network communication

Networking can be modified later if necessary.

Method 8: Create a Virtual Hard Disk

The virtual hard disk stores Ubuntu and your files.

Steps:

  • Select Create a virtual hard disk.
  • Specify a disk name.
  • Set the storage size.
  • Click Next.

Recommended disk sizes:

  • Basic usage: 30 GB
  • Development work: 50 GB
  • Heavy workloads: 80 GB or more

Hyper-V uses the VHDX format, which supports large virtual disks and improved reliability.

Method 9: Attach the Ubuntu ISO

Now configure the virtual machine to boot from the Ubuntu installer.

Steps:

  • Select Install an operating system from a bootable image file.
  • Browse to the Ubuntu ISO.
  • Select the file.
  • Click Next.
  • Review the settings.
  • Click Finish.

The virtual machine is now ready for installation.

Method 10: Install Ubuntu

The final step is installing Ubuntu inside the virtual machine.

Steps:

  • Right-click the virtual machine.
  • Select Connect.
  • Click Start.
  • Wait for Ubuntu to boot.

When the installer appears:

  • Select your language.
  • Click Install Ubuntu.
  • Choose your keyboard layout.
  • Connect to the internet if prompted.
  • Select installation preferences.
  • Choose Erase disk and install Ubuntu.

Do not worry—this only affects the virtual hard disk, not your Windows installation.

Continue:

  • Create a username.
  • Set a password.
  • Select your time zone.
  • Begin installation.

Ubuntu will copy files and configure the operating system automatically.

After installation completes:

  • Restart the virtual machine.
  • Remove the ISO if prompted.
  • Sign in using your new account.

Ubuntu is now ready to use.

Updating Ubuntu After Installation

After the first login, it is a good idea to install updates.

Steps:

  • Open Terminal.
  • Run:
sudo apt update
  • Press Enter.
  • Run:
sudo apt upgrade
  • Enter your password.
  • Confirm the update.

Installing updates ensures you have the latest security patches and software improvements.

Adjusting Hyper-V Settings for Better Performance

You can improve Ubuntu performance by adjusting Hyper-V settings.

Increase RAM

  • Open VM Settings.
  • Select Memory.
  • Increase allocation if necessary.

Add CPU Cores

  • Open Settings.
  • Select Processor.
  • Increase virtual processor count.

Use SSD Storage

Storing the virtual machine on an SSD significantly improves startup and application performance.

Enable Dynamic Memory

Dynamic Memory allows Hyper-V to allocate RAM more efficiently.

Common Ubuntu Uses in Hyper-V

Many users install Ubuntu for:

Learning Linux

Practice Linux commands and administration safely.

Software Development

Build applications using Linux development tools.

Web Development

Host local web servers and development environments.

Security Training

Learn Linux security concepts and testing techniques.

Server Administration

Practice managing Linux servers before deploying them in production.

Open-Source Applications

Use Linux-exclusive tools and software.

Troubleshooting Common Installation Issues

Ubuntu Won’t Boot

Verify:

  • Generation 2 is selected.
  • ISO file is valid.
  • Hyper-V is fully enabled.

No Internet Connection

Check:

  • Virtual switch configuration.
  • Network adapter settings.
  • Host internet connection.

Installation Freezes

Try:

  • Allocating more RAM.
  • Increasing CPU cores.
  • Using a different Ubuntu ISO.

Poor Performance

Improve performance by:

  • Increasing RAM.
  • Using SSD storage.
  • Allocating additional processors.
  • Closing unnecessary Windows applications.

Frequently Asked Questions

Can Ubuntu run alongside Windows 11 in Hyper-V?

Yes. Ubuntu runs inside a virtual machine while Windows 11 remains your primary operating system.

How much RAM should I allocate to Ubuntu?

For general use, 4 GB is recommended. More memory may be beneficial for development or multitasking workloads.

Does Ubuntu in Hyper-V require a license?

No. Ubuntu is free and open-source.

Can I install software inside Ubuntu?

Yes. You can install applications, development tools, browsers, servers, and other Linux software just like on a physical Ubuntu computer.

Is Hyper-V better than dual booting?

Hyper-V is often more convenient because you can run Ubuntu and Windows simultaneously without restarting your computer.

Can I create multiple Ubuntu virtual machines?

Yes. You can create multiple VMs as long as your hardware resources are sufficient.

Final Thoughts

Installing Ubuntu on Hyper-V is one of the easiest and safest ways to explore Linux while continuing to use Windows 11 as your primary operating system. Hyper-V provides an isolated environment where you can learn Linux, test applications, develop software, and experiment with system administration tasks without affecting your main Windows installation.

The process involves downloading Ubuntu, creating a Generation 2 virtual machine, assigning memory and storage, attaching the Ubuntu ISO, and completing the installation wizard. Once installed, Ubuntu behaves like a fully functional Linux computer running inside Windows.

Whether you’re a student, developer, IT professional, or simply curious about Linux, running Ubuntu in Hyper-V is an excellent way to gain experience with one of the world’s most popular operating systems while maintaining the flexibility and convenience of Windows 11.

PC running slow or unstable? Do you want to update drivers?

GeeksDigit.Com
Logo