How to change date & time in a virtual machine?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Oba
Posts: 2
Joined: 27. Sep 2014, 02:22

How to change date & time in a virtual machine?

Post by Oba »

Hi,

I´m running Win7 in a Virtual Box on Win7. The point is that I need to run some tests in the virtual machine with date & time different from the host machine. It seems that the two machines clocks are linked. Is there a way to keep the virtual machine with a different date & time from the host machine?

Sorry for my poor english.

Regards
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to change date & time in a virtual machine?

Post by Perryg »

Disable time sync. Run the following in the hosts command window. You need to be in the directory that has VBoxManage.exe for this to work.

Code: Select all

vboxmanage setextradata <vmname> “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″
Oba
Posts: 2
Joined: 27. Sep 2014, 02:22

Re: How to change date & time in a virtual machine?

Post by Oba »

Thanks a lot Perryg!

Regards
Post Reply