+ Post New Thread
Results 1 to 12 of 12
How do you do....it? Thread, Creating a MS Active Directory test environment in Technical; How do you do it? I want to replicate my Active Directory environment - complete with all of the data ...
  1. #1


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Creating a MS Active Directory test environment

    How do you do it?
    I want to replicate my Active Directory environment - complete with all of the data and use it in an isolated test environment.
    What's the best way to do this?Is there a standard MS tool for this?

    I was tempted to create a new member server, DCPromo it and then take it offline - but I'm sure that cleaning up the mess afterwards would be non-trivial, besides I'd like to keep the name of the DC. Could I just use VMWare to replicate the machine, export it and run on a separate box?
    Any gotchas (other than it accidentally going back on the original domain)?

  2. #2

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    5,948
    Thank Post
    583
    Thanked 1,018 Times in 784 Posts
    Blog Entries
    15
    Rep Power
    464
    P2V would probably be the quickest way of doing it. Either just keep it off network or dont add networking ability to the VM until you've altered the settings.

  3. #3

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,190
    Thank Post
    13
    Thanked 226 Times in 216 Posts
    Rep Power
    66
    I have just got a VM built up on my PC called a new domain and a couple of clients connected to it and it does the job for testing things.

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by MatthewL View Post
    I have just got a VM built up on my PC called a new domain and a couple of clients connected to it and it does the job for testing things.
    I really need the live test data with thousands of users/computers.

  5. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by synaesthesia View Post
    P2V would probably be the quickest way of doing it. Either just keep it off network or dont add networking ability to the VM until you've altered the settings.
    Can I run P2V on a virtual machine then?

  6. #6

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    5,948
    Thank Post
    583
    Thanked 1,018 Times in 784 Posts
    Blog Entries
    15
    Rep Power
    464
    Ah, sorry didn't see t was already a VM. Just copy it over to another box/hypervisor then, stick with VMWare and you shouldn't have to do any conversion - if you do though, VMWare converter will do it all for you.

  7. Thanks to synaesthesia from:

    CyberNerd (2nd June 2013)

  8. #7


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Thanks. I'll give that a try.

  9. #8


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    That worked pretty well.
    For reference I did:
    Code:
    qemu-img convert /pathtovmdkfile.vmdk convertedbinfile.bin
    then
    Code:
    VBoxManage convertdd convertedbinfile.bin convertedvdifile.vdi
    Then I started virtualbox. Stripped the SATA controller and added an IDE controller.
    booted to safemode, installed the virtualbox drivers and it all worked.

  10. #9
    Chris_'s Avatar
    Join Date
    Jul 2010
    Location
    UK
    Posts
    676
    Thank Post
    131
    Thanked 112 Times in 95 Posts
    Rep Power
    43
    What do you use for backups? I've used Veeam to restore my DC in to a sandboxed environment. Gives me a good chance to test the backups

  11. #10


    Join Date
    May 2009
    Posts
    3,002
    Thank Post
    265
    Thanked 795 Times in 602 Posts
    Rep Power
    289
    @CyberNerd. It's worth considering changing the domain name and/or making sure you have some other means of making sure you are running scripts against the test rather than the live domain. It can be too easy if you happen to be working with both, to lose track and start running test scripts against the production server.

  12. #11


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    It's ok. I'm only running it on a laptop at home for testing out some ldap user creation scripts.

  13. #12


    Join Date
    May 2009
    Posts
    3,002
    Thank Post
    265
    Thanked 795 Times in 602 Posts
    Rep Power
    289
    It always *starts* like that!

SHARE:
+ Post New Thread

Similar Threads

  1. Cannot create users in Active Directory
    By WithoutMotive in forum Windows
    Replies: 17
    Last Post: 6th February 2009, 11:20 AM
  2. Active Directory-Script for Creating Bulk Users
    By calapso in forum How do you do....it?
    Replies: 8
    Last Post: 14th January 2009, 06:32 PM
  3. Create Folder At Logon: Active Directory
    By DaveP in forum Windows Server 2008
    Replies: 3
    Last Post: 3rd December 2008, 06:37 AM
  4. Replies: 26
    Last Post: 19th May 2008, 11:54 PM
  5. Setting up test scenario on Server 2003/Active Directory/GPO
    By tosca925 in forum How do you do....it?
    Replies: 20
    Last Post: 24th January 2006, 11:38 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •