Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqubes' suspend hooks aren't called after VM suspend/resume (so VM clock is out of sync) #3489
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Is this related to (or possibly even a duplicate of) #3135? |
andrewdavidwong
added
bug
C: core
labels
Jan 23, 2018
andrewdavidwong
added this to the Release 4.0 milestone
Jan 23, 2018
andrewdavidwong
added
the
C: templates
label
Jan 23, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
taradiddles
Jan 23, 2018
I don't think those are related:
- #3135 is related to NetworkManager: the dispatch "implementation" works but qubes-nmhook doesn't filter NM's events (interface down, change of connectivity, interface up, ...) and ends up being executed a few times in a very short time span.
- the problem here seems to be specifc to qubes (rpc / suspend hooks).
Note that I don't have anything "custom" on this 4.0rc3 install: I use the default fedora-26 template (+ some additional rpms but they don't have anything to do with qubes), and I only imported my 3.2 backups. FWIW, the hardware is the same as yours - T450s.
taradiddles
commented
Jan 23, 2018
•
|
I don't think those are related:
Note that I don't have anything "custom" on this 4.0rc3 install: I use the default fedora-26 template (+ some additional rpms but they don't have anything to do with qubes), and I only imported my 3.2 backups. FWIW, the hardware is the same as yours - T450s. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
taradiddles
Jan 25, 2018
I rebooted my laptop (without any new updates) and after a full night suspended I don't see any time lag in VMs today. That's odd; I'll try to investigate when/if the problem reappears. Meanwhile, any pointer on what to look at (logs, rpc commands, ...) is welcome.
taradiddles
commented
Jan 25, 2018
|
I rebooted my laptop (without any new updates) and after a full night suspended I don't see any time lag in VMs today. That's odd; I'll try to investigate when/if the problem reappears. Meanwhile, any pointer on what to look at (logs, rpc commands, ...) is welcome. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
taradiddles
Jan 27, 2018
Closing, everything works as expected now although I didn't change anything (no updates, no tweaks, ...).
Probably a transient issue or a difficult-to-reproduce bug.
Will reopen if it happens again.
taradiddles
commented
Jan 27, 2018
|
Closing, everything works as expected now although I didn't change anything (no updates, no tweaks, ...). |
taradiddles commentedJan 23, 2018
Qubes OS version:
R4.0rc3
Affected TemplateVMs:
fedora-26 (default - qubes rpm)
Steps to reproduce the behavior:
Start VM
Check time in dom0 and VM
Suspend laptop
Resume laptop X seconds later
Check time in dom0 and VM
Expected behavior:
Time in VM and dom0 should be the same
Actual behavior:
Time in dom0 is OK, but time in VM is lagging by X seconds
General notes:
running qvm-sync-clock manually in the VM synchronizes the clock so it looks like Qubes' suspend hooks aren't called ; dropping an executable debug script in /etc/qubes/suspend-post.d/ shows that it's indeed not called upon resume.
I didn't see anything relevant to suspend/resume in dom0 /var/log/qubes/vm-name.log
I'll be happy to test whatever is needed to help debugging but I'm not familiar enough with qubes-rpc and how events/hooks are propagated...
Related issues: