How to copy/export live domain controllers to a test environment

active-directorybackupdomain-controllerhyper-vimport

Let me explain out scenario:

We have a totally virtualized live production system running all the production VMs in a Microsoft Failover cluster. The interesting VMs for this questions are the Main Domain Controller (SRV-DCA) & Secondary Domain Controller (SRV-DCB).

Now we would like to export/copy these two virtual machines onto a backup server so that we can run some tests on the DCs not on the production environment.

We tried to shutdown SRV-DCA and SRV-DCB on the live servers and did a normal Hyper-V export. Then when the export was ready, I imported the Exported DCs to the backup server using the Hyper-V Import (Register In-place (use existing unique-IDs) and started both VMs on the backup server. When both where started and I tried to open Active Directory users and computers, it was stating that the domain controller could not be found, also I tried to do a "netdom /query fsmo" and it stated that the domain controller could not be found or contacted.

Now what I don't understand is what might have happened during the exports because the VMs were turned off. what other way can I export/copy domain controllers so that I can then run tests on a backup server without giving me such problems?

Best Answer

Assuming that you're keeping the test VMs in a private network what you're trying to do is a totally reasonable and valid exercise.

Your "AD under glass" environment on the backup server should be isolated into a private virtual switch, and everything the AD environment needs to function must be present there. It sounds like you had some kind of name resolution problem when you attempted this the first time. Presumably the two DCs are DNS servers and refer to themselves (and likely each other) as the DNS servers specified in their NIC properties. Since these are the only DCs in your production environment you'll have the FSMOs in the isolated environment.

Get name resolution working properly in your isolated environment and I suspect everything will work fine.

Related Topic