Completely unattended build of Microsoft Hyper-V hosts when cloned from sysprep'ed "Gold" image.
- A Windows 2012 R0 or Windows 2012 R2 base install to act as your "Gold" image
- Properly completed nic-config.csv - If using Cisco UCS, MAC addresses are simple enough to export once service profiles have been created
- Reset all NICs to DHCP
- Create NIC teams
- Put IP config(s) on NIC Teams
- Rename host if required
- Set correct regional settings for current user
- Set correct regional settings for welcome screen
- Set correct regional settings for new user accounts
- Set correct time zone
- Install Windows Hyper-V feature - http://technet.microsoft.com/en-us/library/hh825322.aspx
- Install Windows Hyper-V tools features
- Enable Hyper-V Powershell Cmdlets
- Install Windows MPIO feature - http://technet.microsoft.com/en-us/library/ee619752(v=ws.10).aspx
- Disable Trim/Umap - http://technet.microsoft.com/en-us/library/ff383236(v=ws.10).aspx
- Disable ODX - http://technet.microsoft.com/en-us/library/jj200627.aspx
- Set up for Second Run and Reboot
- Create and Configure Hyper-V Switches
- Set VM migration network NOTE: 2012R2 disallows this without an AD
- Disable "Use any network for VM migration"
- Set maximum VM + storage migrations to 4
- Enable VM migration NOTE: 2012R2 disallows this without an AD
- Instruct MPIO to claim all multipaths to storage
- Rename Administrator and Guest accounts - if still default
- Re-add logon legal caption and notice
- Remove C:\Windows\Panther folder & files left after sysprep
- Remove C:\Scripts folder
- Final Reboot
- Prepare base 2012 Rx image (patch, install drivers, etc, etc)
- Copy nic-config.csv, PostSysprep1.bat, PostSysprep2.bat, R0Autounattend.xml, R2Autounattend.xml (whichever is appropriate to your O/S), SetupHost.ps1 and zzz-Run-Sysprep.bat to C:\Scripts folder
- Update nic-config.csv with config info pertaining to target Hyper-V servers
- Run zzz-Run-Sysprep.bat from and administrative command prompt to execute sysprep and shutdown the gold image
- Clone gold image to target systems using your preferred method (SAN LUN clone / drive snapshot / ghost / whatever)
- Start target servers
- Grab a coffee, your Hyper-V servers will build themselves !
Parts "Leveraged" from http://blogs.technet.com/b/heyscriptingguy/archive/2012/11/21/use-powershell-to-configure-the-nic-on-windows-server-2012.aspx