qemu: Fix rtc parameter is not set to qemu
[ port from runtime commit ]
Add default value for Clock, otherwise rtc parameter will be dropped
by Valid function. "host" is the default value in qemu for rtc clock.
@@ -537,8 +537,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 == "" {
