SOLVED

DC and RD Virtualization Host on the same Windows Server 2019 Server

Brass Contributor

I realize that I am performing something unusual, but I'd like to understand the reasons behind failure.
I try to install on a single Windows Server 2019 VM the roles of either Domain Controller and RD Virtualization Host.
I do realize it's an unusual confnguration but I try to perform it for pure testing and self training purposes.
Installing Hyper-v is not an issue as the hypervisor fully supports nested virtualization (I have other VM running Hyper-v).

 

  1. I installed Windows Server 2019 with all the available updates
  2. I installed Active Directory Domain Services
  3. I disabled al the firewalls
  4. I started the installation of remote Desktop Services.
  5. The installation completes successfully but I see that the Hyper-v role is not installed.

 

I'd like to understand the real reasons because my installation fails and, maybe, try to perform a successfull installation.
Can anybody please help?


In the logs I see the following errors ("RD0021.lab21.local" in the fqdn of my VM):

 

  • RD Virtualization Host Configuration Failed on RD0021.lab21.local With Error: Could not add RD0021.lab21.local to the RDS Management Servers group on RD0021.lab21.local.
  • RD Virtualization Host Configuration Failed on RD0021.lab21.local With Error: Could not add the RD Connection Broker server to the TS Virtual Desktop Server settings on the RD0021.lab21.local server.
  • RD Virtualization Host Configuration Failed on RD0021.lab21.local With Error: VmHostAgent on 'RD0021.lab21.local' could not sync the VM objects to CB:'RD0021.lab21.local'. Exception: System.Management.ManagementException: Invalid namespace
    at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.RemoteDesktopServices.Management.Cmdlets.VM.NumberOfObjectsInNamespace(String namespacePath, String query)
    at Microsoft.RemoteDesktopServices.Management.Cmdlets.VM.GetNumberOfVmsOnHyperv(String hostName)
    at Microsoft.RemoteDesktopServices.Management.Cmdlets.AddRDVirtualizationHostCommand.AddRDVH()
  • RD Virtualization Host Configuration Failed on RD0021.lab21.local With Error: Could not configure the migration settings on the RD Virtualization Host server RD0021.lab21.local.
  • RD Virtualization Host Configuration Failed on RD0021.lab21.local With Error: Could not create the virtual switch on the server RD0021.lab21.local.
  • RD Virtualization Host Configuration Completed on RD0021.lab21.local
3 Replies

Do not install other roles on a hyper-v host. This creates unnecessary complications and conflicts.  Better option is to create virtual machines for the various roles.

 

 

@Marius_Roma 

 

Seems like an overly-complicated way of going about setting up the environment.

 

In line with what @Dave Patrick said, but to call out this one very specific scenario: you never install additional roles on a domain controller.

 

Assuming you go ahead with this model, you'd be better off building the top-level hypervisor as a workgroup host and then establishing the domain controller as one of the guests.

 

Anyhow, as far as the errors you've listed go, there's a lot. I get the feeling many are going to be symptoms, not the cause.

 

It pays to remember that nested virtualisation has to be enabled per guest - it's not a once-and-done thing on the hypervisor itself.

 

Have a look at all the pre-requisites in this article (below) as there's more to configure even after you've exposed the virtualisation extensions on the guest. For example, one of your errors relates to creating the virtual switch and in the Microsoft article, you can see there's some action items around enabling MAC address spoofing (or alternatives).

 

Anyhow, have a read and plan the deployment before trying to wing it on the tools.

 

Nested Virtualization | Microsoft Docs

 

Cheers,

Lain

best response confirmed by Marius_Roma (Brass Contributor)
Solution
Do not mix domain controller and RDS host on the same VM, it is really, really not recommended - and not even supported tbh. Create two VM instead.
1 best response

Accepted Solutions
best response confirmed by Marius_Roma (Brass Contributor)
Solution
Do not mix domain controller and RDS host on the same VM, it is really, really not recommended - and not even supported tbh. Create two VM instead.

View solution in original post