microsoft / MSLab

Azure Stack HCI, Windows 10 and Windows Server rapid lab deployment scripts
MIT License
1.17k stars 280 forks source link

mslab 24.04 Hydration of DC fails after first reboot when Parent OS and VM OS is Windows Server 2025 #588

Open Karl-WE opened 2 months ago

Karl-WE commented 2 months ago

The entire issue is described here https://techcommunity.microsoft.com/t5/windows-server-insiders/b26085-windows-server-2025-domain-controller-fail-to-deploy-via/m-p/4119469

Scenario: Host OS (Hyper-V): b26085 Windows Server 2025 Guest OS (DC): b26085 Windows Server 2025

Issue: Application of DSC fails after the first reboot while hydrating the DC VM

Repro

Workaround: Do not use WS 2025 as a guest VM OS at the moment, for CreateParentDisks (DC) until solved. Using WS 2025 for usual VMs, such as Management, WAC etc are not affected.

Karl-WE commented 1 month ago

This issue is under Investigation by Microsoft. Thank you @michbern-ms.

michbern-ms commented 1 month ago

@jaromirk I put together a new 'NoDCHydrate' feature which enables one to work around this for now: https://github.com/michbern-ms/MSLab/tree/user/michbern/dchydrate

Take a look and let me know if you want me to set up a PR.

The investigation on the OS side continues, but I wanted to offer the feature as a workaround.

jaromirk commented 1 month ago

Oh, that's sweet! @machv what do you think?