Thin Client and Virtual Machines Thread, timezone: vm guest OS on win2k3 in Technical; This is a bit of an odd one and I suspect I already know the answer but I thought I'd ...
-
2nd October 2007, 09:37 PM #1 timezone: vm guest OS on win2k3
This is a bit of an odd one and I suspect I already know the answer but I thought I'd ask anyways.
Setup:
- win server 2k3 sp2 with vmware server installed
- guestOS ubuntu 7.04 server with LAMP installed
- phpBB2 test install on apache2
The windows server is setup with time correct and automatic correction for DST ticked so it's showing up as having the correct time.
Where it gets weird is that the phpBB2 install is showing time to be an hour extra on. It's almost as if PHP is getting the win2k3 DST adjusted time and interpreting it as GMT and then applying DST all over again.
Probably worth noting that I've written a mod for phpBB2 to properly ID timezones and DST boundaries/rules but that's working fine...
Is this a known "feature"?
-
-
IDG Tech News
-
4th October 2007, 08:44 AM #2 Re: timezone: vm guest OS on win2k3
-
-
4th October 2007, 09:24 AM #3 Re: timezone: vm guest OS on win2k3
I don't know the answer but I also have time problems with the Grandmas LAMP VM (which is just XUbuntu+stuff) showing the wrong time.
It wasn't a real problem since I just use it for testing websites before uploading to real hosts.
Spent 2 mins on it once and just gave up
regards
Simon
-
-
4th October 2007, 09:41 AM #4 Re: timezone: vm guest OS on win2k3
Install VMWare tools in the client OS.
- OR -
Use NTP
-
-
4th October 2007, 09:44 AM #5 Re: timezone: vm guest OS on win2k3

Originally Posted by
Geoff Install VMWare tools in the client OS.
- OR -
Use NTP
Normally that would be a great idea but the thing here is that I actually need to be able to play with the date/time on the GuestOS because I need to test how my code reacts before and after DST boundaries.
Really, I'm just wondering whether the situation I described is accurate (ie: GuestOS is incorrectly reading DST adjusted time from hostOS as GMT.
-
-
4th October 2007, 10:20 AM #6 Re: timezone: vm guest OS on win2k3
The basic problem is that *nix expects the hardware clock to be set to UTC. Where as windows expects it to be set to the local time. Because we're still in BST, this is why your *nix guest is an hour out.
-
-
4th October 2007, 10:36 AM #7 Re: timezone: vm guest OS on win2k3

Originally Posted by
Geoff The basic problem is that *nix expects the hardware clock to be set to UTC. Where as windows expects it to be set to the local time. Because we're still in BST, this is why your *nix guest is an hour out.
... ah... as suspected... Thanks for the confirmation Geoff. Just another reason for me to consider converting the 2k3 OS from host to guest and getting ubuntu or something similar on there instead.
Thanks for that..
-
-
4th October 2007, 10:49 AM #8 Re: timezone: vm guest OS on win2k3
You can alter the behavior of *nix and tell it that the HW Clock is set to local time by running the following command:
Code:
hwclock --localtime
-
SHARE: 
Similar Threads
-
By plexer in forum How do you do....it?
Replies: 3
Last Post: 17th December 2007, 12:50 PM
-
By beeswax in forum Other Stuff
Replies: 0
Last Post: 30th June 2007, 08:33 PM
-
By ajbritton in forum Windows
Replies: 7
Last Post: 30th January 2007, 06:45 PM
-
By Gatt in forum Windows Vista
Replies: 11
Last Post: 19th September 2006, 09:56 PM
-
By russdev in forum Gaming
Replies: 2
Last Post: 4th August 2005, 08:07 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules