New Question

Revision history [back]

click to hide/show revision 1
initial version

Windows image creation automation

Hi, I am using the github cloudbase/windows-openstack-imaging-tools to automate windows image creation however while booting up the image in openstack I get the below error. "Windows could not parse or process the unattend answer file for pass [specialize]" with component being Microsoft-Windows-Deployment" On checking the setuperr.log file at windws\panter\unattendGC I got the below logs:

"hit an error while running "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf"

This portion is from my custom unattend file that I have kept in the c drive of the actual image (using DISM command line) and I modified the logon.ps1 to use this file while running the sysprep:

$unattendedXmlPath = "$ENV:\Unattend.xml"
Set-PersistDrivers -Path $unattendedXmlPath -Persist:$persistDrivers
& "$ENV:SystemRoot\System32\Sysprep\Sysprep.exe" `/generalize `/oobe `/shutdown `/unattend:"$unattendedXmlPath"

So the first boot seems to be taking the setting from this unattend fle rather than the actual unattendtemplate.xml available in the script. Any idea how to avoid this? I want to run the custom unattend file during the sysprep post booting up the instance from base image.