[virt-tools-list] [RFC PATCH 0/4] Guest time sync on snapshot resume

Michael Weiser michael.weiser at gmx.de
Sat Nov 30 17:54:30 UTC 2019


Hello Cole,

here's my first stab at implementing guest time sync as per your
suggestions. Please let me know if this is moving into the right
direction.

These patches do:
* add method _set_time() calling the libvirt setTime API
* wire it up in resume from paused and saved state as well as revert to
  a snapshot containing a running domain state
* only run the API if the connection is of type qemu or test
* only run the API if a guest agent channel is defined for a qemu
  connection
* wait for the guest agent channel state to become connected, i.e. the
  guest agent coming online inside the guest

If you drop me some quick pointers how to go about dispatching the set
time operation to a separate or already existing background thread so it
doesn't block the UI, I'll be happy to give that a whirl as well.

Michael Weiser (4):
  virtManager: object: domain: Set time on resume
  virtManager: object: domain: Restrict time sync to qemu
  virtManager: object: domain: Check for guest agent
  virtManager: object: domain: Set time on unpause and revert

 virtManager/object/domain.py | 91 ++++++++++++++++++++++++++++++++----
 1 file changed, 82 insertions(+), 9 deletions(-)

-- 
2.24.0





More information about the virt-tools-list mailing list