[Solved] UTC clock

Discussions related to using VirtualBox on Windows hosts.
Post Reply
boucherle
Posts: 18
Joined: 7. Nov 2010, 00:00
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win seven

[Solved] UTC clock

Post by boucherle »

I've virtualized a 2003 Server and a XP SP3 (Virtual Box 4.1.0).

On these two hosts, with or without Cnfiguration > System > Mother board > Advanced functions > "internal clock in UTC" (Sorry, I've translated from french), I'm not able to change the date and time on these hosts: a few minutes after I've changed day or time, it comes the same as the real machine (Seven Enterprise).

What's happened ?

Thanks for all.

Best regards.
Last edited by boucherle on 9. Oct 2012, 21:02, edited 1 time in total.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: UTC clock

Post by mpack »

No doubt both guest OS's are configured to get their time from an internet time server, which will obviously be current time. I'm talking about the guest OS's own configuration here, not the VirtualBox configuration of the VM.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: UTC clock

Post by Perryg »

Or it could be the time sync of VBox.
You can switch this off with the following:

Code: Select all

VBoxManage setextradata [VMname] "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
boucherle
Posts: 18
Joined: 7. Nov 2010, 00:00
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win seven

Re: UTC clock

Post by boucherle »

Yes: vboxmanage setextradat is working, but a little strangely:
- minutes and seconds can be changed,
- but days months and years not.

This was usefull to find:
VBoxManage modifyvm "virtual machine name" --biossystemtimeoffset -<milliseconds>

So It's possible to change succesfully years, days, and so on.

-----------------------
For the first answer: I make a test: my XP virtual out of network (network card desactivated in windows): "internal clock in UTC" don't change anything: the virtual machine don't want to have an other date and time than the real physical machine.
-----------------------

Thanks for all.

Best regards.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: UTC clock

Post by mpack »

boucherle wrote:For the first answer: I make a test: my XP virtual out of network (network card desactivated in windows): "internal clock in UTC" don't change anything: the virtual machine don't want to have an other date and time than the real physical machine.
Well on startup - of course not. The VM does not have an independant battery backed real time clock chip. So of course it takes its wall clock day/date and time from the host on startup, though as you've discovered that time can be offset by a specified amount. Then it may be corrected by a network time server, if it is configured to do so.

This is not the same issue as time synch, which may also be mentioned in the manual.
Post Reply