Application Management - Virtual Hard Disk Requirements of Windows Azure Pack Gallery Items

Today we have a guest blogger.

Stephen Baron is a Program Manager for System Center on the Virtual Machine Manager team. This is the second part of a two-part blog related to the Windows Azure Pack:

Application Management – Service Models Web Platform Installer Gallery
Application Management – Virtual Hard Disk Requirements of Windows Azure Pack Gallery Items (this post)

In this post, Stephen will be discussing Virtual Hard Disk Requirements on Windows Azure Pack Gallery Items. To read more about the Windows Azure Pack, check it out here. I also encourage you to check out his previous post.


Windows Azure Pack introduces Virtual Machine Role gallery items which enable users to deploy and configure workloads such as SQL Server, SharePoint or a LAMP stack. We recently posted a blog entry and associated video illustrating how to download and import a number of sample items.  

This blog post will provide a brief overview of virtual hard disk requirements in System Center 2012 R2 – Virtual Machine Manager as they pertain to gallery items. You can find more detailed coverage via a video which walks through setting up virtual hard disk properties for both Operating System and Data disks in order to enable Virtual Machine Role gallery item deployments.

 

In order to make virtual hard disks available to users within the Windows Azure Pack Virtual Machine role deployment wizard, a number of properties must be set on the appropriate virtual hard disks within System Center 2012 R2 – Virtual Machine Manager, and the requirements vary slightly between Operating System Disks and Data disks.

To get started, the virtual hard disk must be available to the cloud(s) which are included in Windows Azure Pack plans. To do this, ensure that the library share in which the virtual hard disk is stored is added as a read-only library share in the cloud’s property page in the Library tab:

clip_image002

In addition to ensuring that the virtual hard disk is available to the applicable cloud(s), Operating System disks require that the following properties be configured:

  • Family Name – A friendly name; for example WindowsServer2012 or CentOSLinux6
  • Release – Must be in the format n.n.n.n; for example 1.0.0.0
  • Operating System – Select from the available options in the virtual hard disk properties page

clip_image004

  • Tags – Tags may be required by Windows Azure Pack Virtual Machine Role Gallery Items and may only be set via the Virtual Machine Manager Powershell set-SCVirtualHardDisk cmdlet using the optional –Tag parameter. Gallery Item ReadMe files should specify if any tags are required by a particular gallery item. For example, the following PowerShell cmdlet will set a tag of WindowsServer2012 on the virtual hard disk stored in the $vhd variable:
001 Set-SCVirtualHardDisk –VirtualHardDisk $vhd –Tag “WindowsServer2012”

The following screenshot shows that there are 6 Operating System virtual hard disks (highlighted) that have the required properties set:

clip_image006

Additionally, the following screenshot shows that the CentOSPrep.vhd has a single tag set, namely CentOSLinux6:

clip_image007

Gallery Items may specify that the Virtual Machine Role has one or more data disks. Data disk requirements are as follows:

  • Family Name – A friendly name; for example Data Disk 16GB or Data Disk 60GB
  • Release – Must be in the format n.n.n.n; for example 1.0.0.0
  • Operating System – Must be set to None:  

clip_image009

  • Tags – Tags are not applicable to Data Disks

The following screenshot shows that there are 2 Data Disk virtual hard disks (highlighted) that have the required properties set:

clip_image011

The following screenshot shows how Operating System and Data Disk virtual hard disks are made available to users via the Windows Azure Pack Virtual Machine Role deployment wizard. The Gallery Item in this case specified an Operating System Disk with a single tag of WindowsServer2012 and also included a single data disk, both of which were parameterized such that the end user is allowed to select the appropriate disk at deployment time:

clip_image013

We hope this blog post (and the associated video) has helped you understand how to set virtual hard disk properties in System Center 2012 R2 – Virtual Machine Manager in order to make Windows Azure Pack VM Role deployments successful.

Enjoy!

Stephen Baron
Program Manager