SCVMM 2012 R2 step by step installation and deployment guide

This is (not so) quick step-by-step guide how to install System Center Virtual Machine Manager 2012 R2. I assumed that you have an account on MS Technet to download evaluation software, you know how to install Windows Server 2012 or Hyper-V and you have lab environment to run few Virtual Machines.

I. Prerequisites

First thing is to download software. Here is the list to download:

Prepare 2 hosts. One is for SQL server, second is for SCVMM. SCVMM machine requires 4GB of RAM. Install Windows 2012 R2 on them and add to your domain. In my lab they are called SQL22 and SCVMM23.

II. AD Part.

  1. Create domain accounts and groups:
    – SCRunAs user account for System Center host management.
    – SCVMMsvc user account for running System Center service.
    – SCVMMAdmins group for System Center Administrators
    – SQLAdmins group for SQL Administrators
    – GroupMSA group for group managed service account for SQL.
  2. Add your SQL server computer account (SQL22 in my case) to GroupMSARemeber to restart this machine to pick up group membership. Group Managed Service Accounts simplify password management and enhance security.
  3. Add SCRunAs, SCVMMsvc and your personal domain account to SCVMMAdmins group.
  4. Add SCVMMsvc and your personal domain account to SQLAdmins group.
  5. On your domain controller login as a domain administrator, open powershell window and enter following command:
    Add-KdsRootKey –EffectiveTime ((get-date).addhours(-10))
    It should return GUID of your Key Distribution Service root key which looks like:
    Guid
    —-
    e736c1ab-da94-50c1-3742-ed387fc1d892
    Do not use  ((get-date).addhours(-10)) on your production systems, just wait (up to 10 hours).
  6. Now you can create Group Managed Service Account that will be used by sql services. Enter following command:
    -New-ADServiceAccount -name name_of_your_gmsa -DNSHostName your_doman_controller_name -PrincipalsAllowedToRetrieveManagedPassword YourGroupNameHere
    In my case it is:
    New-ADServiceAccount -name SQLsvc -DNSHostName DC21 -PrincipalsAllowedToRetrieveManagedPassword GroupMSA
  7. Check if it is succesfull:
    ADServiceAccounts

III. SQL installation part.

    1. First you must install your service account on the computer that will use it, so log on to your sql server (SQL22 in my case), open powershell and enter following command:
      Install-WindowsFeatures RSAT-ADDS
      Install-ADServiceAccount SQLsvc
    2. Test if installing was succesfull.  This would be command to be issued:
      Test-ADServiceAccount SQLsvc
      You should get “True” as a result:
      Tst-ADServiceAccount returns true
    3. Install .Net 3.5 on SQL server. Now it is a feature so use “Add roles and feature” wizard or enter powershell cmdlet:
      Install-WindowsFeature NET-Framework-Core
    4. Now you can start SQL Server installation process. From feature selection choose all from “Database engine services” and “Management tools – Complete”.
    5. On “Server Configuration” screen set “SQL Server Agent” and “SQL Server Database Engine” startup type to automatic and change account name for these services to your gMSA account prepared to work with SQL. In my case it is sqlsvc:
      SQL server configuration with gMSA
    6. On Database “Engine Configuration” screen choose Windows Authentication Mode and add SQLAdmins group to SQL Adminsitrators.
    7. Open Windows Firewall with Advanced Security and add new inbound rule. Choose program and point to sqlservr.exe in your SQL 2012 installation folder. Default path is:
      %ProgramFiles%\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe

IV. System Center Virtual Machine Manager part.

    1. Now log on to your System Center Virtual Machine Manager server, you have to do few things here. Install Windows Assessment and Deployment Kit. Choose “Deployment Tools” and “Windows Preinstalaltion Environment”.
    2. Then install “SQL 2012 Native Client” and “SQL 2012 Command Line Utilities” from SQL Feature Pack. Both download links are provided at the top of this post.
    3. Add your System Center Admins group and SCVMMsvc and to local admins group.
    4. Now you can start SCVMM installation. Unpack downloaded SCVMM files and run setup.
    5. Click Install on next screen and then select both “VMM Management server” and “VMM console”.
    6. On database configuration screen enter your SQL server name, leave port number blank, provide SCVMMsvc account information and make sure new database is selected:System Center database configuration
    7. On “Create service account and distributed key management” screen provide SCVMMsvc credentials and click next.
    8. After installation you should have shortcut to SCVMM Console on your desktop.
Close Menu