-
Notifications
You must be signed in to change notification settings - Fork 241
Description
I am trying to create an Image template of WindowsServer 2022 to use on Openstack. I have Windows-11 running Hyper-V and tried to run the git script and I am getting error at the very early stage *Error: Dism failed to add drivers from: C:\drivers*
C:\drivers\ folder directory is empty with no drivers files. Also I see the script has not done to copy the drivers from the virtio.iso.
I tried to manually copy the drivers from Virtio to C:\drivers still had the same error. Can you please help if I am missing something here.
Attached the logs below for reference.
PS C:\Git\windows-openstack-imaging-tools\Examples> .\create-windows-online-cloud-image.ps1
WARNING: C:\Git\windows-openstack-imaging-tools\Examples\config.ini exists and it will be rewritten.
06.02.2025 16:08:49 - Windows online image generation started.
06.02.2025 16:08:55 - Cloud image generation started.
06.02.2025 16:08:57 - Found already existing image file. Removing it...
06.02.2025 16:08:57 - Already existent image file has been removed.
06.02.2025 16:08:57 - Creating Virtual Disk Image: C:\images\my-windows-image.vhdx...
06.02.2025 16:09:07 - Successfuly created disk: C:\images\my-windows-image.vhdx
06.02.2025 16:09:07 - Generate Unattend Xml :F:\Unattend.xml...
06.02.2025 16:09:07 - Xml was generated.
06.02.2025 16:09:07 - Copy Unattend Resources: Server...
06.02.2025 16:09:07 - Copying: C:\Git\windows-openstack-imaging-tools\UnattendResources F:\UnattendResources
06.02.2025 16:09:07 - Resources have been copied.
06.02.2025 16:09:07 - Copy Custom Resources: ...
06.02.2025 16:09:07 - Custom Resources at: F:\UnattendResources.
06.02.2025 16:09:07 - Setting wallpaper...
06.02.2025 16:09:07 - Wallpaper copied to the image.
06.02.2025 16:09:07 - Wallpaper GPO copied to the image.
06.02.2025 16:09:07 - Wallpaper was set. 06.02.2025 16:09:07 - Downloading Cloudbase-Init... 06.02.2025 16:09:21 - Applying Windows image "D:\Sources\install.wim" in "F:" Deployment Image Servicing and Management tool Version: 10.0.22621.2792 Applying image [==========================100.0%==========================] The operation completed successfully.
06.02.2025 16:17:08 - Create BCDBoot Config for Windows Server 2022 SERVERDATACENTER
06.02.2025 16:17:12 - Resetting BCD boot border
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
06.02.2025 16:17:13 - BCDBoot config has been created.
*06.02.2025 16:17:13 - Adding drivers from "C:\drivers" to image "F:"
WARNING: Dism failed to add drivers from: C:\drivers
WARNING: Dism failed to add drivers from: C:\drivers
WARNING: Dism failed to add drivers from: C:\drivers*
**06.02.2025 16:17:35 - Dism failed to add drivers from: C:\drivers
**Dism failed to add drivers from: C:\drivers
At C:\Git\windows-openstack-imaging-tools\WinImageBuilder.psm1:642 char:13
-
throw "Dism failed to add drivers from: $driversPath" -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : OperationStopped: (Dism failed to ...om: C:\drivers:String) [], RuntimeException
- FullyQualifiedErrorId : Dism failed to add drivers from: C:\drivers****