From 36b73f6d8a3b1d4cf3261449deb143ddb91b9d39 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Nov 2018 15:20:54 +0200 Subject: Tweak qemu RTC options to try to avoid clock drift --- bbot/agent/machine.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bbot/agent') diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx index 5ea5f1e..b77aa28 100644 --- a/bbot/agent/machine.cxx +++ b/bbot/agent/machine.cxx @@ -317,6 +317,12 @@ namespace bbot ",sockets=" + to_string (sockets) + ",cores=" + to_string (cores) + ",threads=" + to_string (threads)), + // + // RTC settings. + // + "-rtc", "clock=vm,driftfix=slew", + "-no-hpet", + "-global", "kvm-pit.lost_tick_policy=discard", os, "-vnc", "127.0.0.1:" + to_string (tc_num), // 5900 + tc_num "-monitor", "unix:" + monitor.string () + ",server,nowait"); -- cgit v1.1