Page 1 of 1
Disable Guest Clock Sync
Posted: 19. Nov 2009, 22:47
by BenMinshall
Hello,
Does anyone have a recommendation for how to disable all clock sync between Windows XP host and Windows XP guest? I wish to run some guests with the clock intentionally set ahead or behind the host. Thanks for any advice.
Re: Disable Guest Clock Sync
Posted: 20. Nov 2009, 01:45
by MarkCranness
The manual (section 9.15) mentions a TSCTiedToExecution option, but I think that may cause clock skew.
Try this (undocumented) setting while the VM is shutdown:
Code: Select all
VBoxManage setextradata "My VM" "VBoxInternal/TM/UTCOffset" <nanoSeconds>
<nanoSeconds> is a signed 64 bit integer being the offset from UTC (I think)
Set it to -86400000000000 to offset the VM time back one day.
The clock ticks will then still be in sync, but with an offset applied.
Edit: This can also be set using:
Code: Select all
VBoxManage modifyvm "My VM" --biossystemtimeoffset <msec>
... this should set the VM clock to be in sync with the host clock, but <msec> (milliseconds) offset. Negative numbers put the VM clock in the past, positive numbers put the VM into the future.