How to create a Linux virtual machine on Windows 10 with Hyper-V (2023)

How to create a Linux virtual machine on Windows 10 with Hyper-V (1)

Although it is now possible to run a series ofLinux distributions natively on Windows 10, these environments can be somewhat limited in terms of features and tools you can use. Also, you can only choose from three distributions, including Ubuntu, SUSE Linux Enterprise, and OpenSUSE Leap, and you're stuck at the command line interface, meaning you can't run any of the graphical experiences (e.g. GNOME, KDE, XFCE) or Linux-based graphical applications.

Of course, you can always install your favorite Linux distribution on a second machine, but if you don't have one, it's still possible to run a full version of Linux with a virtual machine (VM).

If you're running Windows 10, you can enable Hyper-V on your device to create a VM to install your favorite distro, whether you're a developer or an enthusiast just wanting to know what the Linux Fuzz goes.

In this Windows 10 guide, we'll walk you through the steps to install most Linux distributions on virtual machines that use Microsoft's Hyper-V virtualization feature.

  • Guide requirements
  • How to enable Hyper-V in Windows 10
  • How to create a virtual machine with Hyper-V
  • How to install Ubuntu Linux with Hyper-V on Windows 10

Guide requirements

To run a Linux virtual machine on Windows 10, you need the following:

  • A computer with Hyper-V support.
  • An ISO file to install your favorite Linux distribution.

In this guide we use Ubuntu version 17.10, which you can download fromOfficial Ubuntu website. However, it is possible to install version 16.04, which may be a more stable version of the open source project, and you can also install other distributions including:

  • CentOS and Red Hat Enterprise Linux.
  • Debian.
  • SUSE.
  • OracleLinux.
  • free BSD.

How to enable Hyper-V in Windows 10

Hyper-V is a virtualization technology from Microsoft, available in Windows 10 Pro, Enterprise and Education, that allows you to create one or more virtual machines to install and run different operating systems on the same physical hardware.

Check compatibility with Hyper-V

Although Hyper-V is part of Windows 10, there is a minimum hardware requirement that a computer must meet to enable the feature.

  • 64-Bit-CPU mit Second Level Address Translation (SLAT).
  • The processor must support the VM Monitor Mode Extension (VT-c on Intel chips).
  • At least 4 GB of RAM.

Besides, you have to take care of itvirtualization technologyjHardware-enforced DEPThe options are enabled in your system BIOS.

You can quickly verify that your computer has the necessary support to use Hyper-VSystem Information:

  1. OpenStart.
  2. SeekSymbol des Systemsand click on the top result.
  3. Enter the following command and pressGet into:systeminfo.exe
  4. LowHyper-V Requirements, if the result saysAnd, then you can run Hyper-V.

How to create a Linux virtual machine on Windows 10 with Hyper-V (2)

When the command appearsNOunder Hyper-V requirements, your hardware doesn't support this feature or you need to make sure you enable it manually.

Hyper-V activation

Use the following steps to enable Hyper-V on Windows 10:

  1. OpenSwitchboard.
  2. Click onSoftware.
  3. Click onTurn Windows features on or off.

How to create a Linux virtual machine on Windows 10 with Hyper-V (3)

  1. Check theHyper-VEnsure options:Hyper-V Management ToolsjPlattform Hyper-Vare also selected.
  2. ClickOKto start the process.

How to create a Linux virtual machine on Windows 10 with Hyper-V (4)

  1. After the installation is complete, clickRestart nowto apply the changes.

How to create a Linux virtual machine on Windows 10 with Hyper-V (5)

How to create a virtual machine with Hyper-V

After adding the virtualization layer to Windows 10, you need to create a virtual machine for the Linux distribution you want to use.

(Video) Create Linux Virtual Machine On Windows 10 Using Hyper-V

However, before you do that, you need to create a virtual switch so that the virtual machine can connect to the internet.

Create a virtual switch

Use the following steps to configure a virtual switch in Hyper-V:

  1. OpenStart.
  2. SeekHyper-V-Managerand click on the top result.
  3. Click on thatactionMenu.
  4. ChooseNeuand clickvirtual switch manager.

How to create a Linux virtual machine on Windows 10 with Hyper-V (6)

  1. Select in the left paneNew virtual network switch.
  2. Select rightExtern.
  3. Click on thatcreate virtual switchTaste.

How to create a Linux virtual machine on Windows 10 with Hyper-V (7)

  1. Enter a new friendly name for the switch (e.g. MyVirtualSwitch).
  2. Under Connection type, make sure your network adapter is selectedred outside.
  3. ClickUse.
  4. ClickOK.

How to create a Linux virtual machine on Windows 10 with Hyper-V (8)

Create a virtual machine

After creating the virtual switch, you can proceed to create a new virtual machine:

  1. OpenStart.
  2. SeekHyper-V-Managerand click on the top result.
  3. Click on thatactionMenu.
  4. ChooseNeuand clickVirtual machine.

How to create a Linux virtual machine on Windows 10 with Hyper-V (9)

  1. Click on thatNextTaste.
  2. Enter a descriptive name for your virtual machine (e.g. vm-ubuntu).

How to create a Linux virtual machine on Windows 10 with Hyper-V (10)

  1. Use the default location to save your virtual machine, or check theSave the virtual machine to a different locationPossibility to choose another route.
  2. ClickNextKeep going.
  3. You can keep the default settingGeneration 1selected option. Or you can chooseGeneration 2if you want a UEFI based firmware.
  4. ClickNext.

How to create a Linux virtual machine on Windows 10 with Hyper-V (11)

  1. Choose the amount of RAM you want to allocate to your virtual machine. With Ubuntu you need at least 2 GB of RAM. You can allocate as much memory as you like, but this setting is always dependent on the physical memory available on your computer.
  2. ClickNext.

How to create a Linux virtual machine on Windows 10 with Hyper-V (12)

  1. Use the drop-down menu to select the virtual switch created earlier.
  2. ClickNext.

How to create a Linux virtual machine on Windows 10 with Hyper-V (13)

  1. You can leave all the default settings to create a virtual disk, but underSizeMake sure you assign at least25GBDisk space, which is the minimum required to run Ubuntu.
  2. ClickNextKeep going.

How to create a Linux virtual machine on Windows 10 with Hyper-V (14)

  1. Under Installation Options, select theInstall an operating system from a bootable CD/DVD-ROMPossibility.
  2. ChooseImage file (.iso)Possibility.
  3. Select the path of the ISO file containing the Ubuntu installation files.
  4. ClickNext.

How to create a Linux virtual machine on Windows 10 with Hyper-V (15)

  1. Clickconclude.

How to install Ubuntu Linux with Hyper-V on Windows 10

The last step is to start the virtual machine and install the Linux distribution you want to use.

  1. In Hyper-V Manager, under Virtual Machine, right-click and select the newly created deviceConnect.

How to create a Linux virtual machine on Windows 10 with Hyper-V (16)

  1. Click on thatStart(Power button.

How to create a Linux virtual machine on Windows 10 with Hyper-V (17)

(Video) Hyper V Virtual Machine Tutorial - Install Windows & Linux Virtually

  1. Choose your language.
  2. Click on thatInstall UbuntuTaste.

How to create a Linux virtual machine on Windows 10 with Hyper-V (18)

  1. Check theInstall third-party graphics softwarejWi-Fi hardware, Flash, MP3 and other mediaPossibility.
  2. ClickKeep going.

How to create a Linux virtual machine on Windows 10 with Hyper-V (19)

  1. ChooseAnything elsePossibility.
  2. ClickKeep going.

How to create a Linux virtual machine on Windows 10 with Hyper-V (20)

  1. Double-click the/dev/sdaDrive.

How to create a Linux virtual machine on Windows 10 with Hyper-V (21)

  1. ClickKeep going.
  2. double clickfree space.

How to create a Linux virtual machine on Windows 10 with Hyper-V (22)

  1. Under "Use As" use the drop down menu and selectexchange areato create a swap partition.
  2. Under Size, select the amount of space for the swap partition, which should be approximately twice the memory allocated for the virtual machine.
  3. ClickOK.

How to create a Linux virtual machine on Windows 10 with Hyper-V (23)

  1. double clickfree spaceonce again.

How to create a Linux virtual machine on Windows 10 with Hyper-V (24)

  1. Select the disk space to allocate for the installation.
  2. Under "Mount Point" use the drop down menu and select root/.
  3. ClickOK.

How to create a Linux virtual machine on Windows 10 with Hyper-V (25)

  1. Chooseext4Listenpartition.
  2. Click on thatInstall nowTaste.

How to create a Linux virtual machine on Windows 10 with Hyper-V (26)

  1. ClickKeep goingto install Ubuntu.
  2. Select your time zone.
  3. ClickKeep going.

How to create a Linux virtual machine on Windows 10 with Hyper-V (27)

  1. Select the keyboard layout.
  2. ClickKeep going.

How to create a Linux virtual machine on Windows 10 with Hyper-V (28)

  1. Create a user account with your data.
  2. ClickKeep going.

How to create a Linux virtual machine on Windows 10 with Hyper-V (29)

  1. Reboot the virtual machine to complete the configuration.Short tip:If during the final reboot process you get a message that you need to remove the installation and pressGet into, but pressing the button doesn't restart the VM, just click theTurn offpress and then turn it on again.

After completing the steps, you can power on the VM and start using Ubuntu Linux alongside Windows 10.

While we've focused on setting up Ubuntu in this guide, you can refer to these instructions for running other Linux distributions as well.

More Windows 10 resources

For more helpful articles, coverage, and answers to frequently asked questions about Windows 10, see the following resources:

  • Windows 10 in Windows Central: everything you need to know
  • Windows 10 help, tips and tricks
  • Windows 10-Foren in Windows Central

Windows Central-Newsletter

Get the best of Windows Central in your inbox every day!

(Video) How to Install Ubuntu using Hyper-V on Windows 10 Pro in 10 Minutes

How to create a Linux virtual machine on Windows 10 with Hyper-V (30)

Mauro Huculak

Mauro Huculak is the Technical Writer for WindowsCentral.com. His primary focus is writing comprehensive guides to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco and CompTIA and is a recognized member of the Microsoft MVP community.

18 comments

  • Interesting. I didn't know Windows had one built in. I would have gone with Virtualbox or VMware but I'll give it a try now. Nice comment box too.

  • For Windows 10, Pro, Enterprise, and Education versions support Hyper-V.

  • has been native to Windows since Windows 8

  • What kind of graphics does Hyper-V support independent of the system GPU or does it use @n emulated GPU like vbox and VMware?

    (Video) Hyper-V - Creating a Linux Virtual Machine on Windows 10 using Hyper-V - Ubuntu 20.04 LTS
  • Isn't it just Hyper V Pro?

  • More specifically, it's available in every Windows 10 SKU except the Home edition... Although the article doesn't say so.

  • Handy refresher, I think it should be noted that Windows 10 Home doesn't support Hyper-V :).

  • I remember burying the Hyper-V option to virtualize Linux very deep due to the lack of fullscreen support and I couldn't connect devices like VMware or Virtual Box "directly" to the VM. Then I gave up Windows 10 and am now running virtualized Windows Server 2016 on VMware on Linux. So far the best option.

  • Exactly. We only use Hyper-V at work (network techs) and it's terrible with Linux unless you're installing next-gen Ubuntu or something. Linux distributions that are actually used in enterprise environments (Red Hat, Centos, etc.) don't work well with it. Keep window virtualization within Linux and save yourself the headache.

  • supports full screen, even on Linux VMs.

  • You are now in full screen mode - unfamiliar with external devices, never tried

  • You have the full screen option

  • I haven't used Windows as my primary operating system in years, so I don't know.

  • I really enjoy Hyper-V. I now have 3 VMs running:
    1. The W10 Insider Information
    2. Linux-Menta
    3. Elementary OS I've also tried Fedora and other distributions: some work fine and some don't. Note: I'm a home user, I don't know if that's enough for a professional environment.

  • I love linux!!!

  • I came here to check if there is sound available on Linux on Hyper-V. Since you don't specifically mention it, I'm guessing the answer is still no. You get no sound from your Hyper-V Linux installations.
    From memory, changing the screen resolution requires changing the grub configuration.

  • This is exactly why I use VirtualBox. I have W10Pro but Hyper-V is off. I need as much experience with virtual machines as possible.

  • I just tried this and selected a generation 2 VM which wouldn't boot the ISO.
    I changed it to generation one and now it's installing.
    In windows - 1903 - 18875.1000
    with a desktop version Ubuntu 18.10.

    (Video) Run Linux on Windows using Hyper-V!

FAQs

How to create a Linux Hyper-V virtual machine in Windows 10? ›

Windows 10 Fall Creators Update (Windows 10 version 1709)
  1. Open Hyper-V Quick Create from the start menu.
  2. Select an operating system or choose your own by using a local installation source. If you want to use your own image to create the virtual machine, select Local Installation Source. ...
  3. Select "Create Virtual Machine"
Apr 25, 2022

How to create a Linux virtual machine in Hyper-V? ›

Using Quick Create
  1. Enable Hyper-V as described above.
  2. Open 'Hyper-V Manager' by: ...
  3. On the 'Actions' pane click 'Quick Create' and the Quick Create tool will open.
  4. Select a version of Ubuntu from the versions on the left. ...
  5. Click 'Create Virtual Machine' and wait for the VM image to be downloaded.
Nov 4, 2020

Can you run a Linux VM on Hyper-V? ›

Hyper-V can run not only Windows but also Linux virtual machines. You can run an unlimited number of Linux VMs on your Hyper-V Server because the majority of Linux distributions are free and open source.

How to fix not enough memory in system to start virtual machine in Hyper-V? ›

To fix the Not enough memory in the system to start the virtual machine error in Hyper-V, you need to assign less amount of RAM for the virtual machine. For that, right-click on the virtual machine and select the Settings option. Then, switch to the Memory tab and enter a lower amount of RAM.

How to set up a Linux VM on Windows? ›

Install Any Linux Distro in a Virtual Machine on Windows!
  1. Download the free VMware Workstation Player.
  2. Install, and restart Windows.
  3. Create and configure your virtual machine.
  4. Install Linux in the virtual machine.
  5. Restart the virtual machine and use Linux.
Sep 21, 2020

How to create Ubuntu VM in Hyper-V? ›

Using Quick Create

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.

Videos

1. How To Install Kali Linux on Hyper-V | Kali Linux Hyper V
(GEEKrar Guides)
2. Install Kali Linux on your Windows 10 PC with Hyper-V
(PhasedLogix IT Services)
3. Windows Hyper-V Virtual Machine Tutorial
(Kevin Stratvert)
4. How to create an ubuntu virtual machine on windows 10 using hyper-v
(techs2support)
5. Configure the RHEL Virtual Machine with Hyper-V in Windows 10
(Tech Forum)
6. How to Create Free Virtual Machine on Hyper-V with Free Windows 10?
(WindowsChimp)
Top Articles
Latest Posts
Article information

Author: Jamar Nader

Last Updated: 05/29/2023

Views: 6446

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.