From 59f6be3f6ee2b56e41a7db85d85d6c465a30fc77 Mon Sep 17 00:00:00 2001 From: Jaromir Kaspar Date: Thu, 20 Jun 2024 08:18:56 +0200 Subject: [PATCH] win2025 --- Scripts/2_CreateParentDisks.ps1 | 18 ++++++++++++++++-- Scripts/LabConfig.ps1 | 12 ++++++------ Tools/CreateParentDisk.ps1 | 20 ++++++++++++++++---- Tools/DownloadLatestCUs.ps1 | 2 ++ 4 files changed, 40 insertions(+), 12 deletions(-) diff --git a/Scripts/2_CreateParentDisks.ps1 b/Scripts/2_CreateParentDisks.ps1 index 40e3adde..24a75c05 100644 --- a/Scripts/2_CreateParentDisks.ps1 +++ b/Scripts/2_CreateParentDisks.ps1 @@ -398,7 +398,21 @@ If (-not $isAdmin) { VHDName="Win2022Core_G2.vhdx" Size=127GB } - }elseif ($BuildNumber -gt 20348 -and $SAC){ + }elseif ($BuildNumber -eq 26100){ + #Windows Server 2025 + $ServerVHDs += @{ + Kind = "Full" + Edition="4" + VHDName="Win2025_G2.vhdx" + Size=127GB + } + $ServerVHDs += @{ + Kind = "Core" + Edition="3" + VHDName="Win2025Core_G2.vhdx" + Size=127GB + } + }elseif ($BuildNumber -gt 26100 -and $SAC){ $ServerVHDs += @{ Kind = "Core" Edition="2" @@ -409,7 +423,7 @@ If (-not $isAdmin) { if ($LabConfig.DCEdition -gt 2){ $LabConfig.DCEdition=2 } - }elseif ($BuildNumber -gt 20348){ + }elseif ($BuildNumber -gt 26100){ #Windows Sever Insider $ServerVHDs += @{ Kind = "Full" diff --git a/Scripts/LabConfig.ps1 b/Scripts/LabConfig.ps1 index 8adbb3a9..abb600a6 100644 --- a/Scripts/LabConfig.ps1 +++ b/Scripts/LabConfig.ps1 @@ -1,12 +1,12 @@ #basic config for Windows Server 2022, that creates VMs for S2D Hyperconverged scenario https://github.com/Microsoft/MSLab/tree/master/Scenarios/S2D%20Hyperconverged -$LabConfig=@{ DomainAdminName='LabAdmin'; AdminPassword='LS1setup!'; Prefix = 'MSLab-' ; DCEdition='4'; Internet=$true ; AdditionalNetworksConfig=@(); VMs=@()} +$LabConfig=@{AllowedVLANs="1-10,711-719" ; DomainAdminName='LabAdmin'; AdminPassword='LS1setup!'; Prefix = 'MSLab-' ; DCEdition='4'; Internet=$true ; AdditionalNetworksConfig=@(); VMs=@()} # Windows Server 2022 -1..4 | ForEach-Object {$VMNames="S2D"; $LABConfig.VMs += @{ VMName = "$VMNames$_" ; Configuration = 'S2D' ; ParentVHD = 'Win2022Core_G2.vhdx'; SSDNumber = 0; SSDSize=800GB ; HDDNumber = 12; HDDSize= 4TB ; MemoryStartupBytes= 512MB }} -# Or Azure Stack HCI 21H2 -#1..4 | ForEach-Object {$VMNames="AzSHCI"; $LABConfig.VMs += @{ VMName = "$VMNames$_" ; Configuration = 'S2D' ; ParentVHD = 'AzSHCI21H2_G2.vhdx'; SSDNumber = 0; SSDSize=800GB ; HDDNumber = 12; HDDSize= 4TB ; MemoryStartupBytes= 1GB }} -# Or Windows Server 2019 -#1..4 | ForEach-Object {$VMNames="S2D"; $LABConfig.VMs += @{ VMName = "$VMNames$_" ; Configuration = 'S2D' ; ParentVHD = 'Win2019Core_G2.vhdx'; SSDNumber = 0; SSDSize=800GB ; HDDNumber = 12; HDDSize= 4TB ; MemoryStartupBytes= 512MB }} +1..4 | ForEach-Object {$LABConfig.VMs += @{ VMName = "$S2D$_" ; Configuration = 'S2D' ; ParentVHD = 'Win2022Core_G2.vhdx'; SSDNumber = 0; SSDSize=800GB ; HDDNumber = 12; HDDSize= 4TB ; MemoryStartupBytes= 512MB }} +# Or Azure Stack HCI 23H2 (non-domain joined) https://github.com/DellGEOS/AzureStackHOLs/tree/main/lab-guides/01a-DeployAzureStackHCICluster-CloudBasedDeployment +#1..2 | ForEach-Object {$LABConfig.VMs += @{ VMName = "ASNode$_" ; Configuration = 'S2D' ; ParentVHD = 'AzSHCI23H2_G2.vhdx' ; HDDNumber = 4 ; HDDSize= 2TB ; MemoryStartupBytes= 20GB; VMProcessorCount=16 ; vTPM=$true ; Unattend="NoDjoin" ; NestedVirt=$true }} +# Or Windows Server 2025 https://github.com/DellGEOS/AzureStackHOLs/tree/main/lab-guides/03-TestingWindowsServerInsider +#1..2 | ForEach-Object {$LABConfig.VMs += @{ VMName="S2D$_" ; Configuration='S2D' ; ParentVHD='WinSrvInsiderCore_26063.vhdx' ; HDDNumber=4 ; HDDSize=2TB ; MemoryStartupBytes=1GB; VMProcessorCount=4 ; vTPM=$true}} ### HELP ### diff --git a/Tools/CreateParentDisk.ps1 b/Tools/CreateParentDisk.ps1 index c1750e9d..68e4b548 100644 --- a/Tools/CreateParentDisk.ps1 +++ b/Tools/CreateParentDisk.ps1 @@ -174,8 +174,11 @@ If (-not $isAdmin) { 25398 { "AzSHCI23H2_G2.vhdx" } + 26100 { + "AzSHCI24H2_G2.vhdx" + } } - if ($BuildNumber -GT 25398){ + if ($BuildNumber -GT 26100){ $tempvhdname="AzSHCIInsider_$BuildNumber.vhdx" } }elseif (($Edition -like "*Server*Core*") -or ($Edition -like "Windows Server * Datacenter") -or ($Edition -like "Windows Server * Standard")){ @@ -216,8 +219,11 @@ If (-not $isAdmin) { 20348 { "Win2022Core_G2.vhdx" } + 26100 { + "Win2025Core_G2.vhdx" + } } - if ($BuildNumber -gt 20348){ + if ($BuildNumber -gt 26100){ $tempvhdname="WinSrvInsiderCore_$BuildNumber.vhdx" } }elseif($Edition -like "Hyper-V*"){ @@ -258,8 +264,11 @@ If (-not $isAdmin) { 20348 { "Win2022_G2.vhdx" } + 26100 { + "Win2025_G2.vhdx" + } } - if ($BuildNumber -GT 20348){ + if ($BuildNumber -GT 26100){ $tempvhdname="WinSrvInsider_$BuildNumber.vhdx" } }else{ @@ -312,8 +321,11 @@ If (-not $isAdmin) { 22621 { "Win1122H2_G2.vhdx" } + 26100 { + "Win1124H2_G2.vhdx" + } } - if ($BuildNumber -GT 22621){ + if ($BuildNumber -GT 26100){ $tempvhdname="Win11Insider_$BuildNumber.vhdx" } } diff --git a/Tools/DownloadLatestCUs.ps1 b/Tools/DownloadLatestCUs.ps1 index bd0533c8..fc28bff8 100644 --- a/Tools/DownloadLatestCUs.ps1 +++ b/Tools/DownloadLatestCUs.ps1 @@ -39,12 +39,14 @@ if ($version.Minor -eq 27){ } $Products=@() +$Products+=@{Product="Azure Stack HCI 24H2 and Windows Server 2025" ;SearchString="Cumulative Update for Microsoft server operating system version 24H2 for x64-based Systems" ;SSUSearchString=$null ; ID="Microsoft Server operating system-24H2"} $Products+=@{Product="Azure Stack HCI 23H2" ;SearchString="Cumulative Update for Microsoft server operating system version 23H2 for x64-based Systems" ;SSUSearchString=$null ; ID="Microsoft Server operating system-23H2"} #MSFT really removed the ',' in CUs $Products+=@{Product="Azure Stack HCI 22H2" ;SearchString="Cumulative Update for Microsoft server operating system version 22H2 for x64-based Systems" ;SSUSearchString=$null ; ID="Microsoft Server operating system-22H2"} $Products+=@{Product="Azure Stack HCI 21H2 and Windows Server 2022" ;SearchString="Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Microsoft server operating system version 21H2 for x64-based Systems" ; ID="Microsoft Server operating system-21H2"} $Products+=@{Product="Azure Stack HCI 20H2" ;SearchString="Cumulative Update for Azure Stack HCI, version 20H2" ;SSUSearchString="Servicing Stack Update for Azure Stack HCI, version 20H2 for x64-based Systems" ; ID="Azure Stack HCI"} #unsupported release SSU no longer required but remain for compat reasons $Products+=@{Product="Windows Server 2019" ;SearchString="Cumulative Update for Windows Server 2019 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows Server 2019 for x64-based Systems" ; ID="Windows Server 2019"} #SSU no longer required but remain for compat reasons $Products+=@{Product="Windows Server 2016" ;SearchString="Cumulative Update for Windows Server 2016 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows Server 2016 for x64-based Systems" ; ID="Windows Server 2016"} #SSU no longer required but remain for compat reasons +$Products+=@{Product="Windows 11 24H2" ;SearchString="Cumulative Update for Windows 11 Version 24H2 for x64-based Systems" ;SSUSearchString=$null ; ID="Windows 11"} $Products+=@{Product="Windows 11 23H2" ;SearchString="Cumulative Update for Windows 11 Version 23H2 for x64-based Systems" ;SSUSearchString=$null ; ID="Windows 11"} $Products+=@{Product="Windows 11 22H2" ;SearchString="Cumulative Update for Windows 11 Version 22H2 for x64-based Systems" ;SSUSearchString=$null ; ID="Windows 11"} $Products+=@{Product="Windows 10 21H2" ;SearchString="Cumulative Update for Windows 10 Version 21H2 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 21H2 for x64-based Systems" ; ID="Windows 10, version 1903 and later, Windows 10 LTSB"} #SSU no longer required but remain for compat reasons