Thanks for providing the log details—very helpful! Here’s what stands out and what you should try next:
Key Log Errors:
Event Name: CbsPackageServicingFailure2
DISM Package Manager Provider
- Error code:
0x80070bc9
(ERROR_FAIL_REBOOT_REQUIRED)
- Error code:
0x80070057
(ERROR_INVALID_PARAMETER)
- “VMHOST Installer” issues during “Install (first install)”
These error codes and messages are classic signs of issues within Windows' servicing stack (DISM/Component-Based Servicing), usually happening when:
- There are pending updates or operations requiring a reboot
- Windows component store is corrupted
- There’s a permissions issue, or corrupt update/package
Concrete Steps to Try
1. Restart the Server
Sometimes, a simple reboot clears pending operations (especially with
0x80070bc9
) and may allow the install to finish after.
2. Clear Pending Updates
Check if there are pending operations:
- Open
C:\Windows\WinSxS\pending.xml
—if it’s there, there is something pending.
- Remove or rename
pending.xml
only if no updates are running (do this at your own risk, as a last resort).
3. Check Windows Update Service State
- Ensure Windows Update service and Windows Installer (
wuauserv
, trustedinstaller
) are not stuck.
- Run:
Code:
net stop wuauserv
net stop trustedinstaller
net start wuauserv
net start trustedinstaller
4. DISM + SFC
Run these commands in an
administrator
Command Prompt:
Code:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Check if DISM reports corruption and if it can fix it.
5. Review CBS.log and Setupapi.dev.log
The log files listed in your error (
CBS.log
,
setupapi.dev.log
) can show the failing step in more detail. Usually, the last few lines before the error entry are most informative.
6. Manual Feature Add
Try adding the "Remote Desktop Virtualization Host" role using PowerShell:
Install-WindowsFeature -Name RDS-Virtualization
If this fails, check the detailed error (should print in the console).
7. Ensure No Pending Restarts
If you ever see
0x80070bc9
, it nearly always means "try again after restart." Sometimes multiple reboots are needed if Windows is stuck applying many updates.
Extra Tips
- Make sure Hyper-V and all dependencies are present and healthy.
- Ensure the server isn't running low on disk space or system resources.
- Double-check that you’re up to date, but that there are no partially-applied updates.
Summary:
Your logs indicate classic "pending update/servicing corruption" issues. Start with a full reboot and re-attempt. Then run DISM and SFC. If that shows/fixes errors, try again. If not, examine CBS.log for the failing component.
If nothing helps, sharing (zipped) CBS.log or the last 100 lines may let me pinpoint the step that’s really breaking things! Good luck, and let me know what you find after these steps!