Skip to content

incusd: only apply qemu rtc adjustments if it is configured#2645

Merged
stgraber merged 1 commit intolxc:mainfrom
The127:kkostial/fix-rtc-adjustment
Nov 13, 2025
Merged

incusd: only apply qemu rtc adjustments if it is configured#2645
stgraber merged 1 commit intolxc:mainfrom
The127:kkostial/fix-rtc-adjustment

Conversation

@The127
Copy link
Copy Markdown
Contributor

@The127 The127 commented Nov 10, 2025

This commit makes it so that we do not pass the -rtc option to qemu if it is configured. And also moves it down closer to the actual qemu call to reduce time shift.

We have noticed up to 7 seconds of discrepancy in some cases (without passing an adjustment in the configuration).

@The127 The127 requested a review from stgraber as a code owner November 10, 2025 16:18
@The127
Copy link
Copy Markdown
Contributor Author

The127 commented Nov 10, 2025

Not 100% sure if the if check makes sense. Incus might just always write a value in this field anyways. Either way moving this piece of code closer to the command execution should fix the issue.

This commit makes it so that we do not pass the -rtc option to qemu if it is configured. And also moves it down closer to the actual qemu call to reduce time shift.

Signed-off-by: karo <[email protected]>
@The127 The127 force-pushed the kkostial/fix-rtc-adjustment branch from 1a96fb2 to f78d208 Compare November 10, 2025 16:26
@stgraber stgraber enabled auto-merge November 13, 2025 05:50
@stgraber stgraber disabled auto-merge November 13, 2025 16:30
@stgraber stgraber merged commit f4b6e9a into lxc:main Nov 13, 2025
70 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants