Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024
in A, Blog, Hyper-V, VMware
0
ADVERTISEMENT

Table of Contents

Running Hyper-V and VMware Workstation on The Same Machine

Running VMware Workstation on a Hyper-V enabled host can be challenging because Hyper-V and VMware Workstation both need to use the hardware-assisted virtualization features of your CPU.

For example, we must enable the nested virtualization on an Ubuntu VM on VMware Workstation to install Docker. When starting the VM, you would get the following error, and the VM cannot be started.

uuxVciOim7Eap355aTvk92RcHONQpwdbl4MRUVz9g4zpNR5BX75zwRRw2xWJ

If you don’t want nested virtualization on VMware VMs, it works without any problems. You can run Hyper-V or Windows Sandbox on the same computer with VMware Workstation.

You need to remove Hyper-V or Windows Sandbox in order to run VMware with nested virtualization. But instead of uninstalling Hyper-V every time you would want to run a nested VM inside VMware Workstation, you could play with the following options:

  • Disable Hyper-V (without uninstall): bcdedit /set hypervisorlaunchtype off
  • Enable Hyper-V (no VMware nested virtualization): bcdedit /set hypervisorlaunchtype auto

Switching between these two commands should prevent the launch of Hyper-V when you want to run a nested VM inside Workstation temporarily and allow you to run Hyper-V when you don’t need nested VMs inside Workstation.

Disable Hyper-V (without uninstall)

In this mode, you:

  • Can run VMware with nested virtualization.
  • Cannot run any Hyper-V VM.
  • Cannot start Windows Sandbox because it’s based on Hyper-V.
  • Cannot start WSL 2 (based on Virtual Machine Platform).

Steps to enter this mode:

1. Right click on the Windows Start icon then open PowerShell (Terminal) as administrator.

F97dR5kNnab8C8NsJnfWkda27ftRadn5IJnY1nZ1irxBW31MEzcJYn0PvEc3

2. Run the below command to disable Hyper-V without uninstall it.

bcdedit /set hypervisorlaunchtype off
F97dR5kNnab8C8NsJnfWkda27ftRadn5IJnY1nZ1irxBW31MEzcJYn0PvEc3

3. Restart the computer.

Restart-Computer

After the computer restarted, you can run VMware VMs with the nested virtualization enabled.

sbM0aIzfP5W3BErVjgIm4fLise5Lk3L2nGJm4J4TB5XCQOttA7MzxgOxLM3t

But you cannot run Hyper-V VM or start WSL 2.

6jDWQ5BnUehbw56TYMdkEhEZTx8HbArb3dKFVCwDOVAhCNEmhnks2frVWbiO
sATCRG5DJg8pZGhx9iefLxAkvJNwk6XjbCgJeRUwgRCL5HnPXpOfkak0q952

Enable Hyper-V (no VMware nested virtualization)

In case you finish testing with VMware, you can switch back to the Hyper-V enabled mode.. In this mode, you:

  • Can run VMware VM without nested virtualization.
  • Can run Hyper-V VM.
  • Can start WSL 2.
  • Can start Windows Sandbox.
  • Cannot start VMware VM with nested virtualization enabled.

Steps to enter this mode:

1. Right click on the Windows Start icon then open PowerShell (Terminal) as administrator.

2. Run the below command to disable Hyper-V without uninstall it.

bcdedit /set hypervisorlaunchtype auto

3. Restart the computer.

Restart-Computer

Create a batch file

You need to frequently switch between two modes, so you can create a batch file to do it more quickly. Anytime you need to switch to another mode, simply run the batch file as administrator.

FlNXkeGpi3sro9vtV7yKEBZ2jo2EMiqOJzTO9LVhdllYstLx2TU8EsygvaeJ

If you want to restart the computer automatically, you can add the below command into your batch file.

shutdown /r /t 1

Conclusion

The VMware Workstation does not support running with nested virtualization enabled on top of other hypervisors. The downside of this method is that you need to restart your computer every time you switch to another mode.

ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Uninstall All Autodesk Products At Once Silently

Next Post

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory