oVirt use pre-defined Sysprep for each Windows OS. By using the new Vm-Init feature we can use it to store VM/Template specific Sysprep file.
please make sure it is exposed in REST API as well
(In reply to Michal Skrivanek from comment #1) > please make sure it is exposed in REST API as well its is and its automatic since its in custom_script, but now that I think of it I think I need to map it for a new <Sysprep> entry... (so it will match the UI behavior)
*** Bug 1073961 has been marked as a duplicate of this bug. ***
FailedQA in ovirt-engine-3.5.0-0.0.master.20140605145557.git3ddd2de.el6.noarch (alpha2). Content of the Sysprep editor in VM dialog / Initial Run is not saved after the dialog is submited. Verification steps: 1. Create/edit a Windows VM and put some text in the Initial Run / Sysprep editor. 2. Save the changes. 3. Edit the VM again and check the content in Sysprep editor. Actual results: The Sysprep editor is empty. Expected results: The sysprep content should be saved. Additional info: Also API confirms the custom Sysprep script wasn't saved, the <custom_script/> is empty, e.g., <vm><initialization><custom_script/>...
Verified in ovirt-engine-3.5.0-0.0.master.20140821064931.gitb794d66.el6.noarch (rc1.1). If provided, custom sysprep file is processed and passed to the guest in A:\unattend.inf file instead of the oVirt default one, located in /usr/share/ovirt-engine/conf/sysprep/. All $variables$ are replaced too, if present. Note: Correctness of the sysprep file format is up to the user, oVirt doesn't verify the content, like XML validity or so.
oVirt 3.5 has been released and should include the fix for this issue.