Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1069096 - sysprep timezone is not working when create pool from template.
sysprep timezone is not working when create pool from template.
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
3.3.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 3.4.0
Assigned To: Roy Golan
Pavel Novotny
virt
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-24 02:49 EST by Yoshinori Takahashi
Modified: 2014-06-09 11:04 EDT (History)
12 users (show)

See Also:
Fixed In Version: 3.4.0-0.13.beta3
Doc Type: Bug Fix
Doc Text:
* In Red Hat Enterprise Virtualization 3.3, if a virtual machine pool with a specific time zone was created from a Windows 2008 template, the time zone setting was represented as the Microsoft Time Zone Index integer rather than a human-readable string. Now, the time zone in the sysprep.inf file is saved in plain text and it is possible again to create virtual machine pools with different time zones from the same template.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-06-09 11:04:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 25933 None None None Never
oVirt gerrit 26007 None None None Never
Red Hat Product Errata RHSA-2014:0506 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.4.0 update 2014-06-09 14:55:38 EDT

  None (edit)
Comment 1 Omer Frenkel 2014-02-25 06:59:37 EST
The timezone value passed to sysprep is an index (i think the index in selection box of the installation screen)
the values are documented and taken from here
http://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx

so the value you see in the floppy is correct.
in 3.2 it worked for the same version of windows?
Comment 5 Roy Golan 2014-03-20 05:39:46 EDT
Takahashi-san,

easy way round this is to drop a file with an override value for win 2008 (or whatever OS you want to override its values)

/etc/ovirt-engine/osinfo.conf.d/10-windows-timezone-fix.properties

and restart the engine for the change to take effect.

10-windows-timezone-fix.properties:

os.windows_2008.isTimezoneTypeInteger.value = false
os.windows_2008x64.isTimezoneTypeInteger.value = false
os.windows_2008R2x64.isTimezoneTypeInteger.value = false
Comment 6 Michal Skrivanek 2014-03-24 05:26:52 EDT
pending backport to 3.4
Comment 8 Pavel Novotny 2014-04-18 12:20:44 EDT
Verified in rhevm-3.4.0-0.13.beta3.el6ev.noarch (av6).

Verification steps:

1. Create new windows 2008 R2 VM
2. Install rhev-tools and seal the VM - do the "sysprep" procedure.
4. Create template from VM.
5. Create pool from the template with JST time zone "Tokyo Standard Time". **)
6. Run pool vm and then check its timezone setting
7. Check for <TimeZone> in file A:\sysprep.inf

**) Beware of bug 1088440, where the sysprep.inf file always contains the time zone set in VM dialog / System side-tab. It ignores time zone set in VM dialog / Initial Run side-tab as well as in the Run Once dialog.

Results:
6. The VM has time zone set to Tokyo Standard Time. In Windows the "Date and Time" dialog says: (UTC+09:00) Osaka, Sapporo, Tokyo
7. The time zone in sysprep.inf file is saved in plain text, not integer number.
   It contains: <TimeZone>Tokyo Standard Time</TimeZone>

This behavior is defined in the default OS info configuration file shipped with RHEVM:

# grep -r isTimezoneTypeInteger /etc/ovirt-engine/osinfo.conf.d/00-defaults.properties
os.windows_xp.isTimezoneTypeInteger.value = true
os.windows_2003.isTimezoneTypeInteger.value = true
os.windows_2008.isTimezoneTypeInteger.value = false
os.windows_2003x64.isTimezoneTypeInteger.value = true
os.windows_7.isTimezoneTypeInteger.value = false
os.windows_2008x64.isTimezoneTypeInteger.value = false
Comment 9 errata-xmlrpc 2014-06-09 11:04:44 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-0506.html

Note You need to log in before you can comment on or make changes to this bug.