Adjust the date

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Plagrö
Posts: 140
Joined: 27. May 2018, 14:57

Adjust the date

Post by Plagrö »

Hello,

When I adjust the date in my Win7 VM, for example today is 2020-06-06 but I set it to 2020-12-06, then after a view seconds, the date is again automatically set to 2020-06-06.

Is there a way, to set it permanently to 2020-12-06?

Thank you.
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: Adjust the date

Post by mpack »

Not unless you stop the guest OS from accessing the Internet and fetching network time.

Even then, the VM has no separate battery backup of the date, so next time it boots it's going to have the same date as the host: you can configure a fixed offset from the host but that's it.
Plagrö
Posts: 140
Joined: 27. May 2018, 14:57

Re: Adjust the date

Post by Plagrö »

Thank you for your reply.
Not unless you stop the guest OS from accessing the Internet and fetching network time.
I was not able to reproduce this.

Although my VM has no network ...
VM Netzwerk.png
VM Netzwerk.png (32.2 KiB) Viewed 998 times
... and in addition I physically pulled out the cable of the LAN connection.
... you can configure a fixed offset from the host but that's it.
That would be enough.
How can I do this?

Thank you.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Adjust the date

Post by Martin »

You could try using a script to calculate the "biostimeoffset" before each start of the VM like another user did in
viewtopic.php?p=359885#p359885
Plagrö
Posts: 140
Joined: 27. May 2018, 14:57

Re: Adjust the date

Post by Plagrö »

Thank you.
Post Reply