PS C:\images\windows-openstack-imaging-tools> New-WindowsOnlineImage -ConfigFilePath C:\images\config.ini
5/12/2021 12:04:55 AM - Windows online image generation started.
5/12/2021 12:05:00 AM - Cloud image generation started.
5/12/2021 12:05:00 AM - Creating Virtual Disk Image: C:\images\windows-2k19.vhdx...
5/12/2021 12:05:07 AM - Successfuly created disk: C:\images\windows-2k19.vhdx
5/12/2021 12:05:07 AM - Generate Unattend Xml :E:\Unattend.xml...
5/12/2021 12:05:07 AM - Xml was generated.
5/12/2021 12:05:07 AM - Copy Unattend Resources: Server...
5/12/2021 12:05:07 AM - Copying: C:\images\windows-openstack-imaging-tools\UnattendResources E:\UnattendResources
5/12/2021 12:05:08 AM - Resources have been copied.
5/12/2021 12:05:08 AM - Copy Custom Resources: ...
5/12/2021 12:05:08 AM - Custom Resources at: E:\UnattendResources.
5/12/2021 12:05:08 AM - Downloading ntfszapfree...
5/12/2021 12:05:09 AM - Downloading Cloudbase-Init...
5/12/2021 12:05:20 AM - Applying Windows image "D:\Sources\install.wim" in "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Applying image
[==========================100.0%==========================]
The operation completed successfully.
5/12/2021 12:16:53 AM - Create BCDBoot Config for Windows Server 2019 SERVERSOLUTION
5/12/2021 12:17:09 AM - Resetting BCD boot border
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
5/12/2021 12:17:11 AM - BCDBoot config has been created.
5/12/2021 12:17:11 AM - Adding Virtual IO Drivers from ISO: c:\images\virtio-win-0.1.185.iso...
5/12/2021 12:17:20 AM - Using backed up ISO for safe dismount.
5/12/2021 12:17:24 AM - Adding drivers from F:
5/12/2021 12:17:24 AM - Adding Virtual IO Drivers: F:...
5/12/2021 12:17:24 AM - Getting Virtual IO Drivers: F:...
5/12/2021 12:17:25 AM - Finished to get IO Drivers.
5/12/2021 12:17:25 AM - Adding drivers from "F:\balloon\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\balloon\2k19\AMD64\balloon.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:17:45 AM - Adding drivers from "F:\netkvm\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\netkvm\2k19\AMD64\netkvm.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:17:51 AM - Adding drivers from "F:\pvpanic\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\pvpanic\2k19\AMD64\pvpanic.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:17:56 AM - Adding drivers from "F:\qemupciserial\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\qemupciserial\2k19\AMD64\qemupciserial.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:18:01 AM - Adding drivers from "F:\qxldod\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\qxldod\2k19\AMD64\qxldod.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:18:06 AM - Adding drivers from "F:\vioinput\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\vioinput\2k19\AMD64\vioinput.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:18:12 AM - Adding drivers from "F:\viorng\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\viorng\2k19\AMD64\viorng.inf: The driver package was successfully installed.
The operation completed successfully. 5/12/2021 12:18:17 AM - Adding drivers from "F:\vioscsi\2k19\AMD64" to image "E:\" Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.17763.737 Searching for driver packages to install... Found 1 driver package(s) to install.
Installing 1 of 1 - F:\vioscsi\2k19\AMD64\vioscsi.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:18:21 AM - Adding drivers from "F:\vioserial\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\vioserial\2k19\AMD64\vioser.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:18:26 AM - Adding drivers from "F:\viostor\2k19\AMD64" to image "E:\"
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
Searching for driver packages to install...
Found 1 driver package(s) to install.
Installing 1 of 1 - F:\viostor\2k19\AMD64\viostor.inf: The driver package was successfully installed.
The operation completed successfully.
5/12/2021 12:18:30 AM - Virtual IO Drivers was added.
5/12/2021 12:18:30 AM - ISO Virtual Drivers have been adeed.
5/12/2021 12:18:30 AM - Running offline dism Cleanup-Image...
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.17763.737
[=========== 20.0% ]
The operation completed successfully.
5/12/2021 12:19:04 AM - Offline dism Cleanup-Image completed.
5/12/2021 12:19:10 AM - Cloud image generation finished. Image path: C:\images\windows-2k19.vhdx
5/12/2021 12:19:11 AM - Creating VM WindowsOnlineImage-Sysprep1107610238 attached to external
5/12/2021 12:19:18 AM - Starting WindowsOnlineImage-Sysprep1107610238
5/12/2021 12:19:28 AM - Waiting for WindowsOnlineImage-Sysprep1107610238 to finish sysprep.
When I login to the VM using hyper-v manger I can see below error in powershell
The process is getting stuck at sysprep
When I login to the VM using hyper-v manger I can see below error in powershell