New Question

Windows image creation automation

asked 2016-08-04 13:20:29 +0300

Parth Gandhi gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-08-08 09:15:15 +0300

Parth Gandhi gravatar image

I got the issue fixed. the scripts copies the actual autounattendtemplate.xml to c as unattend.xml to complete the windows unattend installation. so when we copy our file in C it overwrites the above file. So I moved the unattend file to program files folder and modified the script to point to this location.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-08-04 13:20:29 +0300

Seen: 682 times

Last updated: Aug 08 '16