Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Specific Hardware Topics > Business & Enterprise Computing

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 14th January 2010, 12:09 PM   #1
oh_noes Thread Starter
Member
 
oh_noes's Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 849
Default Time on Linux (Debian) guest under Hyper-V

Is it expected that Hyper-V sets the BIOS time of the Guest VM as the timezone of the Host Machine? Linux (all variants) and Unix expect the BIOS time to be in UTC and then adjust the $DATE accordingly based on $TIMEZONE/$DST.

This is a problem because I have a VM that could be loaded into anything. ESX, XEN or Hyper-V. ESX and XEN work without a problem. My Linux Guest boots, get UTC BIOS time and adjusts to the end user/application.

However, Hyper-V is bringing up my VM is coming up +/- $TIMEZONE. This is really bad because it's impossible for me cater for all environments and timezones. Even if I set UTC=no in /etc/defaults/rcS ... it's still not the answer because I will need the $TIMEZONE on the VM to match Hyper-V. Which I cannot predict/guess.

For the guys running Hyper-V ... is there an option I can turn "to enable UTC Date in VM BIOS"?

I'm sure others have run into this. Any ideas?
oh_noes is offline   Reply With Quote

Join OCAU to remove this ad!
Old 14th January 2010, 12:15 PM   #2
DavidRa
Member
 
DavidRa's Avatar
 
Join Date: Jun 2002
Location: Sydney
Posts: 2,374
Default

I am not aware of a way to do this. Most of the time Linux/BSD installs ask if the BIOS is UTC or local; if you specify local, it assumes BIOS time matches local time and doesn't offset the time within the Linux system.

In that case, the Linux time would match Hyper-V. Unless you're moving timezones all the time?
__________________
Folding as djr 45,000 Club @ 4,000,000 Points Milestone
Earlier: Folding as djr(at)wamoz(dot)com 20,000 Club @ 250,000 Points Milestone
Blogging at http://www.pdconsec.net/blogs/davidr/
DavidRa is offline   Reply With Quote
Old 14th January 2010, 9:54 PM   #3
mwil7034
Member
 
mwil7034's Avatar
 
Join Date: Jan 2003
Location: Woy Woy
Posts: 597
Default

Doesn't Hyper-v have an ntp-type service or something to sync all the servers to using low level hooks?

vmware uses the vmtools packages to sync the clock to the host from memory.

Understandably during boot the dodgy time could pose issues but ntp-type service or even ntp itself would sort it out once the services are loaded.

I might be way off being late and all but just a suggestion.

Haven't deployed many hyperv installations lately and haven't come across this yet so I dont know what else sorry
mwil7034 is offline   Reply With Quote
Old 15th January 2010, 10:31 AM   #4
oh_noes Thread Starter
Member
 
oh_noes's Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 849
Default

Quote:
Originally Posted by DavidRa View Post
I am not aware of a way to do this. Most of the time Linux/BSD installs ask if the BIOS is UTC or local; if you specify local, it assumes BIOS time matches local time and doesn't offset the time within the Linux system.

In that case, the Linux time would match Hyper-V. Unless you're moving timezones all the time?
UTC=no is fine for most people who want to run a single Linux server inside Hyper-V.

But essentially I have a Virtual Appliance which needs to be started in any Hyper-V environment and it always boots with the wrong time. Obviously I can't assume or even guess what the Host Hypervisor timezone is.

The options I have is basically tell them there Hyper-V server needs to be in UTC, but this isn't possible for the majority of inexperienced windows admins.

Microsoft are fkn stupid so I don't have any options here.
oh_noes is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 7:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!