"setextradata ... GetHostTimeDisabled" doesn't work correct

This is for discussing general topics about how to use VirtualBox.
Post Reply
Lauscher
Posts: 47
Joined: 14. Mar 2012, 14:19
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Ubuntu 7.04+10.04, Xubuntu 11.10
Location: Germany

"setextradata ... GetHostTimeDisabled" doesn't work correct

Post by Lauscher »

I am testing

Code: Select all

vboxmanage setextradata "XP" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1"
I found this:
- Setting a new system time in the guest: ok, it stays.
- Rebooting the guest: ok, same time as before (+ some minutes)
- Running a snapshot: ok, same time as before
- Shutdown VM und boot again: fails, guest time is set to host time

Is there any solution to this problem? I found the question sometimes in the forum, but no working answer. I think, VirtualBox should remember the last guest system time (like it does in a snapshot), but it doesn't.
(Windows internet time synchronization is disabled, network connection is cutted)
Last edited by Lauscher on 12. Apr 2012, 23:54, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "setextradata ... GetHostTimeDisabled" doesn't work corr

Post by Perryg »

Code: Select all

vboxmanage setextradata <vmname> “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″
Will disable the time sync of the guest. After you run this you should see it in the extradata section of the guests control file.
Lauscher
Posts: 47
Joined: 14. Mar 2012, 14:19
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Ubuntu 7.04+10.04, Xubuntu 11.10
Location: Germany

Re: "setextradata ... GetHostTimeDisabled" doesn't work corr

Post by Lauscher »

Yes, sorry, I mean (without "value="):

Code: Select all

vboxmanage setextradata "XP" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
In the .vbox file I find

Code: Select all

 <ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1"/>
and except the situation
- Shutdown VM und boot again: fails, guest time is set to host time
it works right.
Lauscher
Posts: 47
Joined: 14. Mar 2012, 14:19
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Ubuntu 7.04+10.04, Xubuntu 11.10
Location: Germany

Re: "setextradata ... GetHostTimeDisabled" doesn't work corr

Post by Lauscher »

Lauscher wrote: except the situation
- Shutdown VM und boot again: fails, guest time is set to host time
it works right.
Is there no solution to this issue?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "setextradata ... GetHostTimeDisabled" doesn't work corr

Post by Perryg »

Not that I know of. Not unless you can stop the bios time update at boot in the guest.
Post Reply