Solved

Advice on setting up time server in hyper-v environment

Posted on 2010-09-03
5
875 Views
Last Modified: 2013-11-06
Our DCs are virtualised within a Win 2008 R2 Hyper-V environment on a network not connected to the internet.  
Does anyone have advice as to best practice for setting up time service?

Currently I manually correct the time on the PDC (virtual) and have group policy set so that all servers and computers look to this pdc to set their time.
I have disabled the Time Integration within HyperV settings - but I seem to have a problem when rebooting the physical host that the PDC is running on. Possibly because the host cannot find the DC when it first starts up, it seems to make up its own time which then pushes to the dc and all other servers.Not sure if the host is getting the time from the bios, which I do keep correcting - but seems to be trailing off quite fast.

In any event I want to prevent the PDC from changing time unless I expressly correct it - as a simple reboot of the host server means the time is changed on all desktops and servers to something up to an hour out!
Any help gratefully received
thanks
0
Comment
Question by:itadminuk
  • 2
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
robbe earned 250 total points
ID: 33597266
First of all you've done the right thing ot disable the time sync. The DC should be the time source for all clients in the network. Second of all you should configure the DC to sync with an ntp server. Here is some more information about that: http://support.microsoft.com/kb/816042

Last but not least: It's not a good idea to join the host in the domain if you are running the DC virtualized. You should consider adding a physical dc to the network if you need that. Otherwise just leave it in a workgroup. For testing purposes you may consider to make the hyper v host a Domain Controller as well.

Greetz,
Robin
0
 
LVL 15

Assisted Solution

by:msmamji
msmamji earned 250 total points
ID: 33603481
robbe is spot on with everything especially with regards to having the Host machine on workgroup when all you DCs are virtualized.

You are wondering why you are still having time sync on the DC VM, despite having disable time synchronization. That is because time synchronization that is done when the VM is started is not overriden by this feature. You must understand that Physical Machine have battery-controlled clock from which the machine gets the time when it starts. There is no such clock in a VM, so when the VM boots, it retrieves it initial time from the host regardless of this setting. This option only controls whether further synchronization will be done or not.

So its not the restart of the Host that is causing this, rather this is caused by the booting of the VM. It boots and takes the initial time from the host and therefore you need to reset the time on the DC. I would suggest Having the Physical DC and making it the PDC to avoid such issue.

Regards,
Shahid
0
 
LVL 6

Expert Comment

by:robbe
ID: 33611599
itadminuk,

Did we answered your question or do you need some more information?

Greetz,
Robin
0
 

Author Comment

by:itadminuk
ID: 33612367
thanks guys for your quick responses. really really helpful. Robbe - I can't configure an ntp server as it's not connected to the network but it does look as though I am going to have to see why the physical host time keeps drifting off.
Also Shahid - that's really answers the question - I didn't realise that the vM would STILL take the time off the host even with integration turned off.
I am now going to investigate whether I can use a physical dc or take the host off the domain and into a workgroup.
thanks guys
0
 
LVL 15

Expert Comment

by:msmamji
ID: 33612799
Can Say it with surety as I have read it in the book, "Mastering Microsoft Virtualization", Chapter 3, Page 104, Heading "Integration Services". Mentioning here for reference

Regards,
Shahid
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every once-in-a-while, when you try to add a XenServer host to the System Center Virtual Machine Manager console, it will generate a certificate error, and the XenServer host will not be added to Virtual Machine Manager: If you are experiencing t…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question