Created attachment 1248042 [details] screenshot win 2012 Description of problem: Setting sysprep with windows 2012 R2 64B Failed to load answer file. Version-Release number of selected component (if applicable): Red Hat Virtualization Manager Version: 4.1.0.3-0.1.el7 How reproducible: all the time Steps to Reproduce: 1. Create win 2012 R2 64B VM 2. Seal VM and create template 3. Create from template VM and set sysprep: Setting: 1. VM Hostname 2. Time Zone 3. Admin password 4. Custom Local: Input Locale: en-GB UI Language: en-GB Actual results: Failed in starting VM Error windows: "Windows could not parse or process the unattend answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup]." Unattend.xml: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ComputerName><![CDATA[win2012_sysprep]]></ComputerName> <RegisteredOrganization><![CDATA[scl.lab.tlv.redhat.com]]></RegisteredOrganization> <RegisteredOwner>User</RegisteredOwner> <ProductKey><![CDATA[]]></ProductKey> </component> <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Identification> <Credentials> <Domain><![CDATA[]]></Domain> <Password><![CDATA[]]></Password> <Username><![CDATA[]]></Username> </Credentials> <DebugJoin>true</DebugJoin> <JoinDomain><![CDATA[]]></JoinDomain> <MachineObjectOU><![CDATA[]]></MachineObjectOU> </Identification> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-IE-ClientNetworkProtocolImplementation" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <HKLMProxyEnable>false</HKLMProxyEnable> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale><![CDATA[ en-GB]]></InputLocale> <SystemLocale><![CDATA[en_US]]></SystemLocale> <UILanguage><![CDATA[ en-GB]]></UILanguage> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale><![CDATA[en_US]]></UserLocale> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1024</HorizontalResolution> <RefreshRate>75</RefreshRate> <VerticalResolution>768</VerticalResolution> </Display> <OOBE> <HideEULAPage>true</HideEULAPage> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <UserAccounts> <AdministratorPassword> <Value><![CDATA[test]]></Value> <PlainText>true</PlainText> </AdministratorPassword> </UserAccounts> <RegisteredOrganization><![CDATA[scl.lab.tlv.redhat.com]]></RegisteredOrganization> <RegisteredOwner>User</RegisteredOwner> <TimeZone><![CDATA[Tonga Standard Time]]></TimeZone> </component> </settings> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage><![CDATA[ en-GB]]></UILanguage> </SetupUILanguage> <InputLocale><![CDATA[ en-GB]]></InputLocale> <UILanguage><![CDATA[ en-GB]]></UILanguage> <SystemLocale><![CDATA[en_US]]></SystemLocale> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale><![CDATA[en_US]]></UserLocale> </component> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserData> <ProductKey> <Key><![CDATA[]]></Key> <WillShowUI>Never</WillShowUI> </ProductKey> <AcceptEula>true</AcceptEula> <Organization><![CDATA[scl.lab.tlv.redhat.com]]></Organization> <FullName>User</FullName> </UserData> </component> </settings> <cpi:offlineImage cpi:source="catalog://catalogs/windows2012-x86/sources/install_windows longhorn serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
Created attachment 1248043 [details] engine.log
Created attachment 1248044 [details] vdsm log
please share the exact windows version/image used for this test
Created attachment 1248071 [details] windows_2012_details
(In reply to Michal Skrivanek from comment #3) > please share the exact windows version/image used for this test see attached windows_2012_details
The problem is a Product Key is missing.
Recheck it with Product Key in sysprep answering file and got the same error.
Verify with: Engine: 4.1.1.3-0.1.el7 Host: OS Version:RHEL - 7.3 - 7.el7 Kernel Version:3.10.0 - 550.el7.x86_64 KVM Version:2.6.0 - 28.el7_3.3.1 LIBVIRT Version:libvirt-2.0.0-10.el7_3.5 VDSM Version:vdsm-4.19.7-1.el7ev Steps: With windows 2012 R2 64B and windows 2016 R2 64B 1. Create VM with sysprep setting, run vm and check VM 2. Create VM with sysprep file without password run vm and check VM 3. Create VM with sysprep file with password run vm and check VM Results: All cases pass