Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Virtualization / VMWare / How to Install Hyper-V Role in Windows 10 VM under VMWare ESXi

August 8, 2018 Hyper-VVMWareWindows 10

How to Install Hyper-V Role in Windows 10 VM under VMWare ESXi

One of the test tasks required to install Hyper-V virtualization role on Windows 10 virtual machine (applicable to Windows Server 2016 as well) running on a VMWare ESXi host. It meant I need to provide nested virtualization of Hyper-V on VMWare ESXi.

First of all, a couple of words about nested virtualization. Nested Virtualization allows to run a hypervisor inside of a virtual machine running on another hypervisor. In Hyper-V, full support for nested virtualization appeared in Windows Server 2016 / Windows 10 Anniversary Update. In VMWare this technology has been working for a long time (appeared in ESXi 5.0).

I have a VMWare ESXi 6.0 virtualization host running a Windows 10 1709 virtual machine.

When trying to install a Hyper-V hypervisor role (the component is called Hyper-V Hypervisor) from the Control Panel -> Programs & Features -> Turn Windows features on or off, this option turned out to be inactive. The reason is as follows:

Hyper-V cannot be installed: The processor does not have the required virtualization capabilities

Hyper-V cannot be installed: The processor does not have the required virtualization capabilities

To enable nested virtualization for this VM with Windows 10 guest OS, open the virtual machine settings using vSphere web client (The VM must be off). In the CPU section check the option “Expose hardware assisted virtualization to the guest OS” (This option is not available in the vCenter C# thin client).

Expose hardware assisted virtualization to the guest OS

Note. In previous ESXi versions that don’t have this option and in the desktop VMWare Workstation you can enable nested virtualization by adding the following options into the configuration file of the virtual machine (*.vmx).

hypervisor.cpuid.v0 = “FALSE”
mce.enable = “TRUE”
vhv.enable= "TRUE"

mce.enable = “TRUE”

In the VMware vSphere client, these options can be added in the VM settings: Options -> General -> Configuration Parameters. Add two new row with the same parameters (Add Row).

hypervisor.cpuid.v0

Start your Windows 10 virtual machine and try to install the Hyper-V role again. Now Windows doesn’t detects that it is running inside another hypervisor, but a new error appears:

Hyper-V cannot be installed: the processor does not support second level address translation (SLAT).

It means that besides supporting the virtualization, the VM processor must support SLAT technology, i. e. virtualization of memory pages and their direct control by the guest OS. In Intel terms, this feature is called Extended Page Tables (EPT), and AMD calls it Rapid Virtualization Indexing (RVI).

Hyper-V cannot be installed: the processor does not support second level address translation (SLAT).

Make sure that the processor (vCPU) supports SLAT using the following command:

systeminfo

The command in Hyper-V Requirements section should return that there is no SLAT support:

Second Level Address Translation: No

Second Level Address Translation: No

In this case, you need to change the parameters of the virtual machine processor. In CPU/MMU Virtualization section of the vSphere web client, select Hardware CPU and MMU.

Hardware CPU and MMU option in vmware vm

In the thin vSphere client, the same option is located in the CPU/MMU Virtualization section of the Options tab and called ‘Use Intel VT-x/AMD-V for instruction set virtualization and Intel EPT/AMD RVI for MMU virtualization’.

Use Intel VT-x/AMD-V for instruction set virtualization and Intel EPT/AMD RVI for MMU virtualization

Start Windows 10 virtual machine and make sure that its processor supports SLAT now. Then you can install all components of the Hyper-V role and run other virtual machines inside this Windows 10 VM.

0 comment
1
Facebook Twitter Google + Pinterest
previous post
Windows XP Can’t RDP to Windows 10 / Server 2012R2/2016 RDS
next post
The WinRM client received an HTTP bad request status (400)

Related Reading

How to Run Program without Admin Privileges and...

March 24, 2023

Configure Network Settings on Windows with PowerShell: IP...

March 24, 2023

Attaching Host USB Devices to WSL or Hyper-V...

March 20, 2023

Print Screen Key Not Working in Windows

March 17, 2023

Send-MailMessage: Sending E-mails with PowerShell

March 14, 2023

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Run Program without Admin Privileges and Bypass UAC Prompt?

    March 24, 2023
  • Configure Network Settings on Windows with PowerShell: IP Address, DNS, Default Gateway, Static Routes

    March 24, 2023
  • Exchange Offline Address Book Not Updating in Outlook

    March 21, 2023
  • Attaching Host USB Devices to WSL or Hyper-V VM

    March 20, 2023
  • Sending an E-mail to a Microsoft Teams Channel

    March 17, 2023
  • How to Restore Deleted Users in Azure AD (Microsoft 365)?

    March 16, 2023
  • Fix: Remote Desktop Services Is Currently Busy

    March 15, 2023
  • Send-MailMessage: Sending E-mails with PowerShell

    March 14, 2023
  • Clear Cache and Temp Files in User Profiles on Windows (RDS) with PowerShell and GPO

    March 13, 2023
  • Prevent Users from Creating New Groups in Microsoft 365 (Teams/Outlook)

    March 6, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Windows Server Licensing for Virtual Environments
  • How to Backup Hyper-V Virtual Machines?
  • Configuring Hyper-V Live Migration without Failover Clustering
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top