Bug 1301368

Summary: windows 2008 R2 guest is not updated with values in the sysprep file
Product: [oVirt] ovirt-engine Reporter: Ilanit Stein <istein>
Component: BLL.VirtAssignee: Shahar Havivi <shavivi>
Status: CLOSED NOTABUG QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.2CC: bugs, istein, michal.skrivanek, shavivi
Target Milestone: ovirt-3.6.5Flags: michal.skrivanek: ovirt-3.6.z?
istein: planning_ack?
istein: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-07 15:14:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ilanit Stein 2016-01-24 14:45:05 UTC
Description of problem:
Run once a VM created from windows 2008 R2 sealed template, 
On the run once dialog, in sysprep field, paste sysprep.ini, with actual value for computer name, also set time zone field to "Tonga".
Inside the guest, looking at the floppy content,
the Unattend.xml indeed contain same content, as put in the sysprep field,
but the value seem to not implemented in the guest (computer name seems as if it comes from windows installation, as well as the time zone).

Version-Release number of selected component (if applicable):
rhevm 3.6.2-10

Additional info:
Template sealing was done following the rhev Virtual_Machine_Management_Guide.

Also same flow was done for windows 2008, and in that case the values of time zone & computer name were implemented in the guest.

Comment 3 Michal Skrivanek 2016-02-03 12:43:43 UTC
Shahar, isn't it the same issue we hit recently?

Comment 4 Shahar Havivi 2016-02-03 13:36:38 UTC
(In reply to Michal Skrivanek from comment #3)
> Shahar, isn't it the same issue we hit recently?
Indeed, this is the case when the Windows is not sealed correctly.

Comment 5 Ilanit Stein 2016-02-07 15:14:41 UTC
Retested, and it seems to be working:

Run once a sealed windows 2008 R2,with Floppy sysprep attached,
and these Initial run parameters: 

1. VM Hostname: A
2. Time zone: Fiji Standard Time
3. Admin password: A
4. sysprep field, paste template 
/usr/share/ovirt-engine/conf/sysprep/sysprep.2k8x64

<Value><![CDATA[$AdminPassword$]]></Value>  => 
                         <Value><![CDATA[B]]></Value>
<ComputerName><![CDATA[$ComputerName$]]></ComputerName> => 
                         <ComputerName><![CDATA[B]]></ComputerName>

VM comes up with:
- AdminPassword 'B' - OK
- Time zone: 'Fiji Standard Time' - OK
- Computer Name: 'B', as expected. 
  Note that the computer Name parameter will be implemented, only on the first 
  time. that is if I'll run sysprep again, on this same VM, the computer Name    
  parameter will not be implemented by windows, though this value appear in 
  the attached unattend xml.

Further to this test, closing the bug.