Monday, April 29, 2013

Update Rollup 2 for VMM 2012 SP1

Last but not least, the Update Rollup 2 for System Center 2012 SP1 – Virtual Machine Manager became available last week.

Important note:

You must uninstall Update Rollup 1 prior to installing Update Rollup 2.

If you install Update Rollup 2 from Microsoft Update Catalog without uninstalling Update Rollup 1, you should uninstall both 2 and 1 before installing 2 again.

Also note that Update Rollup 2 won’t be available through WSUS if Update Rollup 1 is installed.


After you have installed Update Rollup 2, you must update the VMM agents on your servers in Fabric. The servers will have a warning that requires your attention, and you can simply right click on the servers and proceed to update the agent. This won’t require any reboots.

Bug fixes:

A lot has been fixed related to networking, virtual network adapters, logical switches, uplink port profiles, extensions, classification and so on. I have encountered many of these bugs in the field myself and it’s great to have them solved.

Virtual Machine Manager Server (KB2826405) and Administration Console (KB2826392)

Issue 1

The SUSE Linux Enterprise Server 11 operating system is missing from the Linux OS list.



Issue 2

A virtual machine cannot start after migration from Windows 7 to Windows 8 when the DiscardSavedState method is used.



Issue 3

A connection to the VMware virtual machine remote console session cannot be established.



Issue 4

Externally published VMNDs are filtered incorrectly.



Issue 5

When you remove a virtual switch extension property or edit a virtual switch extension manager connection string, a user-interface generated script also removes the HostGroups that are associated with VSEM.



Issue 6

UPPSet is not set on a physical network adapter when you add the network adapter to a team and when the network adapter is the first in the list of network adapters.



Issue 7

The default gateway is missing on a host virtual network adapter after you add a second physical network adapter to the logical switch.



Issue 8

Static IP pool that has the first address in a subnet fails for external network type.



Issue 9

VMM crashes during host refresher when VMM is unable to create a CimSession with the remote host.



Issue 10

Standard (legacy) virtual switch creation on Windows 8 hosts with management virtual network adapter does not preserve the IP properties of the physical network adapter.



Issue 11

The administration user interface crashes with a NullReferenceException error when you click Remediate on a host instead of a virtual network adapter.



Issue 12

The Virtual Machine Manager user interface displays a network adapter in a "Not Connected" state.



Issue 13

The Virtual Machine Manager stops responding with high CPU usage for five to ten minutes when you configure a VMND that has 2,000 network segments.



Issue 14

The host virtual network adapter property for a management adapter does not show port classification.



Issue 15

Live Migration fails at 26 percent when the network adapter is attached to an isolated virtual machine network.



Issue 16

The Virtual Machine Manager Service crashes when a virtual machine that does not have a port profile is migrated to a cluster by using a logical switch that has a default port profile set.



Issue 17

Running Dynamic Optimizer on a cluster with incompatible host CPUs causes a Virtual Machine Manager Service crash.



Issue 18

The Host refresher crashes for any host that has the RemoteFX role enabled.



Issue 19

The minimum memory for dynamic memory greater than 32GB is a security risk.



Issue 20

The status of the network adapter is displayed as Not Connected in Virtual Machine Manager.

Monday, April 22, 2013

Mastering new Microsoft Technologies while doing what you love

A couple of weeks ago, I spent some nights at a boring hotel in the middle of Norway.
I was wrapping up on my work stuff, and had finally some time to dive into some of the new stuff that I have not had the time to, yet.
So to gain better understanding about PVLAN configuration, requirements and some of the news in DPM 2012 SP1, I headed over to the MS forums.
This is truly the best source of knowledge and experience an IT-pro working with Microsoft technologies can get.

Back in 2010 when I was working solely with virtualization and Hyper-V, I wanted to master the technology and get my certification. It was 3 exams back then to become MCITP: Virtualization Administrator 2008 R2. But guess what? There were no official preparation from Microsoft, like the usual books published by Microsoft Press.

How could I get the experience, the hands-on and so on to adopt the skills I needed?
I went to the MS learning overview of each certification to see what skills they was measuring during the exam. This was quite useful, so I could see the different categorization I needed to know.

Therefore, I had my own lab, some time off and decided to get it done. I participated so hard in the Hyper-V and Failover Cluster forums, that I actually was pinged from several forum users directly, for assistance.
It was a new and stimulated way of doing work. I solved real world problems and helped many users, customers and organizations out there through the community channels. One thing lead to another and I started my blog as well, to share knowledge directly from my experience.
The end of this story is that I was awarded the Microsoft MVP award, for helping the community.
And it felt good because I felt I had put some effort to achieve this.
However, it didn’t make me relax and jump away from the forums, because the forums is the channel that makes me continue to be sharp, having the experience before others and learning and teaching the wide world of community users.

Twitter, facebook, LinkedIn and other bits of the social media are all very useful to help the community, but nothing, and I mean nothing beats the forums. It’s the best way of doing community work (both for you and the community) and also to learn new technology and products. I strongly encourage you to participate, share your experience, tips & tricks, and join the communication in the forums of your expertise.

If you have a favorite Microsoft product, or maybe just a subset of some features, there might just be a forum for that as well. Explore it and join and you are suddenly hooked ;-)

Tuesday, April 9, 2013

Closing the gap with Windows Azure Recovery Services

It has been a while since Windows Server 2012 had its launch, and System Center 2012 SP1 followed up in January this year. However, one of the most interesting features that was shipped with Hyper-V in Win 2012, wasn’t covered by System Center.

Or was it?

You would suspect that VMM would expose these settings, and let you configure Hyper-V Replica, but there was not any button in the GUI nor cmdlets for this.

However, Hyper-V and the Hyper-V Replica feature is fully exposed through Powershell, so it was very easy – and possible to achieve great workflows through the power of Orchestrator.


This is another feature (currently in preview) that is helping to mind the gap between private and public, and makes it easier than ever to have hybrid solutions. And when you think about it, a disaster recovery service is probably a good thing to have outside of any of your locations. Right?
Your management layer of Hyper-V Replica would be in Windows Azure, using both Hyper-V and VMM on-premise to give you the opportunity for disaster recovery.

Together with the backup to cloud offering in Azure, you are able to make the most of it while leveraging your System Center components.

If you click on the link above and read the instructions on Windows Azure, you can see that it is an agent that you deploy to your fabric infrastructure: http://www.windowsazure.com/en-us/manage/services/recovery-services/configure-a-hyper-v-recovery-vault/#header-2

More info from the feature preview on Windows Azure: 
 
Hyper-V Recovery Manager (Preview)

Orchestrate protection and recovery of private clouds

Windows Azure Hyper-V Recovery Manager can help you protect important services by coordinating the replication and recovery of System Center 2012 private clouds at a secondary location.

Automated protection

System Center 2012 Virtual Machine Manager private clouds can be protected through automating the replication of the virtual machines that compose them at a secondary location. The ongoing asynchronous replication of each VM is provided by Windows Server 2012 Hyper-V Replica and is monitored and coordinated by Hyper-V Recovery Manager.

Orchestrated Recovery

The service helps automate the orderly recovery in the event of a site outage at the primary datacenter. VMs can be brought up in an orchestrated fashion to help restore service quickly. This process can also be used for testing recovery, or temporarily transferring services.

To try this feature in preview, you will need a Windows Azure account. To begin your sign up, click here.

Note: This limited preview program is available to a small group of customers in specific geographic locations1 using Windows Server 2012 and System Center 2012 SP1. However, we are always on the lookout for additional customers who will provide us with interesting and actionable feedback. If you would like to be considered for this program please complete the Microsoft survey located here. Thank you in advance for your responses! We will only be contacting those of you that have been accepted to participate.

1 Only customers located in the following countries will be considered: United States, Canada, United Kingdom, Germany, France, Belgium, Switzerland, Denmark, Netherlands, Finland, Australia, Japan, India, New Zealand. Data for this Preview feature will be stored only in the Azure datacenters located in the United States.

Before I close this blog post, let me highlight something interesting in the VMM console, that you can use to keep track on your VMs that is configured in a recovery group:

These columns in the view will be very helpful.

-kn

Monday, March 25, 2013

Enabling Chargeback in a Service Provider Cloud


Enabling Chargeback in a Service Provider Cloud

I have blogged extensively about Hyper-V, VMM and Katal lately, and this blog post is part of this unstructured blog series, where I today will focus on chargeback.

Prior to configuring Katal, we must have the basic components in place

·         Windows Server 2012

·         Hyper-V

·         System Center Virtual Machine Manager 2012 SP1

·         System Center Orchestrator 2012 SP1

·         SPF (Service Provider Foundation – a part of Orchestrator in SP1)

 

As part of the SP1 release, Microsoft introduced a framework for Chargeback.

The direct link is as follows:

SCVMMàSCOMàSCSM

1.       You must have your private clouds configured in Virtual Machine Manager. In order to get Katal up and running, this is key.

2.       You must integrate SCOM and SCVMM so that the configuration items and objects are discovered by SCOM, and monitored. This is important since SCOM will give you some reports for the chargeback solution. To import the Chargeback solution, read the rest of this blog post.

3.       SCSM will get the configuration items from both SCOM and SCVMM and let you create price sheets that you can associate with your clouds.

Now, the third step mentioned here might not necessarily be a requirement to have a qualified chargeback solution. However, Service Manager may give you some additional features and dynamic, as well as extended reporting capabilities. This blog post will not include Service Manager, but be limited to SCVMM and SCOM to get the most out of it.

 

Step 1: Configuring the Fabric in VMM






The links above contains relevant information and guides on how to configure the Fabric resources with all the new capabilities in Windows Server 2012.

Step 2: Create a Private Cloud in VMM

Follow these steps to create a private cloud in Virtual Machine Manager 2012 SP1.

In ‘VMs and Services’, click ‘Create Cloud’ from the ribbon. This will launch the cloud wizard.
Assign a name and eventually a description for your cloud

Select which resources should be available, at the host group level. If you have added a vCenter and VMware infrastructure to VMM, you can also add a VMware resource pool.

 

Select logical networks. In terms of abstraction and the new way to do networking in VMM, it’s important to select a logical network that is associated to a VM network. The tenants will access the VM networks in the portal, and you must create them whether you like it or not. A VM network can either have isolation (with network virtualization) or not, which is using the logical network directly.

Select Load Balancers. Currently in Katal, there is no support of deploying Services. Only virtual machines.

Select VIP templates. VIP profiles is to no use if you’re not dealing with services. If this is a cloud that should be accessed by App Controller as well, both load balancers and VIP templates will be relevant since App Controller supports services.

Port Classifications. The classifications that should be interested to make available in a cloud, would be the classifications associated with VM networks. Choose all that apply.

Storage. Specify which storage classification that should be available in this private cloud.

Library. Choose a read-only library and eventually a library where the tenantes can store their virtual machines. For Katal, this may be too much to expose, and you can just use the templates you make available to Katal afterwards, if that is appropriate.

Capacity. Configure the elasticity of this private cloud. If you don’t specify any values here, you can scope the quota in Katal afterwards.

Capability Profiles. If you want to make sure that it’s only Hyper-V capable virtual machines that should be deployed, then mark ‘Hyper-V’. This will check the hardware profile on the virtual machine if it’s suited for this cloud. You can also create custom capability profiles. More info on this link: http://kristiannese.blogspot.no/2011/08/capability-profiles-in-scvmm-2012.html
Click finish once you are done.

Step 3: Create Plans in Katal for the tenants

Logon to your Service Management portal to create Plans.

To access the Service Management portal, you must use the correct port as you specified during installation. Default is 30091, and the tenant portal is using 30081.

Navigate to ‘Plans’ in the Service Management portal and click ‘New’, and ‘Create’.


Select a friendly name for your plan and click next.
 
Select services for a hosting plan. In my case, I only want to provide a virtual machine cloud.

Once you’re satisfied, click finish.
Back to the portal, we can se that we have a new plan, but there’s still some configuration to do.

Before tenants can subscribe to the plan, we need to make it public. Click on the plan to configure it.

 

You will see ‘plan services’. Click on ‘Virtual Machine Clouds’ to configure the plan.

Configure the plan to connect to both your ‘Cloud Provider’ which is the SPF server. In my case, I’m using Orchestrator and SPF on a single machine.
Configure the Virtual Machine Cloud. The cloud I created in VMM will be visible here, and I can use it together with Katal.

If you scroll down further, you must also specify the quota, templates, hardware profiles, networks and actions that should be available for the tenants.

Once you’re done, click save, and then click ‘Make public’.

Navigate back to ‘Plans’ in the Service Management portal and verify that the newly created plan is Public.
I have now created a plan in Katal that is exposing my cloud in VMM, ready for tenants to subscribe and create virtual networks and virtual machines.

Note that there’s several other options during these steps, like advertising, invitation code and different control mechanisms that I won’t cover in this blog post, but it’s worth to take a closer look at for real world deployments.

Step 4: Integrate SCOM and SCVMM

Once you have the pre-req in place for SCOM and SCVMM integration (IIS, Windows Server and SQL MPs, SCOM console installed on SCVMM server), you can setup the integration within the SCVMM console.

Navigate to ‘Settings’ in the SCVMM console
Click on ‘System Center Settings’ and launch the ‘Operations Manager Server’ wizard.
The first page will tell you what you need to have in place prior to running this configuration.

Specify the server name of your SCOM server, and the credentials to access the management group. I have given my SCVMM service account the required permission in my lab environment.
 
Take actions if you want to enable PRO and integration for maintenance mode between SCVMM and SCOM. I recommend you to enable both to get the most value from this integration. Click next once you’re done.

 
Configure connection from SCOM to SCVMM. I use the same credentials here, since SCOM will use my SCVMM service account when connecting to the SCVMM server.

Click next and finish, and SCOM will import the SCVMM MPs from SCVMM during this process.

To verify the integration afterwards, review the log in SCVMM, check the Operations Manager connection, and also see in the monitoring pane in SCOM that the MP is viewing data from SCVMM.

Step 5: Install Chargeback report files on the Operations Manager management server

Log on to the Operations Manager management server.

In the Chargeback folder, copy the subfolder named Dependencies from the Service Manager management server to the Operations Manager management server.

On the Operations Manager management server, start Windows PowerShell and then navigate to the Dependencies folder. For example, type cd Dependencies.

If you have not already set execution policy to remotesigned, then type the following command, and then press ENTER:


Type the following command, and then press ENTER to run the PowerShell script that imports chargeback management packs and that add chargeback functionality to Operations Mananger:

.\ImportToOM.ps1

After the script has completed running, type exit, and then press ENTER to close the Administrator: Windows PowerShell window.

Ensure that Operations Manager has discovered information from virtual machine manager such as virtual network interface cards, virtual hard disks, clouds, and virtual machines.

Step 6: Viewing Chargeback reports in Operations Manager

Navigate to the Reporting pane in Operations Manager Console.
Find the System Center 2012 Virtual Machine Manager reports and launch the ‘Chargeback’ report.

Before running the report, you must include some data. Choose between hosts, services, VMs, clouds and so on, and specify the date. To get an overview of the costs associated with these resources, you can specify cost for memory, CPU, VM and storage classification.

Run the report once you are ready.

Summary

Hopefully this blog post showed how you can have a chargeback solution with System Center and Katal. Once the tenants starts to subscribe on a plan that again is connected to a cloud in VMM, you can easily run reports towards that cloud to get an overview of how much resources they are consuming.

Thursday, March 21, 2013

Can't add a Hyper-V host to cluster using VMM 2012 SP1

Problem:

When you have added a new Hyper-V host to Virtual Machine Manager 2012 SP1, and configured the host with a logical switch, you will probably get some errors when trying to add this node to your cluster.

Error (25343)

"No network adapter found on host <hostname> that maches cluster virtual switch <Logical Switch Name>

Recommended Action

"Please add a network adapter to the host and set the Logical Networks on the adapter to match the cluster network."


 

Please check the obvious:

1.       The host has mapped the physical adapters to the logical networks on the host properties à Hardware

2.       The logical networks and sites are associated and available to the host group

3.       You have configure the same Logical Switch with the same virtual network adapters
 
4.     Check the Logical Network for Compliance issues in Fabric

 

If all this is good, then you’ve hit a known issue in System Center 2012 SP1 – Virtual Machine Manager.

This will be addressed in an update for Virtual Machine Manager.

Workaround

To add your Hyper-V host to the cluster, use Failover Cluster Manager.

Refresh your cluster in VMM afterwards.

Saturday, March 16, 2013

VMM 2012 SP1 - Real World Example


Real World example of using the new capabilities in Windows Server 2012, Hyper-V, and System Center 2012 SP1.

Let me start this blog post by explaining how glad I am that we are finally here, with Windows Server 2012 and System Center 2012 SP1.

The waiting has been tough, and many customers have been on the edge before implementing Hyper-V without management. However, my experience is that many customers are moving away from VMware and jumps over to Hyper-V and System Center. V2V is probably my closest friend in these days, together with a couple of Logical Switches. More on that later in this blog post.

So in this example, I would like to tell you about this enterprise customer who’s running major datacenters using VMware with vCenter. They were doing it all in the traditional way, using Fibre Channel from their hosts, connected to some heavy, expensive and noisy storage.

So how did we present a better solution for them, more suited for the future, using technology from Microsoft?

The customer would like to utilize their investments better, and do things more economically and cost effective, without losing any performance, functionality, availability and all the other factors you put into your SLA.

Key elements:

·         Windows Server 2012

·         Hyper-V

o   SMB3.0

o   Scale-Out File Server Role

o   NIC Teaming

o   Network Virtualization

o   Failover Clustering

·         System Center 2012 SP1

o   Virtual Machine Manager

o   Operations Manager

o   Orchestrator

·         Windows Azure on Windows Server (Katal)

o   SPF (SC 2012 SP1 – Orchestrator)

Since this is a large environment, designed to scale. The first thing we did was to install Virtual Machine Manager.

In a solution like this, VMM is key to streamline the configuration of Hyper-V hosts and manage the Fabric (pooled infrastructure resources). So since this would be a very important component, we installed VMM in a failover cluster as a HA role.
 
·         Dedicated cluster for Virtual Machine Manager

·         Two Windows Server 2012 nodes

·         Configuration of Distributed Key Management

·         Connected to dedicated SQL cluster for System Center

·         VMM console installed on a dedicated management server

With this baseline in place, we started to prepare the fabric.

Instead of using the traditional way of delivering shared storage to the hosts, SMB3.0 was introduced as an alternative. The customer was interested to see the performance of this, and the ability to manage it from Virtual Machine Manager. In test environment, we setup the hosts with multiple storage options.

Test environment:

·         Two Hyper-V hosts in a cluster managed by Virtual Machine Manager

·         Both hosts connected to shared storage using:

o   Fibre Channel directly to their SAN

o   2 x 10Gbe NICs in a NIC team, using dedicated virtual network adapters for SMB3.0 traffic, accessing a scale-out file server cluster.

 

Overview

After testing this, the results were clear.

1.       The customers had gained the same performance as using Fibre Channel.

2.       In addition, they had now simplified management by using file shares instead of dedicating LUNs to their clusters, leading to better utilization.

3.       Moreover, by better utilization, they were able to scale their clusters in a very new manner than before.

4.       By calculating on this for production, they were able to reduce their costs significantly by using Ethernet infrastructure instead of Fibre Channel. And this was key, since they could leverage Ethernet and move away from HBA adapters on their hosts.  

The networking part was probably the most interesting in this scenario, because if you think about it, a Hyper-V cluster configuration is all about networking.

And by using NIC teaming, QoS, network virtualization, SMB3.0 and more, it’s important to pay attention to the goal of the design as well as the infrastructure in general.

Every host had 2 x 10Gbe modules installed. And the customer wanted Load Balancing and Failover on every network.

We designed the following logical networks in Virtual Machine Manager:
 
·         Management

·         Live Migration

·         Guests

·         SMB1 (on the Scale-Out File Server cluster nodes, we made the SMB networks available for clients and registered the IP addresses in DNS. This is required if you want to use Multi-Channel)

·         SMB2

·         Cluster

Then, we created network sites and IP subnets with associated VLANs.

For each logical network, we created a VM Network associated with the logical networks.
For more information about NIC teaming in VMM and Network Virtualization, check these blog posts:
 
 
 
Next, we created Native Port Profiles for the teams and the virtual adapters, and grouped them in Logical Switches.
We prepared the Fabric additionally by integrating with PXE and WSUS for securing the life cycle management of the resources in the Fabric.

All set. We started to deploy Hyper-V hosts, and streamlined the configuration by putting then into right hosts groups, applied logical switches and presented file shares to them.

By taking a couple of steps back, I can clearly see that VMM is an absolute necessary framework for a highly available datacenter solution today. Almost every step was performed from the VMM console, and this was highly appreciated by the customer.

The next steps was to deploy virtual machines and leverage the flexibility of templates, profiles and services.

Ok, we had a Private Cloud infrastructure up and running, but still there was some work to do.

Migration from VMware to Hyper-V J

Ok, if you want to perform this operation in bulk, converting many virtual machines at once, then you must either use your Powershell ninja skills combined with Orchestrator, or some secret tool from Microsoft that also involves Veeam.

But if you want to take this slowly while doing other things simultaneously, then VMM is your friend.

This to be aware of:

-          Make sure the networks that your VMware virtual machines are connected to, are available on the Hyper-V hosts

-          Make sure you have a supported VMware infrastructure (5.1 is the only one that is supported but it might work if you are using 5.0 also).

-          Uninstall VMware tools manually on the VMs you will convert.

-          Power off the VMs afterwards.

-          Add both vCenter and then VMware ESX hosts/clusters in VMM.

-          Run Virtual 2 Virtual Conversion in Virtual Machine Manager.

This is an ongoing process and will require some downtime for the VMs. An extra step by converting the VHDs to dynamically VHDX can also be evaluated.

Hopefully this blog post gave you some ideas on how to leverage Windows Server 2012, Hyper-V and Virtual Machine Manager.
Of course we integrated with Operations Manager as well, to get monitoring in place for our fabric and virtual machines. This is key to ensure availability and stable operations.
The self-service solution landed on Katal, so that they could expose their Clouds/Stamps/Plans to their customers in a really good-looking UI with lots of functionality. I will cover this in a more detailed blog post later.