Hyper-V live migration failed

There is Hyper-V cluster with 2 nodes. Windows Server 2012 R2 is used as operating system.

Trying to live migrate test VM from node 1 to node 2 and get error 21502:

Live migration of 'Virtual Machine test' failed.
'Virtual Machine test' failed to fixup network settings. Verify VM settings and update them as necessary.

VM has Network Adapter connected to Virtual switch. This vSwitch has Private network as connection type.

If I set virtual switch property to "Not connected" in Network Adapter settings of VM I get successful migration.

All VM's that are not connected to any private networks (virtual switches with private network connection type) can be live migrated without any issues.

Is there any official reference related to Hyper-V live migration of VM's that have "private network" connection type?

March 28th, 2014 5:34pm

Internal and private network traffic is always limited to the physical host it occurs on. This does not change in a clustered environment because the virtual switch is not a clustered resource.

http://technet.microsoft.com/en-us/library/gg610603.aspx

"Type private and internal allow communication between virtual machines on the SAME  host "


  • Proposed as answer by Eric Siron Friday, March 28, 2014 7:41 PM
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2014 6:58pm

What Udo said is 100% correct, but if you just want Live Migration to work, then you must create private switches on each node with the same name. They still won't be able to communicate while on disparate hosts.
March 28th, 2014 7:41pm

thx eric for the addon, live migration only looks for Switch with the same Name, even it makes no sense :-)

Free Windows Admin Tool Kit Click here and download it now
March 28th, 2014 9:06pm

Hi,

Are all virtual switch names required to be the same to support live migration?

Yes, you should make sure that all virtual switch names are the same across the entire cluster.

You can refer more about the frequently asked Live migration question in the below KB:

Hyper-V Live Migration FAQ

http://technet.microsoft.com/pt-pt/library/ff715313(v=ws.10).aspx

Hope this helps.

April 1st, 2014 6:32am

I didn't mention that private switches with the same name were already created.

Issue is that Live migration doesn't work with private connected switches.

Any ideas?

Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2014 12:54pm

Hi,

Type of Virtual switch
External - connectes to a physical or wireless adapter
Internal - parent and virtual machine connections only
Private - virtual machine connections only

Hyper-V live migration means, moving a running VMs from one HOST to another HOST with no downtime to running applications. So in this scenario, private network will not work because Private virtual switch will communicate VMs within same HOST only not on different HOSTs. For the best practice, Create separate dedicated network for Live Migration.

April 3rd, 2014 6:55am

So I have for example 2 vm's connected to each other via Private switch. I will not be able to migrate both vm's to secondary hyper-v host?

I think it is critical issue. What if I have following scenario:

I have 1 app server, 1 sql server - they have private connection.

Also I have 1 RRAS server with 2 nic's - one connected to private network, another nic is connected to external network.

This is example of implementing simple DMZ for very critical application.

Following your ideas (and my tests) I will not be able to make these servers high-available (I mean live migration all of these 3 servers to another hyper-v host at the same time). it is very simple scenario but it doesn't work. If think logically why not to fix it with next SP?

Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2014 1:25pm

I can Live Migrate virtual machines with adapters on private switches without error. Aside from having the wrong name, the only way I can get it to fail is if I make the switch on one host use a different QoS minimum mode than the other and enable QoS on the virtual adapter. Even then I get a different message than what you're getting. I only get that one with differently named switches.

There is a PowerShell cmdlet available to see why a guest won't run on another host. Here's an example of its usage. There's a way to use it to get it to Live Migrate.

But there is no way to truly Live Migrate three virtual machines in perfect lockstep. Even if you figure out whatever is preventing you from migrating these machines, there will still be periods during Live Migration where they can't communicate across that private network. You also can't guarantee that all these guests will always be running on the same host without preventing Live Migration in the first place. This is why there really isn't anyone doing what you're trying to do. I suggest you consider another isolation solution, like VLANs.

April 6th, 2014 3:43pm

It doesn't work. Tried with multiple clusters. VM can't be migrated with Private switch attached. I mentioned that the same switch name is used on all cluster nodes. It is not my particular case because I tried it on dev with cluster that I created from a scratch. Prod doesn't work as well.
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2014 11:25am

Try Move-VM.

October 21st, 2014 2:10pm

It works either from command line or Hyper-V manager. It doesn't work in Failover Cluster Manager. Try to migrate VM with private switch using FCM. Does it work?
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2014 5:43pm

Apparently they changed the behavior of FCM. I don't use GUI tools much anymore and it's been even longer since I attempted something like this so I don't know when this change occurred. But, if you've got some use case for this, you now know how you can do it.

October 21st, 2014 5:50pm

Yes I agree but there is another issue. It looks like SCVMM also get the same error. Anyway thank you for your time.
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2014 11:03am

I have a 2 node cluster using Server 2012 R2.  When I have VMs with private network switches I can Quick Migrate them but not Live Migrate them. The switches on both hosts have the exact same name. If I switch the VMs to an external network switch they will Live Migrate. Why can it Quick Migrate, but not Live Migrate with the private network switch?
April 3rd, 2015 4:29pm

Why making your live so complicated, use a normal external vSwitch and type in a VLAN ID which is not in use and everything works like expected
Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2015 6:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics