public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] vm-img: fix clock sync issues in vmware template
@ 2022-07-14  8:28 Henning Schild
  2022-07-21 12:25 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Schild @ 2022-07-14  8:28 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

The time inside a default Isar VM is UTC but the RTC provided by vmware
could be non UTC so one would see a multi-hour clock offset between
guest and host. The offset would depend on the timezone used on the
host, and also on where that host keeps its timezone.

This patch fixes the issue, both for Windows hosts (timezone in RTC) and
for Linux (no timezone in RTC) hosts.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta/classes/vm-img/vm-img-vmware.ovf.tmpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/vm-img/vm-img-vmware.ovf.tmpl b/meta/classes/vm-img/vm-img-vmware.ovf.tmpl
index 2883ce063f90..79d9cb0e24d4 100644
--- a/meta/classes/vm-img/vm-img-vmware.ovf.tmpl
+++ b/meta/classes/vm-img/vm-img-vmware.ovf.tmpl
@@ -115,6 +115,7 @@
       <vmw:ExtraConfig ovf:required="false" vmw:key="pciBridge7.pciSlotNumber" vmw:value="24"/>
       <vmw:ExtraConfig ovf:required="false" vmw:key="pciBridge7.present" vmw:value="TRUE"/>
       <vmw:ExtraConfig ovf:required="false" vmw:key="pciBridge7.virtualDev" vmw:value="pcieRootPort"/>
+      <vmw:ExtraConfig ovf:required="false" vmw:key="rtc.diffFromUTC" vmw:value="0"/>
       <vmw:ExtraConfig ovf:required="false" vmw:key="softPowerOff" vmw:value="FALSE"/>
       <vmw:ExtraConfig ovf:required="false" vmw:key="svga.guestBackedPrimaryAware" vmw:value="TRUE"/>
       <vmw:ExtraConfig ovf:required="false" vmw:key="virtualHW.productCompatibility" vmw:value="hosted"/>
-- 
2.35.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] vm-img: fix clock sync issues in vmware template
  2022-07-14  8:28 [PATCH] vm-img: fix clock sync issues in vmware template Henning Schild
@ 2022-07-21 12:25 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-07-21 12:25 UTC (permalink / raw)
  To: Henning Schild, isar-users

14.07.2022 11:28, Henning Schild wrote:
> The time inside a default Isar VM is UTC but the RTC provided by vmware
> could be non UTC so one would see a multi-hour clock offset between
> guest and host. The offset would depend on the timezone used on the
> host, and also on where that host keeps its timezone.
>
> This patch fixes the issue, both for Windows hosts (timezone in RTC) and
> for Linux (no timezone in RTC) hosts.
>
> Signed-off-by: Henning Schild <henning.schild@siemens.com>

Applied to next, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-21 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14  8:28 [PATCH] vm-img: fix clock sync issues in vmware template Henning Schild
2022-07-21 12:25 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox