Bug 1301368 - windows 2008 R2 guest is not updated with values in the sysprep file
Summary: windows 2008 R2 guest is not updated with values in the sysprep file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 3.6.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-3.6.5
: ---
Assignee: Shahar Havivi
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-24 14:45 UTC by Ilanit Stein
Modified: 2016-02-07 15:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-02-07 15:14:41 UTC
oVirt Team: Virt
Embargoed:
michal.skrivanek: ovirt-3.6.z?
istein: planning_ack?
istein: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

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.


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