Windows Azure Pack: How to add and troubleshoot VM Clouds

Hi, folks!

Finally, this is the third and last part of series of posts related with Windows Azure Pack (WAP) and VMM Clouds. Previously we’ve described installation of Windows Azure Pack and Service Provider Foundation. Now it’s time to implement the first cloud service. No doubt the most popular service is VM Cloud. Let’s describe what is it and how to deploy one with WAP.

Requirements

Component Requirement Description
Service Provider Foundation Install and configure Service Provider Foundation The VM Clouds service in Windows Azure Pack uses Service Provider Foundation to communicate with VMM. So, before provisioning VM Clouds
Guide HOW TO
Windows Azure Pack Install and configure Windows Azure Pack Installation guide: Windows Azure Pack
Cloud In the underlying VMM server that is associated with the Service Provider Foundation endpoint, you must have created a cloud and it’s associated components such as VM Templates, Hardware Profiles, VM Networks, Gallery Items For clouds to work with Windows Azure Pack, you must ensure that the clouds are created with the following considerations:

  • You must create a cloud from host groups.
  • You must have already created logical networks that can be associated with the cloud
  • You must have already created a VM library share.
  • You must assign the right amount of capacity to the cloud. The capacity that you assign to the cloud governs the resources that will be available to the tenants while provisioning virtual machines using VM Clouds.
  • You must not select any of the available capability profiles (ESX Server, Hyper-V, XenServer) while creating the cloud. If you do so, tenants will not be able to deploy virtual machine roles using the VM Clouds service.

HOW-TO is described below

Service Provider Foundation service account The Service Provider Foundation service account must be added to the administrator user role in the VMM server See below
VMM RunAsAccount To successfully complete all steps in this mini-guide Create RunAsAccount in VMM and assign Administrator Role

Register SPF in Windows Azure Pack

  1. Log in to WAP admin portal (in my case, https://wapportal.domain.com:30091)

2.Click on VM Clouds and then “Register System Center Service Provider Foundation

wap_spf_1

  1. Type URL for Service Provider and provide required credentials

wap_spf_2

  1. Verify status of SPF registration. It should be the same as shown on the pic below

wap_spf_3

Add SPF Service Account as VMM administrator

  1. Log in to SPF Server, open IIS and note user identity for SPF Pools

spf_service_accouns_apppools_thumb

  1. Open VMM Console and connect to VMM

  2. Go to Security –> User Roles –> Administrator and add SPF Service account to this role

vmm_spf_admin_svc

or use PowerShell:

$UserRole = Get-SCUserRole -Name "Administrator"
Set-SCUserRole -UserRole $UserRole -AddMember Domain\SPFServiceAccount

Create VMM cloud

In this section we create BASIC VMM cloud only for demo purposes.You have to carefully plan/design your cloud components.

  1. Add hosts to host group (VMs and Services –> right click on host group name –> add hyper-v hosts and clusters“) or PS:
#In my case, host group called as All Hosts and 1 member hv01

$runAsAccount = Get-SCRunAsAccount -Name "Administrator"
$hostgroup =  Get-SCVMHostGroup -Name "All Hosts"
Add-SCVMHost -ComputerName "hv01.domain.com" -VMHostGroup $hostgroup -Credential $runAsAccount
  1. Add Logical Network (Fabric –Logical Networks – Add Logical Network).
#Create new logical network
$LogicalNetwork=New-SCLogicalNetwork -Name VM -LogicalNetworkDefinitionIsolation $false -EnableNetworkVirtualization $true -UseGRE $true -IsPVLAN $false
$HostGroup =@()
#Get Host Group
$HostGroup += Get-SCVMHostGroup -Name "All Hosts"
#Add VLAN Subnet ID and IP with netmask
$SubnetVLAN = @()
$SubnetVLAN += New-SCSubnetVLAN -Subnet "10.10.25.0/24" -VLAN 0
#New Definition for logical network VM
New-SCLogicalNetworkDefinition -Name VM -LogicalNetwork $LogicalNetwork -VMHostGroup $HostGroup -SubnetVLAN $SubnetVLAN

sc_vmm_logical_network_1

sc_vmm_logical_network_2

  1. Add Library server if it has not deployed yet (Library –> Library Servers –> Add Library Server)
#Get Library Servers
Get-SCLibraryServer

image

Copy sysprepped vhds to Library (highlight library and click “Import Physical Resource” button) or through PS:

Import-SCLibraryPhysicalResource -SourcePath "path to VHDs" -SharePath "\\libraryFQDN\foldername"

In my demo, I use clean 2012 R2 Std with the latest updates.

  1. Create new cloud (VMs and Services –> Clouds –> New Cloud). Pictures are clickable (see cloud properties from left to right)

Do not forget:  You must not select any of the available capability profiles (ESX Server, Hyper-V, XenServer) while creating the cloud.

If you do so, tenants will not be able to deploy virtual machine roles using the VM Clouds service.

imageimage image


image image  image


image  image image

That’s it . Our demo cloud is ready. But it’s not enough.

Now we need to create VM templates.

Create VM Templates

1.  Add hardware profiles (Library –> Profiles –> right click –> Create Hardware Profiles). I have one pre-created profile with the following properties:

image

Create a few profiles for different VM configurations, if it is necessary.

  1. Go to Virtual Templates – right click and “Create VM Template” , use your sysprepped vhd as a source for VM template

image

Specify Template Name, Generation ID and choose Hardware Profile (it is not required but let’s do it Улыбка).

OS configuration page (my future VMs will be based on 2012 R2 Standard, so you have to verify that the right Operating System is specified):

image

The next step is VMM registration on WAP portal.

Register VMM in WAP

  1. Log in to admin management portal (https://wapportal.domain.com:30091)

  2. Go to VM Clouds –> Clouds and click on “Use an existing virtual machine cloud…”

wap_spf_cloud_1

  1. Type VMM server name and Register

wap_spf_cloud_2

  1. OMG! Look at this…it is my cloud Улыбка

wap_spf_cloud_3

Create WAP Hosting Plan

  1. Go to Plans and click on “Create a new hosting plan”

wap_spf_cloud_4

  1. Devise friendly name for you plan

wap_spf_cloud_5

  1. We want to provide VM Clouds

wap_spf_cloud_6

  1. Just click next

wap_spf_cloud_7

5.Our demo plan is created. Verify that status is green.

wap_spf_cloud_8

  1. Open newly created plan and go to “virtual machine clouds” service

wap_spf_cloud_9

7.Review and change properties (add virtual network, hardware profiles, vm templates) for service

wap_spf_cloud_10 wap_spf_cloud_11wap_spf_cloud_12wap_spf_cloud_13

Thanks to gallery items we have options to create workloads  (Exchange, Lync,SQL and etc) from gallery (just like in Azure). I will describe it my next posts.

Create new user account for WAP

Finally, we have to create user and map him to our plan with VM clouds service

Go to User Accounts and click on “Create a new user”

wap_spf_cloud_14

Type mail for example, password and choose plan. Click on Create

wap_spf_cloud_15

Our demo user (tenant) is created. Now you can access client management portal using this email address and password.

Create demo VM under tenant account

Open in IE https://wapportalfqdn:30081 and sign-in as tenant, then click on Virtual Machines

Standalone –> Quick Create –> choose template, type Name of VM and admin’s password and click on “Create VM Instance

wap_vm_creation_1

Woohooo!  As you can see out tenant successfully created testVM and VM is running.

wap_vm_creation_final

From VMM side (vm creation progress):

wap_cloud_vm_creation_1

User tenants (VMM side):

wap_vmm_user_tenants

How to troubleshoot WAP,SPF,VMM

WAP Troubleshooting:

A ton of information you can find here:

https://technet.microsoft.com/en-us/library/dn554311.aspx

My favorite steps:

image

Additional links:

Step-by-step installation of Windows Azure Pack

Русская версия

Hi, folks!

This is the second part of series of posts related with Windows Azure Pack (WAP) and VMM Clouds.

Article 1 : SPF installation

Article 2 : WAP and its optional resources (you are here)

Article 3: WAP+VM Cloud Service

Microsoft uses the following description of Windows Azure Pack (WAP):

Windows Azure Pack for Windows Server is a collection of Windows Azure technologies, available to Microsoft customers at no additional cost for installation into your data center. It runs on top of Windows Server 2012 R2 and System Center 2012 R2 and, through the use of the Windows Azure technologies, enables you to offer a rich, self-service, multi-tenant cloud, consistent with the public Windows Azure experience.

Windows Azure Pack includes the following capabilities:

WAP:

  • Management portal for tenants – a customizable self-service portal for provisioning, monitoring, and managing services such as Web Site Clouds, Virtual Machine Clouds, and Service Bus Clouds.
  • Management portal for administrators – a portal for administrators to configure and manage resource clouds, user accounts, and tenant offers, quotas, and pricing.
  • Authentication sites – these sites provide authentication services for the management portal for administrators and the management portal for tenants.  Windows Authentication + ADFS for Admins Sites and ASP.NET provider for tenants
  • Service management API – a REST API that helps enable a range of integration scenarios including custom portal and billing systems.

Optional Resources:

  • Web Site Clouds – a service that helps provide a high-density, scalable shared web hosting platform for ASP.NET, PHP, and Node.js web applications. The Web Site Clouds service includes a customizable web application gallery of open source web applications and integration with source control systems for custom-developed web sites and applications.
  • Virtual Machine Clouds – a service that provides infrastructure-as-a-service (IaaS) capabilities for Windows and Linux virtual machines. The Virtual Machine Clouds service includes a VM template gallery, scaling options, and virtual networking capabilities.
  • Service Bus Clouds – a service that provides reliable messaging services between distributed applications. The Service Bus Clouds service includes queued and topic-based publish/subscribe capabilities.
  • SQL and MySQL – services that provide database instances. These databases can be used in conjunction with the Web Sites service.
  • Automation – the capability to automate and integrate additional custom services into the services framework, including a runbook editor and execution environment.
  • Optional resource = what you are going to connect with WAP (for example, VMM cloud).
  • Required components = Windows Azure Pack components which you install on one machine (express) or on multiple machines (distributed)

In other words, WAP is interface between your resources and tenants=clients. It’s a great solution for all client-oriented company and to start providing cloud resources to customers without any additional cost. On the following picture you can see the main components of WAP , cloud components and optional resources. WAP can be deployed in 2 different ways – express and distributed. In the express deployment you install all WAP components on one machine and it’s recommended only for test or demo environments. If you want to have WAP in your production , you should use distributed deployment . In such a deployment, WAP required and optional components are installed on multiple machines.

Windows Azure Pack Scheme

We’ll go through the step-by-step WAP Express installation

Required VM

1 VM (2012/2012R2, 8 Gb static RAM, at least 40 GB hard disk space, 2 vCPU, internet connection) for Windows Azure Pack Components

1 VM (2012/2012R2)  for SQL Server 2012 SP1

Required software for WAP

  • Microsoft .NET Framework 3.5 SP 1
Install-WindowsFeature -name NET-Framework-Core -source <drive>:\sources\sxs
  • .NET 4.5 Extended (WAP Wizard installs automatically)
  • IIS recommended configuration (WAP wizard installs automatically)
  • Download WAP_SingleMachineInstallation (only for express deployment) and place exe on WAP VM
  • Download Windows Web Platform (can be used for distributed and express deployments as well)
  • Turn off Internet Explorer Enhanced Security for administrators (server manager –> local server)

Deployment steps

1. On the VM for WAP run downloaded WAP_SingleMachineInstallation.exe

Windows Azure Pack Installation

2. Click to “Items to be installed” , verify items to be installed and click Close

Windows Azure Pack Installation

3. Accept license terms

Windows Azure Pack Installation

4. Use Microsoft Update when I check for updates – YES, click Continue

Windows Azure Pack Installation

5.Wait while wizard downloads and installs all required WAP components

Windows Azure Pack Installation

6.Click on “Continue

Windows Azure Pack Installation

7.Click Finish

Windows Azure Pack Installation

8. On the opened page in the IE (https://wapportal:30101) define  SQL Server name, type of authentication and passphrase for Configuration Store

Windows Azure Pack Installation

9.Yes, I am …

Windows Azure Pack Installation

10. Configure all features

Windows Azure Pack Installation

11. Wait while wizard completes configuration of features

Windows Azure Pack Installation

12. Verify IIS sites (win+r –> intemgr), MgmtSvc-… are WAP’s sites.

Windows Azure Pack IIS sites

13. Add WAP admin+tenant sites to start screen (win+q –> type windows azure and pin to start)

Windows Azure Pack Start Screen

14. Go to WU and install the latest updates for WAP Components (UR4 for SC 2012 R2 is the latest for now)

15. If you open https://wapportal:30101 again, you should see that WAP is already configured

Windows Azure Pack Installation

In the next post we will describe configuration of Windows Azure Pack with VM Clouds and SPF and how to troubleshoot this configuration

Related posts:

Step-by-step installation of Service Provider Foundation 2012 R2

The portal cannot load management data for this resource type and account subscription is out of sync

Windows Azure Pack: How to add and troubleshoot VM clouds