Hyper-V Program Manager
Often I have people ask me about the Domain Controller dilemma. The basic problem is this: if you decide to virtualize all of your servers, how do you handle the domain controllers which control the domain used by your Hyper-V servers? There are a couple of options that you can consider here:
So there you have it. I actually use option 4 for the (albeit small) domain environment that I run in my house and have had no issues. A couple of extra points to make here:
So as I understand your option 4, when the physical server boots up and runs through it's usual windows startup process, it's actually part of a domain where the DC is a virtual machine on the physical server itself?
Since some windows server startup processes (depending on the server roles installed) involve setting up a secure channel with the DC, they could timeout if the virtual DC hasn't started yet.
This wouldn't be a problem if a second virtual DC, running on seperate physical hardware, is available at the time.
But what do you do about spreading the FSMO roles between DC's?
And how do you ensure that if the virtual DC fails, it fails over to another instance?
has more information about running domain controllers in a virtual hosting environment.
This is very interesting, but I'm still wondering why I shouldn't just run the DC on the host OS and save myself a server license?
I'm planning on having 2 Hyper V servers and was just thinking of making them both DC's.
Could you give me some insight why this wouldn't be recomended or what problems I might encounter!
It doesn't save you a license.
In server standard, you don't get a guest license if you are also running services on the host.
Likewise in Enterprise, you have four guests only if you are not running host services.
Should an Additional Domain Controller be talking to an other Additional Domain Controller? If Yes, WHY? There is already a Primary Controller available. and Should all Additional DC be a Global Cataloge Server? If the ADC are in Different Site?
Thanks in Advance...
Thanks Ben for this valuable information. I have opted for option 4 in my private research lab but have issues around NetLogon throwing event id 5719 as it starts before the DC VM starts. For the sake of completeness, event id 5719 logs the following error:
This computer was not able to set up a secure session with a domain controller in domain <xxx> due to the following:
There are currently no logon servers available to service the logon request.
This leads to a delayed start as you might have guessed as seems to be a known behavior. As an attempt to fix this, I tried to set a dependency on VMMS service for the NetLogon service so that the former starts before the latter. Well the startup order works but still NetLogon is fast enough to start before the DC VM actually is up and running. So here are a couple of questions:
(1) Is there an elegant way of ordering these services so that NetLogon waits until the DC VM is up?
(2) If option 4 is a preferred option for small to medium sized environment, then wouldn't it be a good idea for Microsoft to reorder these services (permanently) so that NetLogon respects the presence of HyperV on the box and waits until at least the DC VM is up and running before it could start?
Awaiting your take...
P.S.: Both the Hyper-V host and VM are on Windows Server 2008 R2 Eval.
For option 4 you should also change the time server hierarchy so that the Hyper-V parents obtain their time from upstream NTP servers and not the domain hierarchy. The virtualised domain controllers should then use the Hyper-V hosts as their upstream NTP servers, along with disabling time sync in the domain controller's VM settings. Alternatively the time service configuration can be left alone in the domain controller VMs and the time sync enabled for the VMs.
I think you miss one. 5. Using the Hyper-V host as Domain Controller?
I am having the following problem. We have our Primary AD server hosted AD server offsite, with our backup AD server locally being replicated from the hosted primary. We had a company virtualize our physical backup AD server. We are having some problems adding PC's to the domain. Have to do it manually, sometimes several atttempts. Also a few IP conflict issues, nothing major. Should we promote the virtualized server and then demote back? There seems to be identification issues.
Point 4 is perfect , but was just hoping if any one could elaborate one section d of point 4.
I have tried in my lab , i have a Hyper V CORE server running few virtual machines including a DC (only DC) . Now for some reason DC VM fails to start. In this scenario , i wont be able to manage my Hyper V. RSAT tools or Server Manager will throw a error saying "RPC Server unavailable" . Thats pretty much obvious , considering the DC is down. But then how do i manage my Core machine hyper v from a different server ?
yeah i do use powershell script to start the DC , in case its turned off , but is there any other way ?
Why is Core server so dependent on the DC , that it wont let me even connect remotely to manager my hyper v
Nice post Ben, very helpful.
Can you please suggest the best practice in following scenario on Server 2012 HyperV
2 Host Servers are with 8 Core Cpu,, 128 GB RAM, 4x 1GB Port and 4 x10G Ports with VNXE SAN. Need to configure 4 VMs on each server with Replice and live migration. We are planning domain controller on Virtual Machines (DC1 and DC2) on each host with exchange 2010 . Plz advise
1 Do we keep a third DC on physical host? it will need additional license in that case. ?
2. If we not Join the Host Server on Domain then how live migration and replica will work ?
Any other advise you may have
did your server type is datacenter or enterprices?
It's a great article/tips.
I was planning to install Solarwinds on Windows 2008 R2 Std - 64bit domain controller (physical server) however solarwinds strongly recommends not to install this software (Solarwinds NPM for network device monitoring) on a DC hence thought of configuring Hyper-V on a DC and install 2008 R2 Std edition as a virtual machine and then install Solarwinds software. Is this recommended? or will there be any security flaws? Any suggestion or idea on this would be highly appreciated.