Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
qemu: Fix rtc parameter is not set to qemu
Browse files Browse the repository at this point in the history
Add default value for Clock, otherwise rtc parameter will be dropped
by Valid function. "host" is the default value in qemu for rtc clock.

Fixes: #2708

Signed-off-by: Shuicheng Lin <[email protected]>
  • Loading branch information
ShuichengLin committed May 29, 2020
1 parent b1c2130 commit 379f19f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtcontainers/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,9 @@ func (q *qemu) createSandbox(ctx context.Context, id string, networkNS NetworkNa
}

rtc := govmmQemu.RTC{
Base: "utc",
DriftFix: "slew",
Base: govmmQemu.UTC,
Clock: govmmQemu.Host,
DriftFix: govmmQemu.Slew,
}

if q.state.UUID == "" {
Expand Down

0 comments on commit 379f19f

Please sign in to comment.