1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Apollon Oikonomopoulos <apoikos@dmesg.gr>
Date: Tue, 19 Feb 2019 12:57:14 +0200
Subject: KVM: replace -localtime with -rtc
-localtime was removed in QEMU 3.1, superseded by `-rtc base=localtime`
which has been supported since QEMU 0.12.0.
This is part of #1338.
Signed-off-by: Apollon Oikonomopoulos <apoikos@dmesg.gr>
---
lib/hypervisor/hv_kvm/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/hypervisor/hv_kvm/__init__.py b/lib/hypervisor/hv_kvm/__init__.py
index 6fa615d..69f2f92 100644
--- a/lib/hypervisor/hv_kvm/__init__.py
+++ b/lib/hypervisor/hv_kvm/__init__.py
@@ -1538,7 +1538,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
kvm_cmd.extend(["-nographic"])
if hvp[constants.HV_USE_LOCALTIME]:
- kvm_cmd.extend(["-localtime"])
+ kvm_cmd.extend(["-rtc", "base=localtime"])
if hvp[constants.HV_KVM_USE_CHROOT]:
kvm_cmd.extend(["-chroot", self._InstanceChrootDir(instance.name)])
|