How to Create a Linux Virtual Machine Inside a Windows Virtual Machine Using Hyper-V

How to Create a Linux Virtual Machine Inside a Windows Virtual Machine Using Hyper-V

Joseph Lv12

How to Create a Linux Virtual Machine Inside a Windows Virtual Machine Using Hyper-V

Virtual Machines enable you to experience multiple operating systems on a single system while keeping them isolated from the host OS. You must have tried creating virtual machines to try out a new OS you don’t want to install directly. But have you ever tried using Hyper-V inside a virtual machine?

Hyper-V is Windows inbuilt hypervisor that allows you to create virtual machines and run them. But it is also possible to use Hyper-V inside a VMware Windows virtual machine. So, you can create a Hyper-V virtual machine inside a VMware virtual machine and run it without any issues. Here’s how to do it.

vMix Pro - Software based live production. vMix Pro includes everything in vMix 4K plus 8 channels of Replay and 8 vMix Call
This bundle includes Studio 200 for vMix from Virtualsetworks, HTTP Matrix 1.0 automation scheduler, and 4 introductory training videos from the Udemy vMix Basic to Amazing course.

The Prerequisites for Running a Linux Virtual Machine Inside Hyper-V

Firstly, you will need a Windows virtual machine that is completely functional inside VMware. We would suggest Windows 10 or 11 virtual machines for this project. Moreover, you must pick either Windows Pro or Enterprise edition because Hyper-V isn’t available for Windows Home edition.

Make sure to dedicate an adequate amount of hardware resources to the virtual machine. The reason behind this is that you will try to run a virtual machine inside a virtual machine. So, the Windows virtual machine can dedicate only a portion of its resources to running a Linux virtual machine using Hyper-V. We tested this using a Windows 11 system with 16GB of RAM and an eight-core AMD processor.

Also, update the VMware Workstation Player to the latest version before you begin the installation method.

How to Create a Linux Virtual Machine Inside Windows Virtual Machine Using Hyper-V

We will break the steps into three parts. Firstly, you must enable the virtualization features for the Windows virtual machine. Then you need to enable Hyper-V on this virtual machine. Lastly, you need to create a Linux virtual machine using Hyper-V.

1. Enable Virtualization for Windows Virtual Machine in VMware

To enable Virtualization, do as follows:

  1. Launch the VMware app on your system. Click on the Windows virtual machine you want to use.
  2. Virtual machine details will pop up on the right side. Click on theEdit Virtual Machine settings option.
  3. TheHardware tab will open by default. Click on theProcessors option.
  4. Locate the Virtualize engine section and click onVirtualize Intel VT-x/EPT or AMD-V/RV option. Enable Virtualization for Windows Virtual Machine in VMware
  5. Click on theOK button to apply changes.

Virtualization features are now active for the above Windows virtual machine. Next, you need to install Hyper-V.

2. Install Hyper-V on the Windows Virtual Machine

To install Hyper-V on the VMware Windows virtual machine, repeat the following steps.

  1. Launch the VMware app on your system. Double-click on the Windows virtual machine to boot it up.
  2. Once you boot to the desktop, press theWin + R key tolaunch the Run command box .
  3. Typeappwiz.cpl and press the enter key.
  4. The programs and features window will launch. Click on theTurn Windows Features on or off option.
  5. Scroll down and click on theHyper-V checkbox in the Windows Features list. Install Hyper-V on the Windows Virtual Machine
  6. Click on theOK button to install the feature on your system.
  7. Restart your system to apply changes when the installation completes.

Hyper-V is now active on your Windows virtual machine. Next, you need to create a Linux virtual machine it.

3. Create a Linux Virtual Machine Using Hyper-V

The last piece of the puzzle is to create a Linux virtual machine inside the Windows virtual machine using Hyper-V. You can pick any Linux distribution that you want. We will go with Ubuntu for this experiment. You have to download the Ubuntu ISO file inside the virtual machine from theUbuntu website before starting with the steps.

To create an Ubuntu virtual machine, do as follows:

  1. Boot up the Windows virtual machine. Press theWin key and type Hyper-V manager. Launch the app.
  2. Navigate to the right-hand side section and click onNew > Virtual Machine .
    Create a Linux Virtual Machine Using Hyper-V 1
  3. Click on theNext button. Enter the name of the virtual machine and click onNext .
  4. Click on theGeneration 1 radio button and click on Next.
  5. Keep theStartup Memory as2GB and enable theUse Dynamic memory for this virtual machine option. Create a Linux Virtual Machine Using Hyper-V 2
  6. Then, click onNext button and select theDefault switch option in the Configure Networking section.
  7. Click on theCreate a virtual hard disk option and allocate20GB to the virtual hard disk. Move to the next section. Epubor Ultimate for Mac:Helps you read books anywhere, including the best eBook Converter + eBook DRM Removal functions. Create a Linux Virtual Machine Using Hyper-V 3
  8. Pick theInstall an operating system from a bootable CD/DVD-ROM option located under the Installation options section. Select the Ubuntu Image file (.iso) you downloaded before beginning this step.
    Create a Linux Virtual Machine Using Hyper-V 4
  9. Click on theNext button and review the virtual machine configuration. Then, click on theFinish button to create the virtual machine.

Now that the virtual machine is ready, it’s time to get Ubuntu up and running:

  1. Select the newly created virtual machine in the list and click on theStart option to launch the virtual machine.
  2. Ubuntu setup will launch. Select theInstall Ubuntu option and proceed with the installation.
  3. Click onMinimal Installation and uncheck theDownload updates while installing Ubuntu option.
  4. Then, pick theErase disk and install Ubuntu option and click on theInstall Now button.
  5. Select your geographical location and enter your username and password. Then, click on theContinue button.
  6. Wait for the installation to complete. It may take longer if you have a SATA HDD installed on your system.
  7. The installer will prompt you to restart the system. Click on theRestart Now button.
    Ubuntu Virtual Machine Running Using Hyper-V

The virtual machine will boot to the Ubuntu desktop. You can use Ubuntu and notice that the system runs fine inside Hyper-V just like it does on any other virtualization software.

A Few Things to Remember

Creating a virtual machine inside a virtual machine is possible. But you have to remember that the underlying configuration of the host system must be such that it can run a virtual machine inside a virtual machine without any issue. If you attempt this experiment on a low-end system with 4GB RAM and a dual-core processor, it will choke the system.

So, you need to use a system that can devote ample hardware resources to the Windows virtual machine. Only, then you would be able to use Hyper-V and create a Linux virtual machine and allocate run it without any issues. After you try our Ubuntu using Hyper-V, you can power off the virtual machine. Or you can take the extra step and delete the virtual machine from Hyper-V Manager. It will free up a lot of space inside the Windows virtual machine.

Also, uninstall the Hyper-V feature if you don’t need it any further in your Windows virtual machine. Check out our guide onhow to disable or remove Hyper-V in Windows 11 for more information.


EmEditor is a fast, lightweight, yet extensible, easy-to-use text editor, code editor, CSV editor, and large file viewer for Windows. Both native 64-bit and 32-bit builds are available, and moreover, the 64-bit includes separate builds for SSE2 (128-bit), AVX-2 (256-bit), and AVX-512 (512-bit) instruction sets. New versions support AI-assisted writing.

Use Virtual Machine Inside a Virtual Machine With Hyper-V

VMware supports hardware virtualization and can extend the feature to its virtual machines. VirtualBox is yet to catch up in this aspect because Hyper-V doesn’t work in a VirtualBox virtual machine as of writing this post. Make sure that you turn off virtualization features for the Windows virtual machine when you no longer need it.

  • Title: How to Create a Linux Virtual Machine Inside a Windows Virtual Machine Using Hyper-V
  • Author: Joseph
  • Created at : 2024-08-08 06:04:45
  • Updated at : 2024-08-09 06:04:45
  • Link: https://windows11.techidaily.com/how-to-create-a-linux-virtual-machine-inside-a-windows-virtual-machine-using-hyper-v/
  • License: This work is licensed under CC BY-NC-SA 4.0.