MSLab/Scenarios/SDNExpress with Windows Adm...
Yanzhi Li f230835e6f
Fix syntax error of "else"
else in new line will cause syntax error in Windows server 2019
2021-05-04 17:02:25 +08:00
..
MultiNodeConfig.psd1 SDNExpress Scenario Added 2018-08-28 22:44:55 +02:00
Scenario.ps1 Fix syntax error of "else" 2021-05-04 17:02:25 +08:00
readme.md Big cleanup - removed 1709, serverVHDs var, client creation... 2018-10-04 23:17:11 +02:00

readme.md

About Scenario

Author: Andreas Sobczyk / CloudMechanic.net / Twitter /

Description and requirements

  • In this scenario SDNv2 without VMM can be created and deployed from scratch nested in one Hyper-V host

  • Script is tested only for this specific nested scenario

  • Works with Windows Server 2016 and 2019

  • Require around 100GB memory and 300GB disk space

LabConfig

#SDNExpress

$LabConfig=@{ DomainAdminName='LabAdmin'; AdminPassword='LS1setup!'; Prefix = 'SDNExpress2019-'; SecureBoot=$false; SwitchName = 'LabSwitch'; DCEdition='4'; VMs=@();InstallSCVMM='No'; PullServerDC=$false;  Internet=$true;AllowedVLANs="1-400"; AdditionalNetworksInDC=$true; AdditionalNetworksConfig=@(); EnableGuestServiceInterface=$true}
$LABConfig.AdditionalNetworksConfig += @{ 
        NetName = 'HNV';
        NetAddress='10.103.33.';
        NetVLAN='201';
        Subnet='255.255.255.0'
    }

1..4 | % { 
    $VMNames="HV";
    $LABConfig.VMs += @{
        VMName = "$VMNames$_" ;
        Configuration = 'S2D' ;
        ParentVHD = 'Win2016Core_G2.vhdx';
        SSDNumber = 2;
        SSDSize=800GB ;
        HDDNumber = 4;
        HDDSize=4TB ;
        MemoryStartupBytes= 20GB;
        NestedVirt=$True;
        StaticMemory=$True;
        VMProcessorCount = 6
    }
}

$LABConfig.VMs += @{
        VMName = "Management" ;
        Configuration = 'S2D' ;
        ParentVHD = 'Win2016_G2.vhdx';
        SSDNumber = 1;
        SSDSize=50GB ;
        MemoryStartupBytes= 2GB;
        NestedVirt=$false;
        StaticMemory=$false;
        VMProcessorCount = 2
    }
 

The LAB

Tip: When prompt for the VHDX, select the same as you used for the hosts

The script is devided in two parts, first part should be run from the Hyper-V host, second part should be run from the DC

For detailed guidance go to: https://cloudmechanic.net/2018/08/29/deploying-a-sdnv2-lab-on-a-single-host-using-nested-hyper-v/

Part 1

  • Select the VHDX to be used for the SDN VMs
  • Select the MultiNodeConfig.psd1 file
  • Select the Windows Admin Center MSI file (1806+)

Part 2

Copy the second part of the script to the Management VM and execute it.

Known Issues

  • SDN VMs not join to the domain, especially the gateway VMs seems to have problems, if this happens use the Hyper-V Manager console on the Management VM to connect to HV1 or HV2 or HV3 and domain join the VMs manually with SCONFIG to corp.contoso.com.
  • Doing deployment the SLB MUXs is timing out on WinRM, if this happens just rerun the SDNExpress deployment script again and it should continue, the SDNExpress script is made to be rerun if any errors occur.
  • Gateways needs to be rebooted after RemoteAccess is installed, if this happens use the Hyper-V Manager console on the Management VM to connect to HV1 or HV2 and restart the related Contoso-GW VM, then rerun the SDNExpress deployment script.