Page 1 of 1

Windows 2012 VM's disconnected from domain

Posted: 11. Jun 2015, 18:07
by shri
Hi,
I am new to virtual box so be gentle. My scenario is
1. I am creating a VM with Win2012 Server attached to my company domain.
2. When my colleague copies this VM and logs in using his credentials, he has an issue with Trust relationship and getting kicked out of the domain.
3. However when we log in as admin and remove the machine from domain and rejoin it seems to work.
4.The issue is the VM has the same hostname and it has the same uuid. I have a workaround of changing the hostname and generate ta new uuid using virtual media manager. However since this VM will be tested by many users, is there any other alternative to fix this issue.
Thanks in advance to the help.
Cheers.

Re: Windows 2012 VM's disconnected from domain

Posted: 11. Jun 2015, 18:39
by scottgus1
I believe you can change the hostname and SID of the guest by command line within the guest (note that the SID is an internal ID number generated by the guest OS and not by Virtualbox). Search Microsoft for the proper commands. Distribute your guest in a not-attached-to-the-domain state, run it on the new hosts, run the change-hostname-and-SID script, then attach it to the domain and reboot.

The Virtualbox UUID of the guest won't affect you if you run only one copy of these guests on each of your multiple hosts. If you want to run more than one of these guests on one host, you will have to clone the guest (do this before the guest is attached to the domain). Cloning will set up your new guest with unique UUIDs, which allows more than one to run on one host, but may likely cause reactivation requirements.

Also, be sure you have your licensing ducks in a row....

Re: Windows 2012 VM's disconnected from domain

Posted: 11. Jun 2015, 20:01
by Martin
The only way supported by Microsoft to have cloned Windows Server VMs is to run sysprep after the cloning.
This initializes the required internal ids etc. for the domain to recognise the copy as a different server.