MSLab icon indicating copy to clipboard operation
MSLab copied to clipboard

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

Open Karl-WE opened this issue 1 year ago • 9 comments

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

  • Install WS 2025 as host OS
  • Enable Hyper-V
  • Deploy mslab 24.04
  • Use WS 2025 ISO during 2_createparentdisks.ps1

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 avatar May 04 '24 11:05 Karl-WE

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

Karl-WE avatar May 28 '24 07:05 Karl-WE

@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.

michbern-ms avatar Jun 14 '24 22:06 michbern-ms

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

jaromirk avatar Jun 15 '24 09:06 jaromirk

related #596 #589

Karl-WE avatar Sep 29 '24 16:09 Karl-WE

Today, tested with Windows_InsiderPreview_Server_vNext_en-us_26296.iso. No change in behaviour. Waiting for fix on OS level.

Karl-WE avatar Sep 29 '24 16:09 Karl-WE

@Karl-WE That's unexpected. Version 26296 has the two fixes necessary to resolve this scenario. I ran the full scenario this morning with 26296, downloaded from the Preview center: https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver?msockid=1818fad5388d6a5b3e2ceef839376bbb

And it worked well. I did not need to use the 'NoDehydrateDC' feature - it all just worked.

@jaromirk , @machv - would it be possible for one of you to test with 26296 and see if you can reproduce what Karl is seeing?

michbern-ms avatar Sep 30 '24 17:09 michbern-ms

Hi @michbern-ms Thanks for sharing this information.

Hyper-V Host OS was the same build as the DC VM OS version.

I will try this again on Windows 11 24H2 as Hyper-V host OS.

Karl-WE avatar Sep 30 '24 19:09 Karl-WE

Very strange. @jaromirk @machv Would love more data points if you can spare the time.

michbern-ms avatar Sep 30 '24 20:09 michbern-ms

It's killing me softly as I thought I could finally come back to a new lab and have fun.

I am eager to help Michael. As always.

Karl-WE avatar Sep 30 '24 22:09 Karl-WE