Accelerate/Slowdown/Stop VM clock?

Hi,

I am reading that VirtualBox allows manipulation of guest clock speed:

https://www.virtualbox.org/manual/ch09.html#warpguest

How can this be done in Qubes?

Just curious, what’s your use-case? Does this work just on the system clock or would it cause a general speed-up/slow-down of things happening in the machine, kind of like using CheatEngine on a game process?

Just the clock.

Use cases can be various, including cheating games, extending software trials, but testing for development purposes too.

While not a hypervisor mechanism, you can achieve something like this for singular applications with GitHub - wolfcw/libfaketime: libfaketime modifies the system time for a single application · GitHub

Thanks but unfortunately that won’t work for non-Linux/MacOS qubes.

If your qube can synchronise with an ntp server, I think you could run your own one on a linux qube and ‘fix’ its clock with adjtimex.

Would that fit your use case(s)?

It would be a bit of a pain to set up, and any external network access would give the game away…

Edit: and it will not allow to stop the clock, I think.

This is the first thing I thought about before opening this tread and you are right about:

I wonder how the guest qube gets time from virtual “BIOS” and how Xen could manipulate that.

1 Like