Description of problem:
When we seal a Windows 7 virtual machine with sysprep (HKEY_LOCAL_MACHINE → SYSTEM → SETUP (Value name: UnattendFile, Value data: a:\sysprep.inf)) and make tamplate, we use next step to create new VM via Cloud-Init/Sysprep.
It usualy create new machine with sysprep parameters.
Aftetr upgrade oVirt Engine from 3.5.0.1-1 to 3.5.1.1-1.el6 first run generate Event message:
VM vmhostname is down with error. Exit message: [Errno 22] Invalid argument: '/tmp/tmp8Vic9N/"Unattend.xml"'.
Then VM runs, but ignore sysprep virtual floppy
Actual results:
VM vmhostname is down with error. Exit message: [Errno 22] Invalid argument: '/tmp/tmp8Vic9N/"Unattend.xml"'.
Expected results:
Normal install VM from sealed windows template like at ovirt engine 3.5.0.1-1
Additional info:
ovirt engine Scientific Linux release 6.6 (Carbon)
vdsm node CentOS 7 Linux
upgrade was provided
# yum update "ovirt-engine-setup*"
# engine-setup
workaround info:
The problem is that sysperp.inf and Unattend.xml are surrounded with apostrophes ie:
os.windows_2008x64.sysprepFileName.value = "Unattend.xml"
as a workaround one can override osinfo values as described here:
http://www.ovirt.org/OS_info#value_overriding
with something like that:
os.windows_2008x64.sysprepFileName.value = Unattend.xml
Bug in ovirt-engine/packaging/conf/osinfo-defaults.properties
was fixed. "Unattend.xml" apostrophes removed.
Important to note i had to run engine-setup again to apply changes into engine runtime.
Now VM from template runs with syspreped parameters and no error was displayed.
Thanks