How to resolve non-OS disks offline in multi-disk VM deployment from template

Best practices for server configuration generally suggest installing applications / app data to a separate disk and volume than the OS. However, when you deploy a Windows 2008 or 2012 VM from a VM template in System Center 2012 R2 Virtual Machine Manager (VMM), you may find the second disk (vhd or vhdx) containing the application partition in an offline or uninitialized state when the VM is deployed from the template. The error you will see is “the disk is offline because of policy set by an administrator”.

Root Cause and Fix

This issue is caused by the default SAN Policy setting in Windows 2008 and Windows 2012. SAN policy was introduced in Windows Server 2008 to protect shared disks being accessed by multiple servers. If (and only if) the disk is not shared amongst other servers, you can change the SAN Policy setting to OnlineAll setting to get around this.

Perform these steps before running sysprep to create the VM template for VMM will ensure all the disks in a multi-disk VM template are in an online state on first boot.

To verify the current SAN Policy setting

From a command prompt, type DISKPART.EXE  and then press Enter.

DISKPART> san and then press Enter.

If the default is in place, this command will return a status of “Offline Shared”

To change SAN Policy to OnlineAll, type the following at the DISPART prompt: 

san policy=OnlineAll  and then press Enter.

Now you can sysprep your VM to make your template with the assurance that non-OS disks in your template will be online on first boot.

Inside System Center 3: Best Free System Center Solutions – Show Notes

In this episode, Dan and Pete talk about some of the more robust free solutions for System Center 2012 R2, including a couple of gems you have not seen before! Links to all the resources discussed (and some we didn’t get to) below!

New Show Updates

To get updates on the latest episodes of Inside System Center and Inside the Microsoft Cloud, follow on twitter (@insidemscloud@insidepodcast) or like us on Facebook at http://facebook.com/insidepodcastnetwork.

Episode Links

Audio editionavailable shortly!

Video edition – https://www.youtube.com/watch?v=tKfoJ-hBv0Y

OpsMgr 2012 R2

While there are thousands of great articles and scripts and related solutions for OpsMgr, here are a few of the more function-rich freebies. A couple of lesson known solutions in here! 

NiCE Log File Monitoring MP

https://www.nice.de/log-file-monitoring-scom-nice-logfile-mp

https://www.nice.de/wp-content/uploads/2015/01/NiCE_LogFileMP_SolutionBrief_2015Q1.pdf

MP Author (Silect Software)

http://www.silect.com/mp-author
OpsMgr Self Maintenance Management Pack (by Tao Yang)

http://blog.tyang.org/2013/03/03/opsmgr-self-maintenance-management-pack/

PKI Certificate Verification MP (by Raphael Burri)

https://rburri.wordpress.com/2015/06/22/pki-certificate-verification-mp-update-1-3-0-0/

Effective Configuration Viewer (Stefan Roth)

https://gallery.technet.microsoft.com/Get-effective-configuration-753e13bd

Adding GUI Authoring Support for PowerShell Monitors in OpsMgr (Wei H Lim)

https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379

ConFigMgr 2012 R2

While most everyone is familiar with the right click tools, we discussed a couple of other (and in some cases newer)  free solutions.

RegkeyToMof

http://myitforum.com/cs2/files/folders/proddocs/entry152945.aspx

RemoteManage

http://cireson.com/apps/remote-manage/

PowerShell Inventory Script (David O’Brien)

http://www.david-obrien.net/2014/01/update-inventory-script-makes-configmgr-life-easier/

Kent Agerland’s List of Community Tools

http://blog.coretech.dk/kea/community-tools-from-system-center-universe-2014/

Service Manager 2012 R2

Here are a few of our favorites for SCSM.

SCSM Dashboards (by Signature Consultancy)

http://www.signatureconsultancy.com/scsm-dashboard.html

SCSM Entity Explorer

https://gallery.technet.microsoft.com/SCSM-Entity-Explorer-68b86bd2

Free Community Stream (from Cireson Software)

DPM

SCOM DPM Dashboard

http://www.buchatech.com/2014/04/new-scom-dpm-dashboard-download

https://gallery.technet.microsoft.com/SCOM-DPM-Dashboard-8eef9b58

SCO / SMA / AA

Automating Software License Reclamation with System Center 2012 SCCM + Orchestrator

Part 1 – Software Metering Deep Dive and Automation Part 1: Use It Or Lose It – The Basics

This installment has a quick overview of the software metering feature in case you’re not familiar.

Part 2 – Software Metering Deep Dive and Automation Part 2: Use It Or Lose It – The Collections

This installment includes the collections of those systems using an application, and another collection with systems where the application is not being used.

Part 3 – Software Metering Deep Dive and Automation Part 3: Use It Or Lose It – The Orchestrator Runbook Automation

Sample Runbooks – Automation Use Cases

https://gallery.technet.microsoft.com/Sample-Runbooks-Automation-fafd8f13

http://blogs.technet.com/b/privatecloud/archive/2013/08/12/automation-orchestrator-back-to-basics-use-cases-spotlight-1-of-5.aspx

Orchestrator Sample Runbooks: Core Examples, PowerShell Examples, and Scenario E

https://gallery.technet.microsoft.com/Orchestrator-Sample-1bbb04a5

 

Simple Self-Service App Deployment with ConfigMgr, SCOrch and SCSM

At a recent meeting of the Houston Area Systems Management User Group, I presented a strategy for delivering effective self-service application deployment that would be achievable for System Center 2012 Configuration Manager (ConfigMgr) admins could potentially implement. By intention, the solution does not require custom management pack authoring, extending Service Manager (SCSM) classes or custom PowerShell. However, it is flexible and leverages the rich capabilities of SCSM for publishing a Service Catalog. This way, any ConfigMgr admin with basic Orchestrator (SCOrch) skills who can install a basic SCSM deployment (a Management Server, database and portal server) can configure ITIL friendly self-service with System Center 2012, complete with approval routing and documentation of the request in a proper service request.

By request, I am posting the sample runbooks here for the community members.

There is a variation of my approach HERE, but in this sample I have eliminated the need for custom PowerShell script, thereby further simplifying the solution.

NOTE: You do not have to replace your service desk solution to leverage System Center for self-service. The service requests created here can pretty easily be exported with a bit of PowerShell and imported into your target ITSM system of choice.

Solution Components

Components in the solution as demonstrated were:

  • ConfigMgr 2012 R2
  • SCSM 2012 R2
  • Orchestrator 2012 R2
  • Cireson Portal (optional) – This component is 100% optional, though it reduces the required server count by 1, eliminates the need for SharePoint and provides a self-service experience across mobile devices and is much more responsive than the native portal.

What I demonstrated used User Collections in ConfigMgr.  You could tweak the solution to use computer-based collections instead.

High-level Steps

The following are the high-level

  1. Configure deployments in SCCM
  2. Import runbook in SCO
  3. Connect SCSM to SCO and ConfigMgr
  4. Select the software to make available
  5. Configure the Offering in SCSM (For SCSM newbies, see “Automation and Self-Service with SCSM” on MVA)
  6. Publish to the Service Catalog

Sample Runbook #1

In this example, we used to retrieve the user and application (app) object. The app object is represented in the SCSM database by the Package class, which is populated by the ConfigMgr Connector in SCSM, which brings over the applications you have created in ConfigMgr When you look at the last two activities, you will notice that the runbook assumes that the ConfigMgr application (represented by the Package class in SCSM) and ConfigMgr collection have the same name.

I am not going to walk through the detailed configuration steps of either sample, as you can simply download both sample runbooks, import and see for yourself.

AppDeploy

Sample Runbook #2

I was asked if it would possible to extend the solution to allow use of existing packages. The short answer is yes, by simply adding a Map Published Data activity in which you can map the name of your application in ConfigMgr to the name of the collection to populate with the account of the user requesting the software.

AppDeploy_CustomColl
Here is a shot of the properties of the Map Published Data activity in the sample runbook.

Map_Published_Data

Download Runbook Samples

The runbook samples are available in a new GIT repository I setup to store community samples in a single, centralized repository. Both sample runbooks can be found at the URL below.

https://github.com/pzerger/CommunitySamples/tree/master/Runbooks/SCO

Inside System Center #2: OpsMgr Dashboarding – Show Notes

In this episode, we had a panel to discuss the host of dashboarding options for System Center 2012 R2 Operations Manager. This is a video podcast, so be sure to check out the demos of each vendor presented in this episode! 

Watch the episode at https://youtu.be/NuMAUKEDkx0

Savision

Resources related to Savision courtesy of Cameron Fuller (@CFullerMVP)

Savision whitepaper: “Is OpsMgr Still relevant in the Cloud?:: https://www.savision.com/free-whitepaper-mvp-cameron-fuller-tackling-elephant-room-opsmgr-still-relevant-cloud
Blog post series on OpsMgr and mobile: “Taking my OpsMgr with me”: http://blogs.catapultsystems.com/cfuller/archive/2014/04/11/taking-my-opsmgr-with-me-wrap-up/
Blog post on the new Dashboards product: “Kicking the tires”: http://blogs.catapultsystems.com/cfuller/archive/2015/04/09/kicking-the-tires-on-the-new-dashboards-by-savision-product-1/
Savision whitepaper: “The Road to the Cloud”: https://www.savision.com/resources/white-paper/road-cloud-mvp-cameron-fuller-0 (not specifically mentioned but relevant to the conversation)

Squared Up

Resource links for Squared Up, courtesy of Tao Yang (@MrTaoYang)
Squared Up Perf Data:
http://blog.tyang.org/2015/03/12/accessing-opsmgr-performance-data-in-squared-up-dashboard/

Visio Dashboard for existing DA:
http://blog.tyang.org/2015/05/28/how-to-create-a-squared-up-visio-dashboard-for-an-existing-distributed-application/

Collecting Data to OMS example (I think I mentioned it in the beginning):
http://blog.tyang.org/2015/06/10/collecting-configmgr-logs-to-microsoft-operation-management-suite-the-nice-way/

Also, the Visio maps I used in the demo today can be downloaded for free from here:
http://www.amcharts.com/svg-maps/

Opslogix (ProView)

Resource links for Opslogix ProView, courtesy of Pete Zerger (@pzerger)

ProView homepage – http://www.opslogix.com/proview/

Getting Started Videos

Keep an eye out for new episodes of the Inside System Center podcast twice a month on the Inside Podcast Networks website at http://ipn.tv.