Share via


Compare-VM not reporting Incompatibilities

Question

Monday, April 20, 2015 8:48 PM

I'm trying to migrate a bunch of guest VMs from 2012 servers to 2012R2.  I'm running Compare-VM to get a Compatibility Report.  The issue that I'm having is that no matter what incompatibilities I have, there only exist one incompatibility.  This is message ID 21024 'Virtual machine migration operation for 'guestVM' failed at migration source 'srcServer'.

I can see on the destination server that there are events in the log for the actual incompatibilities, be they processor incompatibility, incorrect network name, etc.

How can I convince Compare-VM to return the actual incompatibilities?

Thanks

-Dave

All replies (7)

Monday, April 20, 2015 9:06 PM ✅Answered

Are you looking through the compatibility report?

http://itproctology.blogspot.com/2012/08/handling-import-vm-errors-in-server.html

And then repairing the configuration and then importing the repaired configuration?

Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.


Wednesday, April 22, 2015 2:46 AM ✅Answered

Hi Dave,

Please enable the processor compatibility mode on the guest VM. Most of the network incompatibilities issue is the Incorrect Virtual Switch name, please ensure on both the machines the Hyper-V configuration is same.

More information:

Using Compare-VM on Compare-VM

http://blogs.msdn.com/b/virtual_pc_guy/archive/2014/02/13/using-compare-vm-on-compare-vm.aspx

I’m glad to be of help to you!

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]


Tuesday, April 21, 2015 12:39 AM

Brian,

Yes.  I was planning on repairing the configuration, then importing it.  But, in order to do that, I need the actual incompatibilities, not the generic 21024 that I'm getting.

Any ideas?

-Dave


Tuesday, April 21, 2015 12:50 AM

The details are there.

Did you read the blog post that I provided the link for?

Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.


Tuesday, April 21, 2015 1:36 AM

No.  The details are supposed to be there.  What I actually get is...

PS C:\Windows\system32> compare-vm -Name GuestVM -DestinationHost DestHost -IncludeStorage -DestinationStoragePath \\NASShare\hyper_v


VM                 : Microsoft.HyperV.PowerShell.VirtualMachine
OperationType      : MoveVirtualMachineAndStorage
Destination        : DestHost
Path               :
SnapshotPath       :
VhdDestinationPath :
VhdSourcePath      :
Incompatibilities  : {21024}


PS C:\Windows\system32> move-vm -Name GuestVM -DestinationHost DestHost -IncludeStorage -DestinationStoragePath \\NASShare\hyper_v

move-vm : Virtual machine migration operation for 'ust00eovscsm11' failed at migration destination 'DestHost'.
(Virtual machine ID 78DBC993-F4C8-4CBB-B098-15730BEA00D5)
The virtual machine 'GuestVM' is not compatible with physical computer 'DestHost'. (Virtual machine ID
78DBC993-F4C8-4CBB-B098-15730BEA00D5)
Could not find Ethernet switch 'Virtual Switch 106'.
Memory reservation below minimum.
The operation cannot be performed because the object is not in a valid state.
At line:1 char:1
+ move-vm -Name GuestVM-DestinationHost DestHost -IncludeStorage -Dest ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Hyper...VMMigrationTask:VMMigrationTask) [Move-VM], Virtual
   izationOperationFailedException
    + FullyQualifiedErrorId : InvalidObjectState,Microsoft.HyperV.PowerShell.Commands.MoveVMCommand

As I'm sure you can see, I have one generic incompatibility when I run the compare. When I do the move, it shows that the minimum memory is too low and that the switch doesn't exist on the destination.  Why aren't these in the compatibility report?


Tuesday, April 21, 2015 1:41 AM

Compare-VM is a process - you execute it and capture the response and then drill into it.

Read my blog, it explains how to use it - you are expecting it all at the top and it isn't.

Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.


Thursday, December 15, 2016 8:42 PM

i'm having this exact issue in 2012 but not 2012 R2

using this article i successfully tested changing the incompatibilities in-line during the migration and it worked fine on 2012 R2 but not on 2012

2012 is throwing a generic 21024 error message (generic failure), whereas event log on the destination server is also showing 33012 message (vSwitch name mismatch)

2012 R2 throws both messages so i can properly error handle them

i depend on 33012 showing up during compare-vm so that i can use error handling on changing the vSwitch name for the destination host as i can't rename the destination vSwitch to match the source name

so again, the question as Dave has put it, why is 2012 throwing only the generic failure error code but 2012 R2 throws all individual error codes?