Powered by System Center
Posts tagged Live Migration
Set Cluster Live Migration Settings
Apr 18th
Today we, Paul Huijbregts and I, resolved one of the last hurdles in finalizing our automated cluster installation script. This hurdle was to change the priority of the Live Migration settings when creating a Hyper-V cluster.
To change this priority we first tried to use the Set-VMMigrationNetwork PowerShell command. Unfortunately this command can only be used when dealing with non-clustered Hyper-V hosts. So we dug deeper and deeper using different PowerShell commands and BING without any satisfying results.
Then we realized there is something called “the registry” which holds the HKEY_LOCAL_MACHINE\Cluster key. After some more digging we found two registry entries called MigrationExcludeNetworks and MigrationNetworkOrder. These entries hold the IDs and order from the Cluster Networks available in your cluster.
Aha … room for possibilities! So, changing these registry entries would order and select the Cluster Networks in the way you want? Yes it does!
For this we fabricated some PowerShell lines.
$ClusterNetworkLM = Get-Clusternetwork LM
$ClusterNetworkCLUSTER = Get-Clusternetwork CLUSTER
$ClusterNetworkMGMT = Get-Clusternetwork MGMT
$ClusterNetworkISCSI = Get-Clusternetwork ISCSI$includeIDs = $ClusterNetworkLM.id + ";" + $ClusterNetworkCLUSTER.id
$excludeIDs = $ClusterNetworkMGMT.id + ";" + $ClusterNetworkISCSI.idSet-ItemProperty -Path "HKLM:\Cluster\ResourceTypes\Virtual Machine\Parameters" -Name MigrationExcludeNetworks -Value $excludeIDs
Set-ItemProperty -Path "HKLM:\Cluster\ResourceTypes\Virtual Machine\Parameters" -Name MigrationNetworkOrder -Value $includeIDs
The result is very very satisfying as you can see in the screen dump below. We are now able to control the order and the selection of the Live Migration settings in a cluster using the Cluster Network ID’s.
Selecting Live Migration Networks in Windows Server 2012 Hyper-V Cluster with PowerShell
Jun 11th
Regarding Windows Server 2012 and Hyper-V, we are very clearly in a discovery phase. When fellow Virtual Machine MVP Didier van Hoye aka @WorkingHardInIT asked me if I had already found out how to select the Live Migration networks in a Windows Server 2012 Hyper-V Cluster, I simply didn’t have a clue. I saw Aidan Finn’s blog about the new location in the Failover Cluster Manager GUI to select these networks, but he was also asking the same question.
Fortunately my rewritten PowerShell scripts to quickly configure the converged fabric switch and the different management OS virtual networks was working wonders so a new 2-node cluster could be set up in no time.
Now how do we select Live Migration Networks with PowerShell?
As you can see in the GUI, the Live Migration setting is now in the Actions Pane instead of in the properties of a high available virtual machine as with Windows Server 2008 R2. I always needed to point out to customers that this was a global setting for all VMs in the cluster. So the new location seems like a logical one.
Without touching the Live Migration Settings, all networks were enabled for Live Migration in the fresh cluster that I set up. They are in this particular order because of the cluster network metric. You can verify this by this command:
Get-ClusterNetwork | Select name, Metric, AutoMetric, State | Sort Metric | ft –Autosize
To find out about the Live Migration networks, you need this command:
Get-VMMMigrationNetwork
By default all known networks are Enabled and have equal Priority.
If you manually move one network to the top of the list, it gets a Priority 4000. So apparently like the network metric a lower number means higher priority.
VM Migration networks are removed by
Remove-VMMigrationNetwork [Subnet]
VM Migration networks are set by
Set-VMMigrationNetwork [IP Address 1, IP Address 2, IP Address n]
Priority is set by
Set-VMMigrationNework [Subnet] [IP Address] –Priority n
Jaap Wesselius interviews Hans Vredevoort on Windows 8
Dec 2nd
Just before //build/ NGN invited the Hyper-V.nu crew over for a series of interviews. Jaap Wesselius who originally started the Hyper-V usergroup accepted the role of the interviewer. Peter Noorderijk, Maarten Wijsman and myself were asked to answer Jaap’s questions. Before you start clicking the links …. the interviews are in Dutch, so unless you want to pick up a few words of our beautiful language, head over to some of the other interviews that fellow MVP Carsten Rachfahl held with me this year:
In one of the previous blog you might already have seen the link to the interview with Peter Noorderijk’s on Hyper-V: http://www.ngn.nl/ngn/weblogs/hyper-v-blog/hyper-v-interview-met-peter-noorderijk/?waxtrapp=ybinfpBsHyoOtvOXEGAH
Today also my interview was published on the site of our NGN friends:
http://www.ngn.nl/ngn/weblogs/hyper-v-blog/hyper-v-interview-met-hans-vredevoort/?waxtrapp=okashpBsHyoOtvOXEGAJ
Topics: Windows 8, Hyper-V v3, storage, networking, live storage migration, VMM 2012
We expect the 3rd interview by Jaap with Maarten Wijsman to be published in the near future.
Camera work and editing by Ed Wens
Live Migration of Hyper-V VM’s with 3PAR across datacenters
Jun 9th
In November 2009 I met Matthias Popp from HP Labs at Microsoft TechEd 2009 in Berlin. During that event he showed me the first example of a live migration of Hyper-V Virtual Machines between two datacenters. The setup demonstrated a multi-site cluster, two HP EVA storage arrays with Continuous Access and HP Cluster Extensions (CLX) which takes care of the storage failover if one of the datacenter fails or when the storage has to be taken down for maintenance at one location.
This week at HP Discover 2011 in Las Vegas, I talked to Matthias again. HP announced that similar functionality is now available for HP 3PAR storage and was really the first integration created for the newly acquired Cloud Storage platform.
In this video Matthias shows how a stock trading system runs in several VMs in one datacenter and how they are live migrated to the other datacenter without losing its availability or its performance. The VM’s run on top op Windows Server 2008 R2 Hyper-V hosts and are migrated via the built-in Cluster Administrator.
| Want to win that HP Server or HP Laptop? Then just click this link: http://www.linkcounter.com/go.php?linkid=326371 |
Improved virtualization support and Live Migration for several Exchange 2010 SP1 roles
May 16th
Because I don’t want to copy Michel de Rooij’s blog I will simply make a reference to his blog. Many of us know that the Unified Messaging role was not supported for Virtualization and that the Exchange 2010 Mailbox Role if used in Database Availability Groups was not supported if implemented on top of Hyper-V, VMware or XenServer host failover clustering. So in a Hyper-V environment we were unable to use Live Migration (although I know many who went against that policy).
With the release of a new whitepaper on virtualizing Exchange this now seems to have changed. Michel explains further in his blog.
Presenter @ ExpertsLive on June 16th 2010
Apr 17th
I will be presenting at ExpertsLive which is held in Nijkerk, the Netherlands on June 16th 2010.
Experts Live is a knowledge event around Microsoft Infra & Security, Unified Communication, Virtualization and Management with Microsoft System Center.
My talk will be called Hyper-V R2 Hotspots zooming in on Hyper V R2 Clusters, Cluster Shared Volumes, Live Migration, Direct I/O, Dynamic Storage, Direct Memory and VHD Tooling.
Proud to say that my company Nobel is one of the main sponsors of the event, along with Citrix and PQR.
The event has free admission but requires registration via http://expertslive.nl/
Moving a Hyper-V virtual machine to Azure
Nov 18th
Although not fully embracing the capability and scalability of the cloud, Ray Ozzie, chief software architect from Microsoft, talked about the ability to move a virtual machine to the cloud. I heard about it on Twitter and went on to look for the source. Apparently it was talked about during the PDC which is held in Los Angeles this week.
When I try to imagine the possibilities, I suppose you start out building your private cloud based on Windows Server 2008 R2 and Hyper-V R2 + System Center, you federate your Active Directory forest with Azure, open your System Center Virtual Machine Manager console and – when you are ready – migrate a virtual machine to Azure. Will it be that easy? Will we be able to move back and forth between private and public clouds just that transparently? This notion opens up a lot of possibilities and probably even more questions. But fascinating it is.
I wouldn’t expect Live Migration or even Quick Migration to Azure. Rapid Migration to Azure sounds good, or even Slow Migration to Azure. Anything goes as long you have the upgrade as well as the downgrade path!
If this is true and businesses start to understand its implications for future IT infrastructures, the opposing vBlock might come in for a surprise.

Review of Ray Ozzie’s keynote in which he talked about moving virtual machines to Azure:
http://news.cnet.com/8301-13860_3-10400244-56.html?part=rss&subj=news&tag=2547-1_3-0-5
How to Protect your MS Virtualized Environment with DPM2010 (Part 3)
Nov 16th
Next in this series is a TechEd Europe 2009 presentation by Asim Mitra, a senior program manager from Microsoft, on data protection and recovery of Hyper-V and Hyper-V R2 workloads with Data Protection Manager 2010.
DPM2010 beta has been publicly available for a few weeks. In my own lab DPM2010 is spinning happily, protecting a Hyper-V R2 cluster with Exchange Server 2010 in a VM on cluster shared volumes (CSV) and several Windows 7 laptops and PC’s. It is quite nice to be in control as a user and determine what to protect from my laptop disks and to be able to restore something whenever I want to. But protecting my production mail server on CSV was really urgent, so I upgraded my DPM2007 SP1 server in-place to DPM2010. It even took care of upgrading the SQL Server 2005 database to SQL Server 2008 without hassle.
Before I went to this session, I had already decided that DPM2010 beta is already more convenient and complete that its predecessor.
The number of supported data sources has grown with DPM2010 and several of them were co-authored with the application developer for a smooth protection and recovery solution. SAP, MS Dynamics re examples of these joint efforts. New data sources are Exchange Server 2010, SharePoint 2010, Hyper-V R2. I probably have missed a few.
In DPM2007 SP1 host-level backup of Hyper-V on Windows Server 2008 and Hyper-V clusters was introduced including Quick Migration.
In DPM2010 this support is extended to Hyper-V R2 with Cluster Shared Volumes (CSV) and is now able to protect virtual machines that are live migrating between hosts. Not many users realized that DPM2007 SP1 was only able to restore VM’s to its original Hyper-V host. Microsoft provided a script to work around that. Now DPM2010 can do Alternate Host Recovery and even Item Level Recovery. This last feature is really unique to DPM!
The question has always been: Should I protect from host or guest?
-
I want to selectively backup individual data objects like databases & files
-
I want to backup each virtual machine as a single object for protection
![]()
The following guidelines can be given to answer those questions:
Host level
-
Protect or recover the whole virtual machine
-
Protect non-Windows servers
-
No granularity of backup
-
“Bare Metal Recovery” and “Item Level Recovery” of every VM
-
Requires single DPM license on host (protecting all guests)
Guest level
-
Protect or recover data specifically
-
-
SQL Server
-
Exchange
-
SharePoint
-
Files
-
-
-
No different than protecting physical server
-
Requires a DPM license per guest (VM)
Whole Node Protection
- This includes the host OS and all VM’s with host level protection
- Requires same single DPM licence on host as in host level protection
Protecting both the parent and the guest is a very cleverly designed cooperation between Volume Shadow Copy writers and requestors. In the example of a Hyper-V R2 server with multiple guests this looks like this:
The Hyper-V VSS writer interacts with a requestor service which is actually the Hyper-V VSS integration component in each VM.
Because there is some time difference between the VSS snapshot of the host and in the guest, there is a potential for data corruption if this wouldn’t be handled correctly. So DPM2010 takes a post-snapshot step to fix the data.
In this post-snapshot step the VHD in the guest is mounted and the amount of changed bytes or blocks are synchronized between the host VSS snapshot and the client VSS snapshot. It sounds easy and it is easy!
Protecting a Live Migrating VM
A more challenging task is the proper protection of a guest which is in the process of migrating between Hyper-V R2 hosts. DPM2010 is able to handle this as well. It works like this:
-
DPM2010 performs an incremental backup of VM from cluster node A
-
The VM then migrates for instance to cluster node C
-
DPM2010 automatically performs the next incremental backup of the Live Migrated VM from cluster node C
DPM has to be aware of the new shared storage architecture of Hyper-V R2. CSV is implemented as a filter driver and sits directly on top of NTFS. DPM can only make a new incremental backup if it knows how to handle the underlying disk architecture. In a Hyper-V R2 cluster all nodes in the cluster can read from a disk in the CSV pool. They can also write to the disk with the VHD on it. Only the so-called coordinator node has full access to the metadata of the underlying physical disk. This coordinator node is not static and can move between cluster nodes, or else it would be a single point of failure. DPM is clever enough to failover the coordinator role to the node in the cluster that needs to take an incremental backup. So if node A owns the disk, and the VM is moved to node B, the DPM agent moves the CSV disk also to node B. This effectively switches the node from Indirect I/O to Direct I/O which makes it possible to make a local incremental backup of the VHD’s from the correct cluster node. Solved that!
There are several Hyper-V recovery options with DPM2010:
-
Restore VM back to original host or cluster
-
Restore VM to a different host or cluster
-
Item Level Recovery (ILR) to file share
This ILR functionality requires that the Hyper-V R2 role is enabled on the DPM2010 server. Hyper-V will not have to do anything else but attach the VHD. This sounds odd since R2 can do this natively without the Hyper-V role enabled.
Planning the deployment
Normally when I plan for DPM storage I roughly calculate 300% the amount of used production disk to be used for the DPM Storage Pool. This is often enough for a retention time of about 14 days on disk. The applied schedule is not relevant for this calculation, because it doesn’t matter whether you synch the data once a day or once an hour. The amount changes per day remain the same. It becomes a different matter if you also want to protect complete guests. Some data would have to be protected multiple times. With ILR this problem is largely eliminated. But to help planning the deployment, the DPM Team offers a Storage Requirements Calculator For Hyper-V Workloads (which is currently in development). We could download a pre-release from the TechEd website.
Why is DPM a suitable data protection product for Hyper-V?
-
Incremental backups only – full once (first replica)
-
No more backup window – online backups
-
Application consistency via VSS
-
Protect Live Migration VM’s in CSV clusters
-
Protects whole VM and recovers individual items
-
Auto protects new VM’s
-
Routine backups (nightly or more frequently)
As part of Microsoft System Center, Microsoft claims that:
-
It is the best product for protecting Windows file and application servers
-
It is built for Microsoft Virtualization environments
-
It is designed for Windows Clients
-
It has Enterprise-Ready scalability and reliablity















Twitter
RSS