Synchronising Time: CentOS 5.6 virtualised Hyper-V 2008 R2

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
dhirvin
Posts: 1
Joined: 2011/11/01 12:58:17

Synchronising Time: CentOS 5.6 virtualised Hyper-V 2008 R2

Post by dhirvin » 2011/11/14 15:07:52

Dear fellow users,

We have an instance of CentOS 5.6 running as a virtualised environment on Microsoft Hyper-V 2008 R2.

Is there a way to synchronise the time with the hosting server without refering to our local NTP servers?

The time on hyper-v hosting server is NTP synchronised and correct.

Virtual Microsoft servers all recieve the correct time.

However the virtualised Centos server time is all over the place whether or not synchronised using NTP. We feel NTP should not be used in a virtualised environment as the time should be automatically synchronised wth the hosting server.

Could anyone shed any light on this problem?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Synchronising Time: CentOS 5.6 virtualised Hyper-V 2008 R2

Post by pschaff » 2011/11/16 19:39:22

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

I'm not a Hyper-V user, but I believe what you need are the Hyper-V client drivers; however, unfortunately they seem to be problematic for CentOS-5. There is an [url=http://elrepo.org/tiki/kmod-hyperv]ELRepo kmod-hyperv for EL6[/url] but not for 5, and the latest [url=http://elrepo.org/tiki/kernel-ml]ELRepo mainline kernel[/url] also does not have them. According to the [url=http://lists.elrepo.org/pipermail/elrepo/2011-August/000790.html]announcement[/url]:
[quote]
Please note that the Microsoft Hyper-V client drivers have not been
configured for this update. Due to code changes in these experimental
drivers, they currently do not compile in the linux-2.6.35.14 sources.[/quote]

One forum [url=https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=30474&forum=37]thread[/url] reported success using "divider=10 notsc" on the GRUB kernel line.

A google on [url=https://www.google.com/search?q=hyper-v+OR+hyperv+centos&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&safe=active#pq=hyper-v+centos&hl=en&cp=28&gs_id=7r&xhr=t&q=hyper-v+centos+~synchronize+time+OR+clock&tok=PDreXtNUJogo8Lqei0D4kQ&pf=p&sclient=psy-ab&safe=active&client=firefox-a&hs=ZA7&rls=org.mozilla:en-US%3Aofficial&source=hp&pbx=1&oq=hyper-v+centos+~synchronize+time+OR+clock&aq=f&aqi=&aql=&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=42961cf9303e6fd0&biw=1393&bih=750]hyper-v centos ~synchronize time OR clock[/url] may turn up something else.

Post Reply