samples/Sample_WS2012R2_DCandDHCPOnly_NAT.xml
<?xml version="1.0" encoding="utf-8"?>
<labbuilderconfig xmlns="labbuilderconfig" name="Sample_WS2012R2_DCandDHCPOnly_NAT" version="1.0"> <description>Sample Windows Server 2012 R2 Lab Configuration DC and DHCP Only and using a NAT virtual switch.</description> <settings labid="LABBUILDER-NAT.COM " domainname="LABBUILDER-NAT.COM" email="admina@LABBUILDER-NAT.COM" labpath="c:\vm\LABBUILDER-NAT.COM" requiredwindowsbuild="14295" /> <resources> <msu name="WMF5.1-WS2012R2-W81" url="https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/W2K12-KB3191565-x64.msu" /> </resources> <switches> <switch name="Domain NAT" type="NAT" vlan="5" natsubnet="192.168.140.0/24" natgatewayaddress="192.168.140.1" /> </switches> <templatevhds isopath="ISOFiles" vhdpath="VHDFiles" prefix="" > <templatevhd name="Windows Server 2012 R2 Datacenter Full" iso="9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.iso" url="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2" vhd="Windows Server 2012 R2 Datacenter Full.vhdx" edition="Windows Server 2012 R2 SERVERDATACENTER" ostype="Server" packages="WMF5.1-WS2012R2-W81" vhdformat="vhdx" vhdtype="dynamic" generation="2" vhdsize="40GB" /> <templatevhd name="Windows Server 2012 R2 Datacenter Core" iso="9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.iso" url="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2" vhd="Windows Server 2012 R2 Datacenter Core.vhdx" edition="Windows Server 2012 R2 SERVERDATACENTERCORE" ostype="Server" packages="WMF5.1-WS2012R2-W81" vhdformat="vhdx" vhdtype="dynamic" generation="2" vhdsize="25GB" /> </templatevhds> <templates> <template name="Template Windows Server 2012 R2 Datacenter Full" templatevhd="Windows Server 2012 R2 Datacenter FULL" memorystartupbytes="1GB" processorcount="1" administratorpassword="P@ssword!1" timezone="New Zealand Standard Time" ostype="Server" packages="WMF5.1-WS2012R2-W81" /> <template name="Template Windows Server 2012 R2 Datacenter Core" templatevhd="Windows Server 2012 R2 Datacenter CORE" memorystartupbytes="1GB" processorcount="1" administratorpassword="P@ssword!1" timezone="New Zealand Standard Time" ostype="Server" packages="WMF5.1-WS2012R2-W81" /> </templates> <vms> <vm name="SA-DC1" template="Template Windows Server 2012 R2 Datacenter CORE" computername="SA-DC1"> <dsc configname="DC_FORESTPRIMARY" configfile="DC_FORESTPRIMARY.DSC.ps1"> <parameters> DomainName = "LABBUILDER.COM" DomainAdminPassword = "P@ssword!1" Forwarders = @('8.8.8.8','8.8.4.4') </parameters> </dsc> <adapters> <adapter name="Domain Nat" switchname="Domain Nat"> <ipv4 address="192.168.140.10" defaultgateway="192.168.140.1" subnetmask="24" dnsserver="192.168.140.10"/> </adapter> </adapters> </vm> <vm name="SA-DHCP1" template="Template Windows Server 2012 R2 Datacenter CORE" computername="SA-DHCP1"> <dsc configname="MEMBER_DHCP" configfile="MEMBER_DHCP.DSC.ps1"> <parameters> DomainName = "LABBUILDER.COM" DCname = "SA-DC1" DomainAdminPassword = "P@ssword!1" PSDscAllowDomainUser = $true Scopes = @( @{ Name = 'Site A Primary'; Start = '192.168.140.50'; End = '192.168.140.254'; SubnetMask = '255.255.255.0'; AddressFamily = 'IPv4' } ) Reservations = @( @{ Name = 'SA-DC1'; ScopeID = '192.168.140.0'; ClientMACAddress = '000000000000'; IPAddress = '192.168.140.10'; AddressFamily = 'IPv4' }, @{ Name = 'SA-DHCP1'; ScopeID = '192.168.140.0'; ClientMACAddress = '000000000002'; IPAddress = '192.168.140.16'; AddressFamily = 'IPv4' } ) ScopeOptions = @( @{ ScopeID = '192.168.140.0'; DNServerIPAddress = @('192.168.140.10'); Router = '192.168.140.1'; AddressFamily = 'IPv4' } ) </parameters> </dsc> <adapters> <adapter name="Domain Nat" switchname="Domain Nat"> <ipv4 address="192.168.140.16" defaultgateway="192.168.140.1" subnetmask="24" dnsserver="192.168.140.10"/> </adapter> </adapters> </vm> </vms> </labbuilderconfig> |