You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Minimize
Search in All Title Contents
 
     

Hydration Kit for ConfigMgr 2012 R2 SP1 with SQL Server 2014 SP1

May 27 2015

Here is a download that builds a complete ConfigMgr 2012 R2 SP1 with SQL Server 2014 SP1 infrastructure. Tested on both Hyper-V and VMware virtual platforms.

The Hydration Kit contents

The kit allows you to automatically deploy the below list of servers. The only server you really need to build first is DC01, since that’s the domain controller, and the CM01 server will join the domain. Turns out joining a domain is tricky without a domain controller :)

  • DC01. Windows Server 2012 R2, DC, DHCP and DNS
  • CM01. Windows Server 2012 R2, SQL Server 2014 SP1, System Center 2012 R2 SP1 Configuration Manager

Download the Hydration Kit for ConfigMgr 2012 R2 SP1 with SQL Server 2014 SP1 (135 kb).

Update 2015-10-07: Fixed a bug in the Configure-SQLServerMemory.wsf script (Script used the wrong folder for the SQL tools).

Overview

Shorthand, to build the lab there are three steps you need to do:

  1. Download the necessary software
  2. Prepare the Hydration Environment
  3. Deploy the virtual machines

Note: Detailed instructions are further down this page... see the Step-by-Step Guide section.

image 
The Deployment Wizard displaying the available task sequences.

image 
The CM01 task sequence, building a complete ConfigMgr 2012 R2 SP1 site server with SQL Server 2014 SP1.

Step-by-Step Guide 

Step 1 - Download the software

On the machine (client or server) that you use to manage Hyper-V or VMware, create the C:\Downloads folder.

Download the following software:

  • The Hydration Kit sample files (download)
  • BGInfo
  • MDT 2013
  • Windows ADK 8.1
  • Windows Server 2012 R2
  • SQL Server 2014 Standard with SP1 x64

    Note: It really has to be the x64 version of SQL Server 2014 with SP1. ConfigMgr does not support x86 version. If downloading the evaluation version from Microsoft, you need to “hack” the URL because even if you select the x64 version, you get the x86 ISO. When I tested today the x64 URL was: http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso
    • ConfigMgr 2012 SP2 + PreReqs (the download is named System Center 2012 Configuration Manager and Endpoint Protection with Service Pack 2)
    • ConfigMgr 2012 R2 SP1 (the download is named System Center 2012 R2 Configuration Manager Service Pack 1)

    Note #1: To download the complete standalone ADK 8.1 setup, run adksetup.exe /layout "C:\Downloads\ADK 8.1"

    image
    The ADK 8.1 folder, after download the standalone setup.

    Note #2: To download the ConfigMgr 2012 SP2 pre-requisites, run the SMSSETUP\BIN\X64\Setupdl.exe application from the ConfigMgr installation files.

     
    Running the Setupdl.exe to download the ConfigMgr 2012 SP2 PreReqs.

     

    Step 2 - Prepare the Hydration Environment

    Create the hydration deployment share

    1. On the Windows machine that you use to manage Hyper-V or VMware, install Windows ADK 8.1 (adksetup.exe) selecting only the following components:

      Deployment Tools
      Windows Preinstallation Environment (Windows PE)


      ADKSetup_thumb1
      The Windows ADK 8.1 Setup.

    2. Install MDT 2013 (MicrosoftDeploymentToolkit2013_x64.msi) with the default settings.
    3. Extract the HydrationCM2012R2SP1.zip sample file to C:\.
    4. You should now have the following folder containing a few subfolders and PowerShell scripts.

      C:\HydrationCM2012R2SP1\Source

    5. In an elevated (run as Administrator) PowerShell command prompt, configure Execution Policy in PowerShell by typing the following command:

      Set-ExecutionPolicy Unrestricted –Force

      Note:
      If you are running Windows Server 2012 R2 on your machine you don’t need to set the policy, it’s set by default. 

    6. In the PowerShell command prompt, create the hydration deployment share by running the following command

      C:\HydrationCM2012R2SP1\Source\CreateHydrationDeploymentShare.ps1

    image
    Result after running the CreateHydrationDeploymentShare.ps1 script.

    Populate the hydration deployment share with the setup files

    1. Copy the BGInfo file (bginfo.exe) to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Install - BGInfo\Source

    2. Copy the Windows Server 2012 R2 installation files (the content of the ISO, not the actual ISO) to the following folder:

      C:\HydrationCM2012R2SP1\DS\Operating Systems\WS2012R2
    3. Copy the Windows ADK 8.1 installation files to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Install - Windows ADK 8.1\Source
    4. Copy the SQL Server 2014 with SP1 installation files (the content of the ISO, not the actual ISO) to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Install - SQL Server 2014\Source

      image
      The SQL Server 2014 with SP1 installations files copied.

    5. Copy the ConfigMgr 2012 SP2 installation files (extract the download) to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Install - ConfigMgr 2012 SP2\Source

    6. Copy the ConfigMgr 2012 SP2 PreReqs files to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Install - ConfigMgr 2012 SP2\PreReqs
    7. Copy the ConfigMgr 2012 R2 SP1 files to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Install - ConfigMgr 2012 R2 SP1\Source

    8. Copy the ConfigMgr 2012 SP2 EXTADSCH.exe file (SMSSETUP\BIN\X64) to the following folder:

      C:\HydrationCM2012R2SP1\DS\Applications\Configure - Extend AD for ConfigMgr 2012\Source

    Create the hydration ISO (MDT 2013 offline media item)

    1. Using Deployment Workbench (available on the Start screen), expand Deployment Shares, and expand Hydration CM2012 R2 SP1.
    2. Review the various nodes. The Applications, Operating Systems and Task Sequences nodes should all have some content in them.

     image     
    The Hydration deployment share, listing the task sequences.

    1. Expand the Advanced Configuration node, and then select the Media node.
    2. In the right pane, right-click the MEDIA001 item, and select Update Media Content.

    Note: The media update will take a while to run, a perfect time for a coffee break…

    After the media update you will have a big ISO (HydrationCM2012R2SP1.iso ) in the C:\HydrationCM2012R2SP1\ISO folder. With all optional software, the HydrationCM2012R2SP1.iso should be about 12 GB in size.

    image 
    The HydrationCM2012R2SP1.iso

    Step 3 - Deploy the virtual machines

    Note: All accounts, including Administrator, have a password of P@ssw0rd. If you want a PowerShell script that creates these VMs for Hyper-V, check the C:\HydrationCM2012R2SP1\Source\Extra folder for two sample scripts. One for building Gen 1 VMS, and one for building Gen 2 VMs.

    image 
    Sample PowerShell script for creating the virtual machines.

    Deploying DC01

    Using Hyper-V Manager or VMware Sphere, create a virtual machine with the following settings:

    • Name: DC01
    • Hard drive: 100 GB (dynamic disk)
    • Memory: 1 GB
    • Network: Your lab network
    • Image file (ISO): C:\HydrationCM2012R2SP1\ISO\HydrationCM2012R2SP1.iso
    1. Start the DC01 virtual machine. After booting from HydrationCM2012R2SP1.iso , and after WinPE has loaded, select the DC01 task sequence.
    2. Wait until the setup is complete and you see the Hydration Complete message in the final summary.
    3. Leave DC01 running while deploying the CM01 virtual machine.

    Deploying CM01

    Once the domain controller (DC01) is up and running, you can deploy the CM01 virtual machine. Don’t forget to leave DC01 running while deploying CM01 since it is joining the domain during deployment. Use the following settings for the CM01 virtual machine:

    • Hard drive: 300 GB (dynamic disk)
    • Memory: 6 GB RAM minimum, 16 GB recommended

      Additional Configuration Notes:

      Note: Again, by default, all accounts, including Administrator, have a password of P@ssw0rd.

      If you need to change server names, IP addresses, domain names, installation, passwords, etc. in the environment, the main configuration is stored in the four .ini files in the C:\HydrationCM2012R2SP1\ISO\Content\Deploy\Control folder.

      image 
      The configuration files for the Hydration Kit.

      For ConfigMgr 2012 R2 (CM01) you need to update the following files::

      • C:\HydrationCM2012R2SP1\DS\Applications\Install - ConfigMgr 2012 SP2\ConfigMgr2012Unattend.ini
      • C:\HydrationCM2012R2SP1\DS\Applications\Install - SQL Server 2014\ConfigurationFile.ini

      If you need to change the various service accounts, you need to to modify the Configure-CreateADStructure.wsf script in the C:\HydrationCM2012R2SP1\DS\Applications\Configure - Create AD Structure folder.

      If you change the Administrator password, and/or domain name, you also need to update the Authorize DHCP credentials in the DC01 task sequence.

      DC01_thumb1
      The Authorize DHCP action in the DC01 task sequence.









      Deployment News


      Happy deployment, and thanks for reading!


      What our lawyers makes us say:

      This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

      Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

      Shorthand: Don't pass off our work as yours, it's not nice.

      Blog Archive

      Minimize




      Where you can meet us!

      Live Stream Recordings
      ConfigMgr 1806 and W10 OSD

      5 Days - Mega Geek Week 
      (multiple classes, ConfigMgr, OSD etc.)
      - Johan Arwidmark, Mikael Nystrom...
      Jun 10, 2019, Chicago, IL, US

      4 Days - Windows 10 OSD Classes
      - Johan Arwidmark
      May 20, 2019, San Diego, CA, US
      Jun 17, 2019, Culemborg, NL
      Jul 8, 2019, Phoenix, AZ, US

      5 days - ConfigMgr Classes
      - Johan Arwidmark and Kent Agerlund
      Apr 8, 2019, Chicago, IL, US
      Apr 22, 2019, Houston, TX, US

      Video-based trainings
      https://online.truesec.com
      https://deploymentartist.com/Training/Videos

      MDT, Windows 10 and ConfigMgr Books
      http://deploymentartist.com/Books

      Contact Info
      http://deploymentresearch.com/theteam