Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dism failed to add drivers from: C:\drivers\ #402

Open
anateshan opened this issue Feb 7, 2025 · 0 comments
Open

Dism failed to add drivers from: C:\drivers\ #402

anateshan opened this issue Feb 7, 2025 · 0 comments

Comments

@anateshan
Copy link

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****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant