Tech: Time Synchronization in Hyper-V

Posted by Kenneth van Surksum   |   Wednesday, November 24th, 2010   |  

Ben Armstrong, Virtualization Program Manager at Microsoft posted an interesting article about how time synchronization works in Hyper-V.

Concerning time synchronization there are a couple of problems, the first one is related to virtual machines which lose track of time. This problem is related to the fact that most operating systems use the hardware clock (RTC) at boot to determine time, and once booted based on that time have a mechanism which calculates time. Problem is that this calculation is based on assumptions which aren’t valid for virtual machines, this can cause a drift in time calculations.

This is where the time synchronization integration services come in. The time synchronization integration services gets the time from the management OS en sends it to the guest OS, making it available as a Windows time provider.

clip_image002

The second problem is related to virtual machines and snapshots which have the wrong time when they are restored. VM’s and snapshots are restored with the time they had when they were saved. Even though the correct time is reported in the hardware clock, the guest OS isn’t aware of that at that time. For this scenario, the integration services detects the correct time and makes it available by issuing a time change request in the guest OS.

The third problem is related to the situation where there is no correct RTC value when the VM is started. VM’s use the time from the management operating system as their RTC, but this time could be in a different time zone, which the guest OS doesn’t take into account. In order to mitigate this, the time synchronization integration services does a initial user mode set of the time when it loads for the first time, making sure time is corrected as quickly as possible.

Based on the knowledge provided in the problem scenario’s Ben Armstrong then further answers some common questions related to these scenarios.

"…Question #3 – Can’t you use UTC time in the RTC so that the correct time is established when the virtual machine boots?

UTC (which is the computer techy version of saying GMT) time would solve this problem nicely with only one problem. Windows does not support UTC time in the BIOS (Linux does). So while this would solve the problem for our Linux running user base – the fact of the matter is that most of our users run Windows – and this would not work for them…"


Labels: ,

blog comments powered by Disqus


virtualization.info Newest articles
VMware acquires Wanova

May 23rd, 2012

Yesterday VMware announced the acquisition of Wanova Inc. a company whose main product is called Mirage.
Mirage is a centralized management and recovery solution for physical desktop images over the…

Paper: VMware vSphere Metro Storage Cluster Case Study

May 23rd, 2012

Yesterday VMware published a paper focused on VMware vMSC (vSphere Metro Storage Cluster), a new configuration within the VMware Hardware Compatibility List intended for environments where disaster/downtime avoidance is a…

EMC acquires Syncplicity

May 22nd, 2012

Yesterday, during its annual conference in Las Vegas, EMC announced the acquisition of Syncplicity, a cloud-storage privately held startup founded in 2008 and based in Menlo Park, California.
Terms…

Release: Oracle VM Server for x86 3.1

May 21st, 2012

On May 18th Oracle announced the general availability of version 3.1 of its x86 enterprise virtualization solution VM Server.
This release follows 3.0 announced on August 24th 2011.
All the new…

VMware shows View 5.1 performance improvements

May 21st, 2012

In this post, published on May 18 in VROOM! Blog, the VMware’s Performance Team presented some of the most significant enhancements and optimizations brought to Teradici‘s PCoIP protocol in the…

NVIDIA introduces World’s Firs Virtualized GPU

May 17th, 2012

On May 15th NVIDIA unveiled the NVIDIA® VGX™ platform that will be available later this year through NVIDIA’s hardware OEM and VDI partners.
This new platform promises to deliver…

Microsoft announces Assessment and Planning Toolkit 7.0 Beta Program

May 17th, 2012

Microsoft announced this week the new Beta version of its capacity planning tool Microsoft Assessment and Planning (MAP) 7.0 Beta.
The Beta program opened on May 15th and the review…

VMware announces vFabric Suite 5.1

May 15th, 2012

Today VMware announced VMware vFabric Suite 5.1, expected to be generally available in Q2 2012.
vFabric Suite 5.1 includes vFabric Application Director, to automate the deployment and management of vFabric…

VMware CTO talks about R&D plans for the future

May 15th, 2012

On April 4 Stephen Herrod, VMware’s CTO, has attended, as guest speaker, at a VMUG meeting in Italy.
One of the key point of the speech, documented in one hour-long…

Citrix Hosted Server VDI Tech Preview

May 14th, 2012

Last week Citrix announced a new tech preview for Hosted Server VDI technology that allows cloud providers to leverage Microsoft SPLA to host VDI-style desktops obtaining a pay-as-you-go monthly subscription licensing…

Release: Atlantis ILIO Diskless VDI 3.2

May 11th, 2012

On May 7 Atlantis Computing announced the general availability of its Atlantis ILIO Diskless VDI 3.2, this product, tailored in particular for VMware View 5.1, enables virtual desktops deployment…

Citrix unveils Project Aruba

May 11th, 2012

On May 7 Citrix announced a technology preview of Project Aruba that extends Citrix VDI all-in-one proposal for the SMB market, VDI-in-a-Box, with personal vDisk technology.
VDI-in-a-Box, inherited from Kaviza…

Cloud Sidekick announced Early Access release of Cato EE

May 10th, 2012

On May 7 Cloud Sidekick announced the Early Access Program release of Cato Enterprise Edition (EE) which extends the Community Edition (CE) with Storm Deployment Automation and support for…

Release: VMware vCenter Infrastructure Navigator (VIN) 1.1

May 9th, 2012

On April 26 VMware announced the general availability of VMware vCenter Infrastructure Navigator (VIN) 1.1, previously introduced as a part of vCenter Operations Management Suite.
VIN automatically detects, discovers and…

 
Monthly Archive