[TUT] Set the BIOS clock back in VirtualBox

Tutorials for Operating Systems, Applications etc can be posted here.
pr0gram the pr0grammer
Donator
Posts: 698
Joined: Fri Aug 18, 2006 12:05 pm
Location: Or-stray-liagh

[TUT] Set the BIOS clock back in VirtualBox

Post by pr0gram the pr0grammer »

VirtualBox doesn't have great support for changing the BIOS date, but you can set a time offset. While the clock in VirtualBox still synchronises with the host system clock, the clock will be delayed by a certain number of milliseconds. You can use this to set the BIOS clock back a few years, so you can install betas. I tested this with a timebombed Whistler build and it worked fine.

To do this, first open up Calculator. Find out how many days it is between now, and the BIOS date you want. For example if you wanted a Whistler build, a date of 1/1/2001 would be okay. Using a calendar or by using this site you can get the number of days. Between today and 1/1/2001, it's 2386 days.

Now, multiply the number of days by 86400000 (which is 24*60*60*1000) to get the number of millseconds between now and the target date.

Fire up Command Prompt, and CD to the folder containing VirtualBox (most likely c:\program files\innotek virtualbox). Now type:

Code: Select all

VBoxManage modifyvm <name> -biossystemtimeoffset -<milliseconds>
Where <name> is the name of the VM, and <milliseconds> is the number of milliseconds.

Example:

Code: Select all

VBoxManage modifyvm "Windows Whistler 2419" -biossystemtimeoffset -206150400000
When you boot the VM, you'll find that your date has been wound back, so you can install your timebomed betas easily.

Image

I know, it should be 2419 in the screenie but I installed 2296 instead, and I used a different time offset.
Last edited by pr0gram the pr0grammer on Sat Jul 14, 2007 5:13 am, edited 1 time in total.
pr0gram the pr0grammer
BetaArchive retiree | OSBA Expat

sp4rkbr
User avatar
FTP Access
Posts: 73
Joined: Sat Jul 07, 2007 3:21 pm
Location: Brazil

Post by sp4rkbr »

Thanks a lot! I was needing it today

Oerg
FTP Access
Posts: 29
Joined: Wed Jul 11, 2007 10:31 am

Post by Oerg »

How about VirtualPC, is it possible there, too???

hounsell

Post by hounsell »

Oerg wrote:How about VirtualPC, is it possible there, too???
yes, i'll do a tutorial on that...

Luckie
User avatar
Donator
Posts: 1115
Joined: Thu Aug 24, 2006 8:03 am
Location: Germany

Post by Luckie »

ou can also do this by editing the XML-file for your VM. Just add this line and edit the value for your matching one:

TimeOffset value="-51926400000"

surround it with the matching XML-Tags.
"Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why."

Goldy-de-Luminy

Post by Goldy-de-Luminy »

thanks you man

hero24
User avatar
FTP Access
Posts: 44
Joined: Wed Aug 19, 2009 10:19 pm

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by hero24 »

i install whistler without changing date/offset on my vmware
Ave hero24
Ave I

Rob Jansen
User avatar
Donator
Posts: 5271
Joined: Sat May 12, 2007 1:05 pm
Location: The Collection Book
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Rob Jansen »

even if the above post is somewhat beyond 90-days (the post above the last one) I want to still ask a question:

is there any otherway to set the bios date then this?
Also does it remember the BIOS date everytime the VM starts or reboots?

DBlake
User avatar
Donator
Posts: 747
Joined: Tue Aug 05, 2008 8:45 pm
Location: Two lefts and a diagonal sidestep from where you are.

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by DBlake »

On a freshly-created VM, do the following:
1. Download the Batch File from the first post in this post.
2. Run it and follow onscreen instructions.
3. Get an MS-DOS Boot Disk (has to be one with the "date" command), mount it in the VM.
4. Start up the VM, let DOS boot up.
5. At the command prompt type in "date MM/DD/YYYY" (no quotes, Example: 09/21/1999).
6. Shut down the VM, and unmount the floppy image.
7. Done!

Rob Jansen
User avatar
Donator
Posts: 5271
Joined: Sat May 12, 2007 1:05 pm
Location: The Collection Book
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Rob Jansen »

I know I have not responded to this thread, but this still works with the current Sun VirtualBox 3.0.6, the way the OP posted.

If it is ok with the OP I want to include this in the Microsoft Collection Book (Version 7.1).

Patrick
Donator
Posts: 1478
Joined: Mon Nov 16, 2009 4:27 am

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Patrick »

Thanks. I got IP Banned from the VirtualBox fourms by asking .
Offtopic Comment
200th post!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
It's called a hustle, sweetheart.

Suumpmolk
User avatar
Donator
Posts: 2499
Joined: Thu Nov 05, 2009 6:13 pm

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Suumpmolk »

as stupid as method is
for Longhorn, i simply pushed date back in Host machine
after that VirtualBox will just sync to it

when Guest OS is paused or turned off, i just revert date back to normal

(sorry for bump)
maybe it was leaves...

RIP Josh Exley

Image

Patrick
Donator
Posts: 1478
Joined: Mon Nov 16, 2009 4:27 am

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Patrick »

Suumpmolk wrote:as stupid as method is
for Longhorn, i simply pushed date back in Host machine
after that VirtualBox will just sync to it

when Guest OS is paused or turned off, i just revert date back to normal

(sorry for bump)
True, true

I do that too for installing 4074
Offtopic Comment
You can bump a sticky
It's called a hustle, sweetheart.

pokeboy3124
User avatar
Donator
Posts: 338
Joined: Fri Feb 12, 2010 3:52 am
Location: California, US

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by pokeboy3124 »

I did VboxManage modifyvm "Windows Whistler Build 2428" --biossystemtimeoffset -99999999999999999999 and it's not working. it won't install. help me.
Image
Image

Last edited by No one on Zzz Dec 99, 3099 459:43 am, edited 0.1 times in total.

Patrick
Donator
Posts: 1478
Joined: Mon Nov 16, 2009 4:27 am

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Patrick »

pokeboy3124 wrote:I did VboxManage modifyvm "Windows Whistler Build 2428" --biossystemtimeoffset -99999999999999999999 and it's not working. it won't install. help me.
O_O

What the f------

Thats too large of a offset

You must use 206150400000
It's called a hustle, sweetheart.

Rob Jansen
User avatar
Donator
Posts: 5271
Joined: Sat May 12, 2007 1:05 pm
Location: The Collection Book
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Rob Jansen »

You need to calculate the dates between now and the date that it needs.
Using the format in the FIRST post to calculate and enter it.

hb860
User avatar
Donator
Posts: 924
Joined: Sat Dec 13, 2008 9:31 am
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by hb860 »

I made a tool what allows you easy calculate the date offset. It is Date offset calculator.
Here is screeny:
Image

Enter two dates and use milliseconds value with VBoxManage.exe, for example:

Code: Select all

VBoxManage.exe modifyvm WindowsXP --biossystemtimeoffset -207273600000
As you can see, this software also provides the offset in days, minutes, hours and seconds.

Download here

Enjoy.
:(

Saul
User avatar
Donator
Posts: 1350
Joined: Fri Oct 02, 2009 9:41 pm
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Saul »

Which date layout does it use?
Previously known as effy11

hb860
User avatar
Donator
Posts: 924
Joined: Sat Dec 13, 2008 9:31 am
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by hb860 »

I hope it use your local system layout
:(

GuyWithTheDuelDisk
User avatar
FTP Access
Posts: 217
Joined: Mon Feb 22, 2010 5:00 am
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by GuyWithTheDuelDisk »

betacollector21 wrote:Thanks. I got IP Banned from the VirtualBox fourms by asking .
Offtopic Comment
200th post!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ouch That Sucks You Got Banned. I Got Banned From Them Too For Asking. >:P

GuyWithTheDuelDisk
User avatar
FTP Access
Posts: 217
Joined: Mon Feb 22, 2010 5:00 am
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by GuyWithTheDuelDisk »

There Is An Easier Way To Set Your Clock Back To Install Your Beta Onto Any Virtual Machine.

1) Go To Your Date + Time Management In Control Panel
2) Set Your Date To Whatever You Want To Install A Specific Beta (Ex: Whistler 2419: Jan 31, 2001)
3) Click Apply, Then Ok
4) Install Your Beta.

That's It, You're Ready To Go!
Why I Posted This? Because When You Set Your BIOS On Your VM, It Reverts Back To Your Time In The Taskbar.

Any Questions Or Comments Can Be PM'ed To Me.
Last edited by GuyWithTheDuelDisk on Tue Jun 11, 2013 8:23 pm, edited 1 time in total.

Suumpmolk
User avatar
Donator
Posts: 2499
Joined: Thu Nov 05, 2009 6:13 pm

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Suumpmolk »

or you could learn to read posts in this thread

don't think people need to PM you for that either
maybe it was leaves...

RIP Josh Exley

Image

Tukjedude
User avatar
FTP Access
Posts: 173
Joined: Wed Sep 16, 2009 8:08 am
Location: Ede, The Netherlands
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Tukjedude »

Thnx for this tutorial i was looking for this
GuyWithTheDuelDisk wrote:There Is An Easier Way To Set Your Clock Back To Install Your Beta Onto Any Virtual Machine.

1) Go To Your Date + Time Management In Control Panel
2) Set Your Date To Whatever You Want To Install A Specific Beta (Ex: Whistler 2419: Jan 31, 2001)
3) Click Apply, Then Ok
4) Install Your Beta.

That's It, You're Ready To Go!
Why I Posted This? Because When You Set Your BIOS On Your VM, It Reverts Back To Your Time In The Taskbar.

Any Questions Or Comments Can Be PM'ed To Me.
OMG That is impossible because when you set it on a diffrent time it doesn't apply on a other virtual machine...!
Image
"OSBetaCollect, free HTTP beta downloading!"

Beta Guy
FTP Access
Posts: 67
Joined: Mon Mar 29, 2010 2:11 pm

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Beta Guy »

Tukjedude wrote:OMG That is impossible because when you set it on a diffrent time it doesn't apply on a other virtual machine...!

What GuyWithTheDuelDisk said is true, if you set your real machine to the date valid for the beta installation, then start vpc [or the likes], vpc will
sync it's time with the machines current time.
Though the way the OP posted in the first post is a far neater trick, & saves for when you forget to turn your main machines time forward again.

Saul
User avatar
Donator
Posts: 1350
Joined: Fri Oct 02, 2009 9:41 pm
Contact:

Re: [TUT] Set the BIOS clock back in VirtualBox

Post by Saul »

Shame, this method doesn't work in the latest release :/
Previously known as effy11

Post Reply