Building Your Own Private Cloud - Home Lab: Prepared by
Building Your Own Private Cloud - Home Lab: Prepared by
Prepared by
Manish Dhall
Revision
Change Record
Date Author Version Change reference
April 22 2013 Manish Dhall 1 Rev 1
April 30 2013 Manish Dhall 1 Rev 2
Page ii
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Table of Contents
1 Introduction .......................................................................................................... 1
2 Background ........................................................................................................... 1
5 Prerequisites ......................................................................................................... 3
5.1 Infrastructure Components.............................................................................................. 3
5.1.1 Physical Servers / Hardware ...................................................................................................... 3
5.1.2 Software .................................................................................................................................... 4
5.2 Active Directory Forest .................................................................................................... 4
5.3 Hyper-V Host with no VMs workload ............................................................................... 4
5.4 Hyper-V Host with VMs workload .................................................................................... 4
7 Planning ................................................................................................................ 2
7.1 IP, Subnet & VLAN ........................................................................................................... 2
7.2 Managed Switch Configurations ...................................................................................... 2
7.3 Security Groups Mapping to VMM Roles.......................................................................... 2
Administrators................................................................................................................. 2
Fabric Administrators ...................................................................................................... 2
Read Only Administrators ................................................................................................ 2
Tenant Administrators ..................................................................................................... 2
Application Administrators .............................................................................................. 3
Page iv
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create Logical Networks & Associate a Network Site for each Logical Network .............. 28
Create IP Pool ................................................................................................................ 29
Crate Port Profile ........................................................................................................... 31
Native Profile................................................................................................................. 32
Port Profile for Management ......................................................................................... 32
Create Logical Switch, to be applied to the Host ............................................................ 34
Add Converged Uplink Port Profile created in the previous step .................................... 35
Create VM Networks & assign them to Logical Networks created earlier ....................... 37
Host view for Logical Switches, before changes.............................................................. 38
Create Logical Converged Teamed Switch on the Host ................................................... 39
Create Virtual Network Adapter with the linked Port Profiles & VM Networks ............... 39
Adding multiple Physical NICS in the Team..................................................................... 40
Moving the VMs to new Converged Logical Switch ........................................................ 40
Moving the Management Network to the new Converged Logical Switch ...................... 40
DNS Cache refresh ......................................................................................................... 41
14 Configuring second Hyper-V Host with Converged Teamed Logical Switch ....... 42
Create Logical Converged Teamed Switch on the Host ................................................... 42
Adding multiple Physical NICS in the Team..................................................................... 43
Page v
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Disk Management view of FS2 after creating Cluster...................................................... 51
Page vi
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Start the Cloned VM ...................................................................................................... 71
Sysprep Process ............................................................................................................. 71
21.3 Create and deploy a new VM using a virtual machine template in VMM ........................ 72
Creating VM Template ................................................................................................... 72
Deploy VM using Template ............................................................................................ 74
23 References...................................................................................................... 95
23.1 Configuring Networking in VMM Overview .................................................................... 95
23.2 Common Scenarios for Networking in Virtual Machine Manager ................................... 95
23.3 Configuring Ports and Switches ...................................................................................... 95
Page vii
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
23.4 VMM2012 Host and VM Networking ............................................................................. 95
23.5 Object Model for Logical Switch..................................................................................... 95
Page viii
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
1 Introduction
This guide helps in setting up the Private Cloud Fabric Layer in Home Lab.
Private/Home labs are vital to everyone in IT, providing isolated test environments of learning and
testing. These environments can be challenging to put together and simulate what we may see at
our customers – and this topic is the purpose of this presentation.
The guide contains step by step instructions for standing up the LAB components, setup the
Converged Teamed Switch, and then migrate the existing VMs workload from traditional Hyper-V
switch to the newly created Converged Teamed Network Switch, with no downtime for Hyper-V
Host & VMs.
2 Background
This Step-by-Step Guide is developed as an extracted contents from several Datacentre
Optimization, Private Cloud Trainings and TechNet Guides. For deeper dive with recommended
best practices, it is highly recommended to refer the appropriate guides, as mentioned.
This document has strength of cutting the chase, and standing up the Home lab environment’s
Private Cloud Fabric layer in a speedier & recommended way.
Page 1
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
SCVMM SP1 Installation Section Contains step by step instructions for
complete installations of System Center Virtual
Machine Manager SP1
Installing Highly Available VMM Management Server Section contains Prerequisite, Facts, Limitations, Dos
& DON’Ts in setting up the High Available SCVMM
SP1.
Configuring Storage in VMM Section contains supported Storage types with Dos &
DON’Ts, followed with setting up a High Available
Network File Share in VMM Library, to be used for
Files, VMs, ISOs and other Library components
transfer between Private Cloud & Local Network
space.
Configuring VMM Library Section contains types of VMM Library resources &
step by step instructions to setup VMM library share
Creating Virtual NICs on Hyper-V Hosts Section contains step by step instructions for creating
a converged Virtual Network Switch on Hyper-V Hosts
using SCVMM 2012 SP1
Configuring second Hyper-V Host with Converged Section contains step by step instructions for creating
Teamed Logical Switch a converged Virtual Network Switch on Hyper-V Hosts
using SCVMM 2012 SP1
Configuring File Servers with Converged Teamed Section contains step by step instructions for creating
Logical a converged Virtual Network Switch on Hyper-V Hosts
using SCVMM 2012 SP1
Building High Available File Server (Storage) Cluster Section contains step by step instructions in building
High Available Hyper-V Clusters to be served as High
Available Storage Cluster
Building High Available Compute Cluster Section Contains step by step instructions in building
High Available Hyper-V Clusters to be served as High
Available Compute Cluster
Managing Fabric Updates Section contains step by step instructions in
configuring SCVMM to use WSUS Server for deploying
the Windows updates on Fabric Components
Creating a Private Cloud Section contains step by step instructions to setup a
Private Cloud (For this lab I used the name PvtCloud1)
on the Fabric Layer.
Calculating Host Ratings Section contains the explanations of rating
mechanisms of Hyper-V Hosts in placement process
of VMs
Creating & Deploying Virtual Machine Section contains step by step instructions in creating
a Gold Image Master VM to be used in deploying
future VMs using VMM’s Template feature & manual
process without using VMM’s Template feature
Deploying App Controller Section contains step by step instructions in
deployment of App Controller
References Section contains additional references for deep dive
Section contains additional useful commnads
Annex-A – Misc. Commands
Page 2
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
Section contains steps to setup System Center 2012
Annex-B – SC2012 SP1 Configuration Analyzer Setup SP1 Configuration Analyzer
Section contains steps to delete the converged virtual
Annex-C - Deleting the Converged Switch network switch on Hyper-V Hosts
4 Terminology Used
Acronym Details Notes
VM Virtual Machine A guest operating system running on Hyper-V Host
vSwitch Virtual Switch How a guest VM connects to a network.
vNIC Virtual NIC A software NIC created in VM guest & Host Operating System
P-NIC Physical NIC Physical NIC on the Physical Server as a member of the
Teamed NIC
tNIC Teamed NIC A software NIC created with LBFO NIC Teaming. It contains
one or more Physical NICs as its team members.
VLAN Virtual Local Area Network A single layer-2 network may be partitioned to create
multiple distinct broadcast domains, which are mutually
isolated so that packets can only pass between them via one
or more routers; such a domain is referred to as a Virtual
Local Area Network, Virtual LAN or VLAN.
LNet Logical Network Logical Networks created using VMM Console
HV-HB Hyper-V Heartbeat Dedicated network subnet on a dedicated VLAN for Hyper-V
Heartbeat communications
HV-LM Hyper-V Live Migration Dedicated network subnet on a dedicated VLAN for Hyper-V
VMs Live Migrations
5 Prerequisites
The following Prerequisites must be met to complete the process outlined in the document.
Page 3
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
FS1 Storage Layer Windows 2012 w/ Hyper-V Role
FS2 Storage Layer Windows 2012 w/ Hyper-V Role
iSCSI-Tgt iSCSI Target presenting LUNs Windows 2012 w/ iSCSI Target Role
SCVMM SP1 System Center Virtual Machine Manager SP1
Managed Switch VLAN & QoS
5.1.2 Software
Type Details
Operating System Windows 2012 x64 Datacentre Edition
System Center 2012 SP1 System Center Virtual Machine Manager SP1
System Center App Controller SP1
SQL SQL Server 2012 x64 Standard or Datacentre Edition
Dependent Components Various dependent components are listed under the
product installation process
Windows Remote Management (WinRM) service
Microsoft .NIT Framework 4 / 4.5
Windows deployment and installation kit
Page 4
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
6 Architectural Design
AppController
Tools
LAN-Cluster
Quorum-Hyper-V
Team-LAN-VMs
Team-LAN-VMs
LAN-HostMgmt
LAN-HostMgmt
Teamed NICs
Teamed NICs
Teamed NICs
iSCSI Target
HA FS
& VMM Clustered
Roles
3 TB
1 TB
950 MB Quorum-FS
1 GB Quorum-Hyper-V
DC1 DC2
DC3 DC4
1 TB VMs CSV
ADIT.com Default Site
600 GB VMs HA SMB Share
Page 1
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
6.2 Hyper-V Virtual Switch Architecture - Before & After
Hyper-V Switch Hyper-V Switch
Before After
iSCSI Target iSCSI Target
192.168.2.0/24 192.168.2.0/24
Site
P-NIC6
vNIC-
LNet
P-NIC3
LM
172.16.13.0/24
172.16.13.0/24
Management OS
Site
vNIC-
10.10.13.0/24
LNet
vNIC-LM
LM
P-NIC2
10.10.13.0/24
P-NIC5
vNIC-Mgmt
Site
Mgmt
vNIC-
192.168.2.0/24
LNet
192.168.2.0/24
P-NIC4
LBFO Teamed NIC
P-NIC4
VM VM
P-NIC3
External
P-NIC5
VM VM
vSwitch 192.168.2.0/24
Teamed NIC
VM VM
Hyper-V Host
P-NIC6
P-NIC2
Hyper-V Host
Internal Internal
VM
vSwitch VM vSwitch
P-NIC1
P-NIC1
Internal Internal
VM vSwitch VM vSwitch
Page 2
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
6.3 Hyper-V Virtual Switch Components - Before & After
Windows 2008 R2 SP1 Windows 2012 / SCVMM SP1
Physical NICs
Physical NICs
Host
Teamed NIC
Teamed NIC
Host
Logical Switch
(vSwitch)
vSwitch
Fabric
Logical Network
Logical Network
VMM
Fabric Logical Network Site
Definition
Logical Network Site
Definition
VM vNIC
VM vNIC
VM vSwitch
VM
VM Network Virtual Adapter Port
Connection Profile
VLAN ID VLAN ID
Page 3
Building Your Own Private Cloud – Home Lab, Version 1
Prepared by [email protected]
6.4 VMM Networking Creation Process Flow
Physical NICs
Host
Site / IP Pool
Logical Network
/ VLAN
Logical Switch
Virtual Ports
(vSwitch)
Converged Switch
VM s vNIC
Page 1
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
7 Planning
Page 2
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Members of the Tenant Administrator user role can
manage self-service users and VM networks.
Application App-Admins Self Service User
Administrators Members of the Self-Service User role can create, deploy,
and manage their own virtual machines and services by
using the VMM console or a Web portal.
Reference For more details http://technet.microsoft.com/en-us/library/gg696971.aspx
Page 3
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Under STORAGE POOLS, click the TASKS list, and then
click New Storage Pool and complete the wizard
Creating Storage Space (Virtual Disk)
Next, you must create one or more virtual disks from
the storage pool. When you create a virtual disk, you
can select how the data is laid out across the physical
disks. This affects both reliability and performance.
You can also select whether to create thin- or fixed-
provisioned disks.
Under VIRTUAL DISKS, click the TASKS list, and then
click New Virtual Disk
Page 4
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 5
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create a Volume
Page 6
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 7
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
New iSCSI Virtual Disk wizard under TASKS menus of
8.3 Presenting the LUN to another Host iSCSI VIRUAL DISKS option of iSCSI tab of File and
Storage Services.
over iSCSI
Page 8
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 9
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
8.4 Creating Volume on the Host
Page 10
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 11
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
9 SCVMM SP1 Installation
http://technet.microsoft.com/en-
9.1 Systems Requirements us/library/gg610562.aspx
Page 12
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
When you install Windows ADK, select the
Deployment Tools and the Windows Pre-installation
Environment features.
Page 13
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
When you install SQL Server, select the Database
Engine Services and the Management Tools -
Complete features.
Page 14
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 15
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
`
Run Windows Updates
Specifying a Service Account http://technet.microsoft.com/en-
us/library/gg697600.aspx
Configuring Distribution Key Management http://technet.microsoft.com/en-
us/library/gg697604.aspx
Page 16
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
9.4 Installing VMM SP1
Page 17
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 18
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
10 Installing Highly Available VMM Management Server
10.1 Prerequisites
Following pre-requisites are required for Installing High Available VMM Management Server
Tasks Description
A Failover Cluster Running Windows 2008 R2 or Windows 2008 R2/SP1
or Windows Server 2012
http://technet.microsoft.com/en-
us/library/hh831579.aspx
http://technet.microsoft.com/library/cc730692.aspx
System Requirements http://technet.microsoft.com/en-
us/library/gg610592.aspx
You must use a domain account for a highly http://technet.microsoft.com/en-
available VMM management server. us/library/gg697600.aspx
You must use distributed key management for a http://technet.microsoft.com/en-
highly available VMM management server us/library/gg697604.aspx
You have a computer with a supported version of
Microsoft SQL Server installed and running before
you start the installation of VMM
IMPORTANT Do not create highly available file shares for the VMM
library on the same cluster as a highly available VMM
management server installation. VMM does not
support this configuration.
Page 19
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
11 Configuring Storage in VMM
Page 20
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
11.2 Adding A File share to VMM for VMs deployment in Private Cloud
Task Details
Provision an iSCSI LUN Deployed LUN will be used for the deployment of
VMs thru VMM
In this Lab walkthrough, it is presented to the Server
as “M:”
Add a Storage Device thru Providers
Page 21
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Add a File Share
Page 22
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Present the VMM Managed Share to the Hyper-V
Clustered Host Group
Page 23
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
12 Configuring VMM Library
The following table lists the file types that are automatically indexed and added as physical library resources
during library refreshes in VMM.
Page 24
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Also, realize that when you delete an .inf driver
package from the library, VMM deletes the
entire folder where the driver .inf file resides.
Answer Files .inf
.xml
Custom Resources Folders with .CR extension
Virtual Floppy Disk .vfd (Hyper-V)
.flp (VMware)
IMPORTANT Do not create highly available file shares for the VMM library on the same cluster as a highly
available VMM management server installation. VMM does not support this configuration.
Task Details
Create a standard Share folder Assign appropriate file share & NTFS permissions
Start the wizard “Add File Shares”
Page 25
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
OPTIONAL
Delete the default VMM Library Share, as newly
added share is set as default share for the VMM
Page 26
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Add Resources to the VMM Library Share For File based resources, create appropriate folder
structure in the share & copy the required file based
resources in the folders
Refresh the Library Share
Page 27
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Change the Global Settings on VMM
Add Host/s in VMM under the designated Host Make sure Added hosts are communicating fine with
Group the VMM Server by running “refresh host”.
Create Logical Networks & Associate a Network Site
for each Logical Network
Page 28
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create IP Pool By right clicking on the Logical Network, just created
above
Page 29
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 30
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Start Configuring the Host by applying these changes One for the Uplink & One for the Converged Network,
Crate Port Profile we will create
http://technet.microsoft.com/en-
us/library/jj721570.aspx
Page 31
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Native Profile
for Uplink profile & Link to the N/W Sites we have
created
(Converged Team Uplink Profile)
Page 32
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 33
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create Logical Switch, to be applied to the Host
Page 34
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Add Converged Uplink Port Profile created in the
previous step
Page 35
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Assign Port Classification for the Logical Switch &
Link the Port Profile created earlier
Page 36
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
For Cluster add the Virtual Port
Page 37
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
All required Objects creation is completed now
Host view for Logical Switches, before changes
Page 38
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create Logical Converged Teamed Switch on the Host
Page 39
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Adding multiple Physical NICS in the Team Now that our new VNIC is ready to serve the
host, assign a new IP address in the management
subnet, and RDP to the host using the new VNIC
with the new IP.
From the Server Manager -> NIC Team option,
add additional Physical NICS to the newly created
ConvergedSwitch team.
Moving the VMs to new Converged Logical Switch Migrate all the VMs to the new created Converged
Teamed vSwitch with appropriate VLAN ID
Moving the Management Network to the new Important Make sure to have either Physical
Converged Logical Switch Access or Direct Consol Access (ILO/KVM) of the
server, before making changes to the Management
Network.
Check RDP & other required Connectivity
Assign the new IP address to the new vNIC-Mgmt In the screenshot below:
Old traditional Hyper-V Switch:
vEthernet(External)
New Converged Switch’s vNIC: vEthernet(vNIC-
Mgmt)
Page 40
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Make RDP connection off the new IP on Converged Remove the Hyper-V vSwitch using the old NIC
Switch vNIC Team thru Hyper-V Virtual Switch Manager
Now that you have connectivity to Host 1 thru
new IP & new interface, Now the old interface
with it’s NIC Team can be torn down.
Rename (as required) the Display Names of the
NICs in Network Connection Window. Screenshot
listed below for the reference
Once the physical NIC becomes available, join
this Physical NIC to the new Converged Teamed
Virtual Switch.
Page 41
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
14 Configuring second Hyper-V Host with Converged Teamed Logical
Switch
In order to build the compute cluster, second Hyper-V host is needed with the same networking
configurations configured, as the first Hyper-V Host. As an additional note, Hardware configurations
of the second Hyper-V physical server is same as the first Hyper-V physical server.
Tasks Details
Create Logical Converged Teamed Switch on the Host
Note Make sure there is no static IP assigned to
the P-NIC, going to associate with Converged Switch
in this step.
Page 42
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Converged Switch has been created on the Hyper-V Host
Adding multiple Physical NICS in the Team Please follow the steps as described above, while
performing on the first Hyper-V Host
Page 43
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
15 Configuring File Servers with Converged Teamed Logical
Converged Teamed Logical Switch is needed on both File Servers, FS1 & FS2. These servers will be
the member nodes of the High Available File Server Cluster.
Tasks Details
Create Logical Networks Logical Networks have been created for FS1. Same
Logical Network can be used for the FS2.
Page 44
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create Logical Switch
Page 45
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 46
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Create VM Networks
Page 47
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Repeat the following steps on FS1 & FS2
Create Logical Converged Teamed Switch on the File
Servers
Page 48
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Converged Teamed Logical Switch has been created Join other remaining P-NICs to the Converged Switch
Team
Page 49
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Network Connections view of FS2
Creating High Available FS Hyper-V Cluster Running Failover Cluster Validate Configuration
Wizard
Page 50
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Rename the Cluster Network names to be more
descriptive
Page 51
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
17 Building High Available Compute Cluster
Converged Logical Switch created by SCVMM SP1
will be used in building the Hyper-V Cluster for
building High Available Compute Infrastructure
SCVMM view of Converged Logical Switch on Hyper-V Hosts
Page 52
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Network Connections view of Hyper-V Host2
Page 53
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Rename the Cluster Network names to be more
descriptive
Page 54
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
18 Managing Fabric Updates
The procedures in this scenario explain how to set up update management in System Center 2012 –
Virtual Machine Manager (VMM) and how to perform updates on physical servers that are managed
by VMM.
VMM supports on demand compliance scanning and remediation of the fabric. Administrators can
monitor the update status of the servers. They can scan for compliance and remediate updates for
selected servers. Administrators also can exempt resources from installation of an update.
18.1 Prerequisites
Requirements Details
Virtual Machine Manager (VMM) provides the Virtual machine hosts
capability to use a Windows Server Update Services Library servers
(WSUS) server to manage updates for the computers
VMM management server
in your VMM environment
PXE servers
The WSUS server
Software Requirements
A 64-bit edition of Windows Server Update Services WSUS 4.0 is a server role that is integrated with
(WSUS) 3.0 Service Pack 2 (SP2) Windows Server 2012.
A 64-bit edition of Windows Server Update Services VMM can use either a WSUS root server or a
(WSUS) 4.0 downstream WSUS server. VMM does not
support using a WSUS replica server.
The WSUS server can either be dedicated to
VMM or can be a WSUS server that is already in
use in your environment.
If you do not install WSUS server on the same
computer as the VMM management server, you
must install a WSUS Administrator Console on
the VMM management server. If you use a highly
available VMM management server, you must
install a WSUS Administrator Console on each
node.
Adding WSUS to VMM After you add a WSUS server to VMM, you
should not manage the WSUS using the WSUS
console.
If you add the update server to VMM in Single
Sockets Layer (SSL) mode, you can update proxy
server credentials for synchronization in the
update server properties.
If the update server is not added to VMM in SSL
mode, proxy server credentials are managed in
the WSUS Administration Console.
User Roles & Update Management Only administrators can manage the update
server and synchronize updates.
Page 55
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Delegated administrators can scan and
remediate updates on computers that are within
the scope of their user roles.
Configure Update Baseline You can use two methods to prepare update
baselines for remediation:
Use one of the built-in update baselines that
VMM provides: Sample Baseline for Critical
Updates and Sample Baseline for Security
Updates.
Create your own update baseline.
Page 56
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Scan for Update Compliance After a compliance scan, each update has a
compliance status of Compliant, Non Compliant,
IMPORTANT Error, or Unknown
You should perform all updates in Compliance view. The following changes can cause an Unknown update
The Scan and Remediate actions also are available in status for a computer, and should be followed by a
Fabric Resources view. However, if you scan and scan operation to access the computer's compliance
remediate updates in Fabric Resource view, you status
cannot see the results of the operations. A host is moved from one host group to another
host group.
An update is added to or removed from a
baseline that is assigned to a computer.
The computer is added to the scope of a
baseline.
Page 57
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
updates in a single update baseline, or a single
update.
Remediate Updates on Stand-Alone Hyper-V Host On the Home tab, in the Compliance group, click
Remediate. (The Remediate task is only available
NOTE when the selected objects are noncompliant.)
If you choose to manually restart computers after Optionally select or clear update baselines or
individual updates to determine which updates
installing updates, that status of the computers will
remain Pending Reboot until after you scan the to remediate. If you selected a computer to
remediate, all updates are initially selected.
computer for updates again. VMM does not scan
computers to assess their update compliance status If you prefer to restart the computers manually
during refreshes. after remediation completes instead of letting
the wizard do that, select the Do not restart the
servers after remediation check box.
Perform Rolling updates on a Hyper-V Host Cluster In the resource list of Update Remediation dialog box,
select the host cluster by its cluster name
If you select the cluster by its cluster name, VMM
assumes you want to orchestrate remediation of the
hosts in the cluster, and displays cluster remediation
options.
Page 58
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Update Exemptions
Select the update & click “Create”
Page 59
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
To Delete the Exemption, select the update and
Delete.
Exemption flag will be removed & the status of the
update will be converted to “Unknown”
On Demand WSUS Synchronizations When the update server is added to VMM, an initial
synchronization is performed. VMM does not
perform automatic synchronizations after that.
On demand synchronizations needed to be
performed.
Important
After you add a WSUS server to VMM, you should
only manage the WSUS server in VMM. VMM does
not synchronize settings that are entered in the
WSUS Administration Console with those that are
entered in the update server properties.
In VMM, update the properties of the update server
to configure a proxy server for synchronizations and
to change the update categories, products, and
supported languages that are synchronized by the
WSUS server.
Page 60
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
19 Creating a Private Cloud
You can use this procedure to create a private cloud from resources in one or more host groups in
System Center 2012 – Virtual Machine Manager (VMM)
Page 61
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
VM Library Share Structure for Private Cloud
(PvtCloud1)
Page 62
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 63
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 64
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Capacity of the Private Cloud
Page 65
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
21 Creating & Deploying Virtual Machine
21.1 Creating & Preparing a Gold Image Master VM for future Deployments
Using this method you can create a virtual machine from an existing virtual hard disk stored in the
VMM library. You can follow two ways to use & deploy the Gold Image Master VM for in future
multiple deployments. One with the help of VMM presence and another without the presence of
VMM.
Create a new VM
Page 66
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Note
If any suitable Hardware Profile already created,
select it, if not, specify the hardware configurations,
and optionally you can save this hardware profile for
future use
Page 67
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 68
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Mounting the ISO for Windows 2012 x64 DC Edition
Media to the VM
Page 69
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Connect the VM to a valid Network, Login to OS,
Assign an IP & run the Windows Updates to fully
patched the VM’s OS
Optional
Install & Configure BgInfo
http://technet.microsoft.com/en-
us/sysinternals/bb897557.aspx
Shutdown the VM
Create a copy of the VHDX file of the VM
IMPORTANT Issues can occur if you turn on two In the VMM Console -> Right Click the VM -> Create -
virtual machines with the same identity at the same > Clone
time.
Achieved so far We have 2 clones of the same VM
We have one extra copy of VHDX
(I have created the copy of the VHDX for a bacup
purpose, this can be deleted later. Some times
Sysprep or Cloning process doesn’t complete
successfully, and leaves the VM in unstable condition.
It is always a good idea to keep an extra copy of
VHDX, to save the time of not repeating the OS install
& Updates).
Page 70
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
21.2 Create and deploy a new VM manually from Master Gold Image VHDX
without VMM
We recommend that you use a virtual hard disk that has been generalized using Sysprep, otherwise
the new virtual machine will have the same identity as the source machine.
Start the Cloned VM If you have not been using VMM, You can manually
creat a VM with using the copied VHDX, we created
in previous steps, & start the VM.
IMPORTANT Since this will be your last saved copy
of VHDX, it will be a good idea to create another copy
of the VHDX, before start working on this process.
Login to VM
Sysprep Process
Run “Sysprep” as an Administrator from
“C:\Windows\System32\Sysprep” folder
Hit OK
Page 71
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
This will start Sysprep Process, and upon the
completion, it will shut down the VM
After the Sysprep process is completed & VM is Every time new VM is deployed using a copy of this
shutdown successfully Gold Image Master Copy, While starting up It will go
VHDX is Sysprep’ed, You can copy the VHDX to safe thru the new SID generation process.
place to use as a Gold Image Master Copy for future
VMs deployment.
21.3 Create and deploy a new VM using a virtual machine template in VMM
Creating VM Template In the VMM Console -> Right Click the VM -> Create
-> Create VM Template
Page 72
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 73
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Deploy VM using Template
Page 74
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 75
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Completing the Wizard will let you deploy a new VM
either of these three places.
To a Private Cloud
On a Host
Store in VMM Library
22.1 Requirements
22.1.1 Hardware & Software Requirements
Required Items Details
Refer the TechNet for detailed list http://technet.microsoft.com/en-
us/library/jj860571.aspx
Required Software Roles & Features Components If any of Required Software Roles & Features are
missing, APP Controller Installer will install them
during installation
Page 76
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
22.1.2 App Controller Deployment Checklist
Required Items Details
Private Cloud Presence Before you install App Controller, you should already
have configured one or more private clouds in VMM,
delegated user roles to the clouds, and designated a
writeable file share for each user role.
Using App Controller for Windows Azure To use Windows Azure functionality in App
Controller, you should have already obtained at least
one Windows Azure subscription, made a note of the
subscription GUID, and created a management
certificate.
SQL DB Rights To ensure sufficient user rights during installation,
the database administrator must grant at least
database operator (DBO) access to a database to the
user account under which App Controller is being
installed.
Valid SSL Make sure that you import a valid Secure Sockets
Layer (SSL) certificate on the App Controller server.
For evaluation purposes, you can have App Controller
create a self-signed certificate during Setup.
Administrator Rights Any user accounts that are to administer App
Controller must also be granted VMM administrator
rights.
Presence of Service Templates in VMM You must create service templates in VMM before
you can deploy or update VMM services using App
Controller.
Page 77
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
22.2 Installing APP Controller
Tasks Details
Installing SQL Server
Page 78
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 79
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Select Database Engine Services & Management
Tools - Complete
Page 80
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
If you require support for 4 byte Unicode strings,
ensure before installing that the database collation
is set to one of the _100_collations
Page 81
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 82
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Installing VMM Console
Page 83
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 84
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Run & Complete Windows Updates
Installing APP Controller
Page 85
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Note
Page 86
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
This port is used for communication between App
Controller services only. You do not need to
configure the firewall on the computer running App
Controller to allow access to this port.
Important
The port that you assign during the installation of
App Controller cannot be changed without
uninstalling and reinstalling App Controller.
Note
Port: Type the port to use for communication with
the computer that is running SQL Server. By default,
this value is not required and is therefore left blank.
Page 87
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
How to Enable SSO for App Controller
By default, App Controller is enabled to prompt users
to sign in by entering their Active Directory user
name and password.
Open IIS manager on the App Controller server.
Select the App Controller website.
Expand the website and select the /api node.
Click Authentication.
Enable Windows Integrated Authentication.
Disable Basic Authentication.
Page 88
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
To turn On Constrained Delegation
1. Log on using an account that has OU
Administrator privileges in Active Directory
Domain Services. Ensure that this account is also
granted the SeEnableDelegationPrivilege user
right (for example, a domain administrator could
run the command ntrights -u domain\user +r
SeEnableDelegationPrivilege on a domain
controller, where domain/user represent the
domain and account name for the account).
2. In Active Directory Users and Computers, expand
the App Controller Machine node.
3. Click the Delegation tab.
4. Select the Trust this computer for delegation to
specified services only option.
5. Select the Use any authentication protocol
option.
6. Click Add and then do one of the following:
a. If the VMM management server is
running under the Local System
account, enter the name of the VMM
management server and select HOST,
and then click OK.
b. If the VMM management server is
running under a domain account, enter
the name of domain account and select
SCVMM, and then click OK.
7. Select the Common Internet File System (CIFS)
service, and then click OK.
8. Restart the App Controller management server.
Installing PowerShell Module for APP Controller
Page 89
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
User Roles Only user roles for Windows Azure subscriptions
or hosting providers can be created in App
Controller.
VMM Administrators must manage VMM user
roles by using the VMM console.
Library Resources In System Center 2012 - App Controller, you can use
the Library page to manage file shares, templates,
and resources for both System Center 2012 – Virtual
Machine Manager (VMM) and Windows Azure.
Adding a High Available Network File Share Create a High Available FS on a Clustered File Servers
Host and host a High Available Share
Page 90
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
IMPORTANT Make Sure you login to APP
Controller with Administrator privileges
Copy Files & VMM Templates between File Shares & VMM Administrators can copy files from local shares
Private Clouds to any VMM cloud library. VMM users can copy files
from local shares to folders in private cloud libraries.
Using simple Copy Paste Options
Setting Up Public & Private Clouds Users who manage public and private clouds must be
members of the Administrator user role.
Note In App Controller, the Clouds page displays the
The Scope of this Guide is to Private Cloud. following information:
A list of all public and private clouds, further
grouped by connection name.
The properties of each public and private cloud
to which App Controller is connected.
Resources used and available on private clouds.
Tasks you can perform on a selected public or
private cloud.
Connecting VMM to App Controller
Page 91
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
NOTE
SSL certificates must be imported to the App
Controller server in order to copy files or templates
to and from VMM cloud libraries. In order for the
import to succeed, users need to be part of all of the
following roles:
Local administrator of the App Controller
server
Local administrator of the VMM server
VMM administrator
Page 92
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Change or View Run As Accounts
Page 93
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 94
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
23 References
Additional References Details
http://technet.microsoft.com/en-us/library/gg610596.aspx
23.1 Configuring Networking in
VMM Overview
http://technet.microsoft.com/en-us/library/jj870823.aspx
23.2 Common Scenarios for
Networking in Virtual
Machine Manager
http://technet.microsoft.com/en-us/library/dn186234.aspx
23.3 Configuring Ports and
Switches
https://spsites.microsoft.com/sites/ASMSI/Capacity/CU/Shared
23.4 VMM2012 Host and VM Documents/VMM 2012/VMM 2012 Networking Brownbag
Networking
Page 95
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
Page 96
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
25 Annex-A – Misc. Commands
Commands Purpose
w32tm /config /manualpeerlist:pool.ntp.org
25.1 Domain Time Sync /syncfromflags:MANUAL
Stop-Service w32time
Start-Service w32time
http://support.microsoft.com/kb/816042
Event ID 1196 Ggiving the Cluster Name Object Full control of the A-
Cluster network name resource 'Cluster Name' failed record and then running from a CLI cluster . res
registration of one or more associated DNS name(s) for the <cluster name> /registerDns should solve the issue
following reason:
DNS operation refused.
Page 97
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
27 Annex-B – SC2012 SP1 Configuration Analyzer Setup
Downloads SC 2012 SP1 Configuration Analyzer:
http://www.microsoft.com/en-
us/download/details.aspx?id=36796
MS Baseline Configuration Analyzer
http://www.microsoft.com/en-
us/download/details.aspx?id=16475
Installation Install MS Baseline Configuration Analyzer first, as
this is a pre-requisite component for SC2012 SP1
Configuration Analyzer
Configuring Server & Client If running remotely for VMM server
Server – SCVMM 2012 SP1
Client – Your PC/Server
Enable CredSSP To enable Credssp, run the following command on the
server:
Enable-WsManCredssp -Role Server
You must enable Credssp or run Microsoft Baseline
Configuration Analyzer 2.0 from the local machine.
On the current machine, run the following:
Enable-WSManCredSSP -Role Client -DelegateComputer
[target machine name]
Page 98
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"
29 Annex-C - Deleting the Converged Switch
Delete Logical Sites from Logical Networks
Un-associate all VMs on Hyper-V from
using the Converged Switch components
Delete the vNICs Using VMM
Remove the Converged Switch from Using VMM or NIC Teaming on Host
Hyper-V Host
Remove VM Networks
Remove Uplink Port Profile Uplink Port Profiles have “Logical Switch” as one dependent
component.
Logical Switch has following dependent components. Remove
both association by going in the properties of the Logical Switch
Uplink Port Profile
Network Port Classification
Remove the Uplink Port Profiles
Page 99
Building Your Own Private Cloud – Home Lab
Prepared by [email protected]
"Building your Private Cloud - Home Lab - TechnetEdition"