+ Post New Thread
Results 1 to 8 of 8
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 ...
  1. #1
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    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"?

  2. #2
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: timezone: vm guest OS on win2k3

    Anyone?

  3. #3

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,812
    Thank Post
    1,476
    Thanked 592 Times in 444 Posts
    Rep Power
    168

    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

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: timezone: vm guest OS on win2k3

    Install VMWare tools in the client OS.

    - OR -

    Use NTP

  5. #5
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: timezone: vm guest OS on win2k3

    Quote 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.

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    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.

  7. #7
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: timezone: vm guest OS on win2k3

    Quote 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..

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    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:
+ Post New Thread

Similar Threads

  1. VLAN for guest internet access
    By plexer in forum How do you do....it?
    Replies: 3
    Last Post: 17th December 2007, 12:50 PM
  2. Second Lives by Tim Guest
    By beeswax in forum Other Stuff
    Replies: 0
    Last Post: 30th June 2007, 08:33 PM
  3. Exchange 2000: RUS for a Win2K3 DC
    By ajbritton in forum Windows
    Replies: 7
    Last Post: 30th January 2007, 06:45 PM
  4. RC1 on Win2k3 (R2) Domain
    By Gatt in forum Windows Vista
    Replies: 11
    Last Post: 19th September 2006, 09:56 PM
  5. pogo.com 5 day guest club pass
    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
  •