Monthly archives "February 2014"

Power Saved in last 30 days – Incorrect Reporting

I have successfully configured Power Optimization and Dynamic Optimization few months back, however the report from SCVMM 2012 R2 Console always says that the Power Saved in last 30 days is 0 hours. I am sure that servers are going down as per the schedule and coming back online at the end of the schedule. However, the report seems to be incorrect.


Power Saved in last 30 days - Overview

Power Saved in last 30 days – Overview

I had a case opened with Microsoft support and got a confirmation now that its a bug.

Should be fixed in the upcoming update roll-up 3.



Building Private Cloud – Part 4

Now we have the basic setup ready. We have the HyperV cluster ready with fabric configured with VM Networks for each subsidiary group. In this part, We will cover on creating a VM teamplate, creating hardware profiles and finally the GUST OS Profile.


VM Template 

For each version of operating system, We need to create a template with a baseline configuration. The template can be created from a fresh VM or we can create from a existing defined template. The same template can be shared with multiple subsidiaries (S1, S2 and S3).

  1. Create a Gen 1 VM on any of  the Hyper-V Host which is added on SCVMM – I will name it as Golden Image
  2. Windows Patch Updates
  3. Install HyperV Integration Component
  4. Antivirus/Agents or any of the custom software required on all servers deployed using this image
  5. Enable RDP
  6. Set Administrator password blank
  7. Do any other customization if required
  8. Export the VM – This is required if we need to update template on a later stage
  9. SysPrep and Shutdown

Now from SCVMM -> VM And Services, Identify the VM which is created for the template.

Right Click on the VM -> Select “Create VM Template”

Create Template



Read the warning and Click “Yes” if you are OK to proceed. 😀

Create Template - Warning - Source VM Destroy



The next screen is to select a hardware profile.

We can goahead with the Default setting. No need to select anything here.. Just click on Next.

Creating template - Hardware profile

Creating template – Hardware profile


The next screen is for Gust OS Profile. You can choose an OS profile which matches the operating system of this VM.

Create Template - OS Profile

However, Please dont choose “No Customization Required” from the drop-down menu. This will disable the option to link Gust OS Profile on the template.

OS Customization - NONE



Select the Library Server and then select the PATH to be used inside the Library Share.

Review the Summary and proceed with the template creation.


Hardware Profile

Hardware Profiles will define the hardware configuration and will be attached while creating a VM from a template. The usual pattern is to create with a naming convention (Gold, Silver, Bronze) or something similar which is easy to relate.

In our specific scenario, We need to define Hardware Profiles for each group. Here is the naming standards and the details.

HW Profiles


Make a table as above. Then create the template for the first group (S1). For creating profiles from the other groups (S2 and S3), Right click on the one which is created for S1 and click “Copy”. This will create copy the existing template and create a new one. You just need to adjust the name and the VM Network.

So lets create the first template – S1-Gold.

Navigate to SCVMM -> Library -> Profiles -> Hardware Profiles

Right click on Hardware Profiles and select “Create Hardware Profile”

Create Hardware Profile - Define the name

Create Hardware Profile – Define the name

Click on Hardware Profile and configure each section accordingly.

On Cloud Capability, Select Hyper-V.

Creating Hardware profile - Cloud Compatibility

Creating Hardware profile – Cloud Compatibility

On the processor page, enter the number of processors allocated for this profile.


Creating Hardware Profile - Processor

Creating Hardware Profile – Processor

On the Memory, Enter the memory details. Static or Dynamic and the memory allocated.

Creating Hardware Profile - Memory

Creating Hardware Profile – Memory


On the Network, Select the Network connectivity details. In the previous parts, We have defined the VM Networks for each group. Select the appropriate VM Network defined for this group.


Creating Hardware Profile - Network

Creating Hardware Profile – Network

On Availability page, Make sure that “Make this VM highly available” is selected.

Creating Hardware Profile - HA

Creating Hardware Profile – HA

Once done, Click on OK to create the S1-Gold hardware profile.

Use this same profile to create S2-Gold and S3-Gold.

For that, Right click on the newly created S1-Gold hardware profile and click on Copy.

Copy Hardware Profile

Copy Hardware Profile


Look for Copy of S1-Gold. Right click and select “Properties”

On General, Change the Name to “S2-Gold”

Copy Hardware Profile - Rename

On the Hardware Profile page, Adjust the VM Network.

Copy Hardware Profile - Adjust VM Network

Copy Hardware Profile – Adjust VM Network

Click on OK to make the template for S2-Gold.

Similarly make one more copy of S1-Gold and adjust it from S3-Gold.

Now, Create other profiles (Silver and Bronze) using the same method.

Gust OS Profile

The next step is to create Gust OS Profile.

Before starting, Ensure we have run as account created for “Local Administrator” and “AD Join”. Its good to have these runas accounts created, but not mandatory.

Once ready, Create the GUST OS Profile.

On Gust OS Profile, we define the OS Details, Admin Password for the newly created VM, Product Key (If not using KMS), Time Zone, Role, Feature, Domain or Workgorup etc.

One important aspect for Gust OS Profile is to specify the Organizational Unit which will be used to create a VM. This will help us to have the VMs for S1-IT getting created into the OU designated for S1-IT and VMs for S2-IT getting created into the OU designated OU for S2-IT and so on.

Lets create a Gust OS Profile for S1-IT which will be used for Windows Server 2012 R2 Std edition of OS.

Gust OS Profile for S1-IT

Gust OS Profile for S1-IT

On the OS Details page, Select the appropriate OS.

Create Gust OS Profile - OS Details

Create Gust OS Profile – OS Details


On the Admin Password page, select the run as account for Local Administrator. If you dont have a RunAs account, you could even save the password on this profile itself.




Create Gust OS Profile - Local Admin


And next is the Domain/Workgroup page. Specify if the VM needs to be joined to a domain or can be in a workgroup. If needs to be domain joined, The domain name and the credentials to be used for adjoin. If you dont have a run as account, you could even save the user name and password in this profile which will be used for adjoin.


Create Gust OS Profile - Domain Information

Create Gust OS Profile – Domain Information


Once done, Click on OK to create an Gust OS Profile.

Now we need to configure the OU where the computer objects should be created on the adjoin process. This can be configured only through the VMM shell.


Create Gust OS Profile - Configuring OU Information

Create Gust OS Profile – Configuring OU Information

Similarly, Create Gust OS Profiles for each Gust Operating System used by each group and configure the DomainJoinOrganizationalUnit parameter according to each Group.

Here is an outline how different components – VM Template, Hardware Profile and OS Profile linked together on VM Creation.

VM Template - Hardware Profile - Gust OS Profile

VM Template – Hardware Profile – Gust OS Profile

In the next part, I will detail on Creation of Private Cloud for each group and setting up the access for the IT Admins of each group.



Installing SCVMM 2012 R2 UR1

We got the UR1 released few weeks back. However, I see that most of our Experts give a warning – wait for some time before updating.

Whatever be the case, I did the upgrade on my VMM today. It was smooth.

The only difference this time is the script which needs be executed against the VMM database.

Few points to note.

The update will exit silently after the installation. We will not see any confirmation or message  once the update is completed.

However, the event-logs will help us here. Check for event id 1022.

SCVMM 2012 R2 UR1 Installation

SCVMM 2012 R2 UR1 Installation


Similarly, we need to check for event 1022 once the UR1 is installed for the console.

Update SCVMM 2012 R2 Console with RU1

Update SCVMM 2012 R2 Console with RU1


And finally, we need to execute the script to update the VMM DB.


From SQL Server Management Studio – Navigate to the VMMManagerDB Database. Click on New query and paste the code from the KB. Click on !Execute. We are done.

Update DB



We can check the update status through Powershell. Without RU1, the product version is 3.2.7510.0 and with RU1, product version is 3.2.7620.0.

Checking Product Version - new


Once the VMM Server and console is updated, All the hosts needs an update on VMM Agent. From SCVMM Console, right click on the host and select “Update Agent” .


Hyper-V Dashboard – V2.1

Its almost a week I made the first version of the dashboard. Yesterday, I published v2.1 this dashboard.

Just a brief on the changes on each versions.

Ver 2.1 – 2/12/2014

* Added logic to identify Virtual Disk type – VHD or VHDX. VHD Disk will be marked as yellow cell

* Added logic to identify vNIC – Legacy or Synthetic. The cell of Legacy vNic will be marked yellow.

* Fixed few bugs related with the logic

Ver 2 – 2/12/2014

* Added logic to include an input file

* Added logic to include Hyper-V Stand Alone nodes

* Added component for Free Space percentage on each Local Disk /CSV Volume

* Changes on coding and more detailed logging on the console

Ver 1.1 – 2/9/2014

* Added logic to identify Dynamic Memory and mark Min Meory and Max Memory to “DM Disabled” on a VM without Dynamic Memory

* Added additional components like UpTime, IC, SnapShot Count, First SnapShot Date etc

* For Windows Server 2012 R2 HyperV Clusters, The report will also check if the Integration Component is ” Up To date” or not. If not, the cell color will be changed to Yellow so that Administrators can quickly identify

* Improved the logic to skip a Hyper-V Cluster node without any VM

You can download the script from the Technet Script Gallery.

What is planned next:

In the upcoming version, What I would like to do

  • Along with the VM and Storage details, A new section for the physical host which will have have the physical resources on each host
  • A comparison with actual resources VS allocated resources

May be some more items which I a yet to finalize :).



PowerShell Script for Hyper-V Dashboard

Its always good to have a daily report as an email. I would always prefer this as we can have a quick view through Blackberry or Active Sync Phones to get an overview of the servers. In Hyper-V, I had challenges to get this done using Powershell. In fact, I never tired and now I felt its becoming important as the Hyper-V Infrastructure is growing gradually.

This script will provide the basic information like VM Name, Memory Allocation, Processor Allocation, Disk Allocation, Disk Usage etc.

Hyper-V Dashboard

Hyper-V Dashboard


Along with this, You can get a brief on the CSV Utlilzation – like Storage Allocated on each volume, Free space on each volume, Total Size of VHDX Allocated for each volume, Actual Usage of VHDX on each Volume and if Over Provisioned, how much Over Provisioned.


CSV Report on Over Provisioning

CSV Report

You can download the script directly from Technet Gallery.

For feedback/issues – you can reach me on .

Enjoy !



Error (2940) – VMM is unable to complete the requested file transfer. The connection to the HTTP server could not be established. Unknown error (0x80072ee2)

Issue – VM Creation from template randomly failing with error 2940.

This issue started few days back and its random. My initial thought was that the HyperV host got some issues. However, this issue started with all nodes randomly.

SCVMM 2012 R2 - Error 2940

SCVMM 2012 R2 – Error 2940


Coincidentally , I observed that from VMM server  HyperV Manager is not able to connect to the problematic server.


HYPERV-MANAGER - RPC Server Unavailable

HYPERV-MANAGER – RPC Server Unavailable


This error made me to check on the network side.

Ping HyperV host from SCVMM Server – Successful

Telnet port 135 of HyperV host which is used by RPC – Sucessfull

Googled this RPC issue and hit on the  Technet wiki article, which made me to think again on the DNS part.

From SCVMM server, Opened NSLOOKUP and searched for the records for HyperV host. Yea – got some clue. I noticed three entries for this server.

Now I realized. I did created few Virtual Network Adapters on top of the Logical Network. Each Virtual Network Adapter is in fact linked with a particular subnet which has a DHCP scope of few IPs to enable ADJoin through template. Due to this, the Virtual Network Adapters got an IP from DHCP which got registered with DNS.

Unchecked “Register the connection’s address in DNS” from each Virtual Network Adapters and then ran ipconfig /registerdns .

This removed the duplicate entries from DNS. However – issue still exists.

From the HyperV host, tried to ping SCVMM host which was not successful. This made me to check the route.

Route Print

Route Print

For destination, the server is having multiple paths with different metric. Even the one with highest metric was the actual route, traffic is getting routed through other interfaces randomly. For all Virtual Network Adapters, allocated a static IP and everything started working. Just a cool breeze !



SCVMM 2012 R2 – Issues specific to OS Profiles and Templates

Its a while I could really concentrate on my Blog post related with Building a private cloud. The reason is something which I couldn’t make working as I expected.

I have two scenarios to share.

1) DomainJoinOrganizationalUnit Parameter on Gust OS Profile

This switch is used to specify the custom OU to be used for the VM Computer object while deployed from a template. I had mentioned this on my Gust OS Profile correctly, but the VM always joins to the default Computers OU.

My Technet forum post is here.

2) OS Configuration on templates VS OS Configuration on Gust OS Profile

I have a template which is created with OS Customization. This will give the flexibility for me to choose the OS profile while deploying a VM from this template. If I choose NO OS Customization while creating the template, I don’t see an option for configuring OS Profile while trying to create a VM from this template.

I have some settings on the OS Configurations part of template. While creating a VM with this template, I choose an OS Profile which has set with a different values than in the OS Configuration of template. My assumption is that the value in Gust OS Profile – OS Configuration will over ride the settings inside template – OS Configuration. But unfortunately, I don’t see that. What ever set on the OS template is taking precedence all the time.

More details on this Technet forum post.

I will let you know if I get some more clue on this. If you have any clue/suggestions – Please share it as comments here or on the Technet forum.



VMM is unable to perform this operation without a connection to Virtual Machine Manager management server. Error ID 1615

Recently noticed this error coming up randomly. May be after a specific timeout.

The SCVMM Shell which was already open for a while throws this error.

VMM is unable to perform this operation without a connection to a Virtual Machine Manager management server. (Error ID: 1615).

The easiest fix is to run the command as mentioned in the error.

VMM Error