I have a single physical host, running 2008 R2 with Hyper-V, all fully updated. On that host I am running 3 clients, a DC, a web server and a SQL Server 2008 R2 SP1. All are running on Windows Server 2008 R2, again all fully patched.
Generally all is fine, but sometimes and not repeatably, when I shutdown the host properly, which suspends the Clients, when it all comes up again, SQL Server is no longer running and the IIS App Pool I am running the website in needs to be told which account to run in again!
Any ideas!?
Colin,
This is most certainly a permissions issue. Even though the machines are saved they cannot contact the DC when they come back online. As a rule of thumb you can virtualize DCs but you should really follow MSFT's best practices as it is advisable to run a separate physical DC for failover reasons. For instance, using clustering and other services on the host machine that rely on a DC will all fail because the guest DC vm has not started.
Unfortunately if you are trying to handle recoveries from a failure there is no way to ensure proper automatic startup, where the machines boot in a specific order. I found a couple of solutions:
Looks like a domain authentication problem. Make sure you configure Hyper-V to start up the DC before the other servers, or they will not be able to contact their domain when they start, and will experience all sort of authentication issues.