PackerBuilds icon indicating copy to clipboard operation
PackerBuilds copied to clipboard

Windows could not apply the unattend answer file's <DiskConfiguration> setting.

Open aenagy opened this issue 1 year ago • 1 comments

Windows Setup stops with the following message:

The installation was cancelled
Any changes made to your computer won't be saved.

Windows Setup
Windows could not apply the unattend answer file's <DiskConfiguration> setting.

image

I was able to confirm that packer was mounting the VMware Tools ISO for Windows as volume "E:", and confirm that the PVSCSI driver was not being loaded. image

Next, I tried updating autounattend.xml to include a reference to the specific folder path (https://knotacoder.com/2022/04/05/packer-hcl-and-pvscsi-drivers/).

       <component name="Microsoft-Windows-PnpCustomizationsWinPE" 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">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="A">
                    <!-- pvscsi-Windows8.flp https://knotacoder.com/2022/04/05/packer-hcl-and-pvscsi-drivers/ -->
                    <Path>E:\Program Files\VMware\VMware Tools\Drivers\pvscsi\Win10\amd64</Path>
                </PathAndCredentials>
            </DriverPaths>
        </component>

image ... but this didn't make a difference.

I'm using VMware-tools-windows-12.5.0-24276846.iso for my VMware Tools ISO. I was able to confirm that I have the correct folder path to the drivers.

image

What is the fix, or are there any suggestions?

aenagy avatar Dec 15 '24 20:12 aenagy

@aenagy I am horribly late on this :) Did you resolve your issue? I need to refresh this repo.

brandonleegit avatar Jul 18 '25 18:07 brandonleegit