Stopping automatic time sync

Discussions about using Windows guests in VirtualBox.
Post Reply
JohanM
Posts: 4
Joined: 19. Aug 2010, 08:44
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Stopping automatic time sync

Post by JohanM »

Hi

I'm using Virtual Box 4.0.4 on a Windows 7 host with a Windows XP guest. I have guest additions installed on the guest. How can I stop the guest from automatically synchronizing its time with the host?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Stopping automatic time sync

Post by Perryg »

Code: Select all

VBoxManage setextradata <vmname> “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1?
JohanM
Posts: 4
Joined: 19. Aug 2010, 08:44
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Re: Stopping automatic time sync

Post by JohanM »

Many thanks

I have a second question: Is there some way to set the guest's time at startup? I.e. I want to automatically set the guest's clock to 3:14pm, 17 August 2011 when it starts up.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Stopping automatic time sync

Post by Perryg »

With a batch file in the guest to run at startup.
wacher
Posts: 82
Joined: 26. Mar 2011, 04:47
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10 Insider

Re: Stopping automatic time sync

Post by wacher »

See the command

VBoxManage modifyvm <name> -biossystemtimeoffset -<milliseconds>

maybe it is useful to you somehow.
poulbak
Posts: 33
Joined: 9. Feb 2010, 22:52
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly Windows 7

Re: Stopping automatic time sync

Post by poulbak »

Remember, that Windows might have been set up to synchronize via internet.
Poul Bak
------------------------------------------------------
2011: The year of hardware acceleration
MASHA
Posts: 1
Joined: 6. Jul 2012, 17:49

Re: Stopping automatic time sync

Post by MASHA »

hi, i need a help, if someone gives the exact form of the command to write it in cmd if my vmname is MASHA, because im facing difficulty with the command, and i have windows 7 as OS.
Thank you very much
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Stopping automatic time sync

Post by Perryg »

Depending on the actual command you are wanting to run (there are several) just replace the <name> with MASHA

If the host is Windows you need to be in the directory that has VBoxManage.exe fro the command to work.
Post Reply