diff --git a/src/vmm/LibVirtDriverKVM.cc b/src/vmm/LibVirtDriverKVM.cc
index ca77044cf0e..a6e3880ab78 100644
--- a/src/vmm/LibVirtDriverKVM.cc
+++ b/src/vmm/LibVirtDriverKVM.cc
@@ -2112,9 +2112,29 @@ int LibVirtDriver::deployment_description_kvm(
file << "\t" << endl;
}
- if ( localtime )
+ if ( localtime || hyperv )
{
- file << "\t" << endl;
+ string htimers;
+
+ get_attribute(vm, host, cluster, "HYPERV_TIMERS", htimers);
+
+ file << "\t" << endl;
+ }
+ else //UTC is set as the clock offset by default
+ {
+ file << " offset='utc'>" << endl;
+ }
+
+ if (!htimers.empty())
+ {
+ file << htimers << endl;
+ }
+
+ file << "\t" << endl;
}
if ( guest_agent )
diff --git a/src/vmm_mad/exec/vmm_exec_kvm.conf b/src/vmm_mad/exec/vmm_exec_kvm.conf
index 207e431561a..7a91a1df674 100644
--- a/src/vmm_mad/exec/vmm_exec_kvm.conf
+++ b/src/vmm_mad/exec/vmm_exec_kvm.conf
@@ -50,6 +50,7 @@
# - MODEL
# * RAW: raw attribute value is appended to that on the VM template
# * HYPERV_OPTIONS: options used for FEATURES = [ HYPERV = yes ]
+# * HYPERV_TIMERS: timers added when HYPERV is set to yes in FEATURES
# * SPICE_OPTIONS
# * Q35_ROOT_PORTS: Number of PCI ports allocated for VMs of type q35.
# * OVMF_UEFIS: List of firmware available to users (full path in the hosts)
@@ -99,7 +100,26 @@ NIC = [
#RAW = ""
-HYPERV_OPTIONS = ""
+HYPERV_OPTIONS = "
+
+
+
+
+
+
+
+
+
+
+
+
+ "
+
+HYPERV_TIMERS = "
+
+
+
+ "
SPICE_OPTIONS = "