Moving a Hyper-V Virtual Machine from a Domain-Joined Host to a Non-Domain-Joined Host

Jairo Javier Baleta Cali 286 Reputation points
2025-05-12T15:25:47.7366667+00:00

Good morning.

Greetings

I'm trying to move a Hyper-V virtual machine (Active Directory Domain Controller) on a Windows 10 host that is running an Active Directory domain to a non-domain-joined Windows 11 host. The steps are:

  • Export the virtual machine from the Windows 10 Hyper-V host.
  • Import the virtual machine from the Windows 11 Hyper-V host.

The virtual machine exports successfully to the Windows 11 Hyper-V host. However, when trying to create users in Active Directory Users and Computers, it throws the error: Windows cannot create the object xxxx because: The directory service was unable to allocate a relative identifier.

error

How can I move the virtual machine to the Windows 11 Hyper-V host so I can create users?

I hope you can help me.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Henry Mai 1,965 Reputation points Independent Advisor
    2025-05-13T16:14:25.62+00:00

    Hi, I'm Henry! I will help you with this.

    This is a classic issue when a Domain Controller (DC) cannot contact the RID Master FSMO role holder, or if it is the RID Master itself and has issues. Each DC needs a pool of Relative IDs (RIDs) to create new security principals (users, groups, computers).

    Since you've moved the VM, the most likely cause is a networking issue on the guest VM on the new Windows 11 host, preventing it from either functioning correctly as the RID Master or contacting the RID Master (if there are other DCs, though your description sounds like this might be the only one). Before troubleshooting, you can reference these links to check for existing issues

    Below are some steps for troubleshooting:

    1. Check Network Configuration of the VM on the Windows 11 Host:
    • Virtual Switch:
      • Open Hyper-V Manager on the Windows 11 host.
      • Go to the settings of your imported DC virtual machine.
      • Under "Network Adapter," ensure it's connected to a virtual switch that provides the necessary network connectivity.
        • If this DC is meant to be isolated for a lab, an "Internal switch" might be fine, but you need to ensure the DC's IP configuration is self-consistent.
        • If it needs to talk to other machines (even potentially other DCs in the future or clients), ensure the vSwitch is configured correctly (e.g., "External" and bound to a physical NIC if it needs outside access, or a correctly configured "Internal" or "Private" switch).
    • IP Configuration within the DC VM:
      • Log in to the DC virtual machine.
      • Open Command Prompt or PowerShell as an Administrator.
      • Run ipconfig /all.
        • IP Address: Is it set correctly? If it was static, is that IP still valid/non-conflicting in the new virtual network environment?
        • Subnet Mask: Correct?
        • Default Gateway: Correct for its new virtual network? (May not be needed if it's purely internal and only talking to itself/other VMs on the same vSwitch).
        • DNS Servers: This is CRITICAL for a DC.
          • If this is the ONLY DC in the domain: Its primary DNS server must be its own IP address (e.g., if its IP is 192.168.1.10, DNS should be 192.168.1.10) or 127.0.0.1. It should not point to an external DNS server as primary.
          • If there are other DCs (unlikely from your description): It should point to another reliable AD DNS server first, then itself as secondary, or vice-versa.
      • Correct any misconfigurations in the Network Adapter properties within the VM.
      • Try pinging its own IP address: ping <DC_IP_Address>
      • Try pinging 127.0.0.1
    1. Check DNS Resolution within the DC VM:
    • Still within the DC VM's command prompt:
      • nslookup <your_domain_name> (e.g., nslookup mylab.local)
      • nslookup <dc_hostname>
      • These should resolve correctly to the DC's IP address(es). If not, your DNS server service on the DC might not be running or configured correctly, or the client resolver settings (see step 1) are wrong.

    Let me know if any of these solutions work for you


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.