Freigeben über


Getting out of trouble with SCVMM

I have been using SCVMM (System Center Virtual Machine Manager) more and more in my home environment of late.  But I also keep getting myself in trouble – usually because I keep on trying to do things the “Hyper-V way”.

Recently– I tried to do a quick storage migration of a running virtual machine from my production server to my dev / test server (yes – I do have production and dev / test Hyper-V servers at home) and the migration failed.  I retried the migration through SCVMM and it failed again.

At this point in time I should have chosen to undo the operation through the SCVMM console.  Unfortunately – I instead dived into the Hyper-V Management console and deleted the snapshots that SCVMM had created as part of the quick storage migration. 

This left me in a bad position.

SCVMM still had this virtual machine marked as failed – and any attempt to repair the virtual machine would fail too – as whenever I tried to repair, or undo, the migration the first thing SCVMM would do is to look for the virtual machine snapshots that I had deleted.  To make things even worse – the “failed” virtual machine was running on my production Hyper-V server, which I really did not want to reboot to help SCVMM sort out the state of the system.

After searching the web and thinking about it for a bit – I came up with a simple solution.

I removed my production Hyper-V server from SCVMM, and then added it back.  Neither of these operations affect the virtual machines running on the Hyper-V server – and it effectively resets the state of the server for SCVMM.

The whole process took about 5 minutes and I soon had all my virtual machines correctly listed in SCVMM.

Cheers,
Ben

Comments

  • Anonymous
    February 24, 2011
    That is pretty simple.  Another way would be to open up your VMM database with SQL Managment Studio, then edit your db0.tbl_WLC.VObject table, find your VM name and change the status column to 0 or 1.  This will trigger VMM to refresh the VM to its correct status.  Works for other stuck statuses in VMM like the occational "Missing" status that can get VMM confused after a cluster node failure. -Rob

    • Anonymous
      November 23, 2017
      BTW there is no status columnI found ObjectState. Is this the one you are referencing?
  • Anonymous
    February 24, 2011
    I've had to use this method a few times but in our environment we are heavily reliant on some of the vmm attributes like owner, quota points, template name etc which all gets lost doing this. We resorted to manually editing the SQL tables but this isn't ideal either.

  • Anonymous
    February 24, 2011
    Does this rectify the problem also? It has worked for me in the past for similair issues social.technet.microsoft.com/.../c597eec3-ddb6-4610-ae9e-4d15f8dbd4ac

  • Anonymous
    February 25, 2011
    i had a few problems like this, probably caused myself because of doing stuff in hyperv manager. with my first VMM server i had the thing hanging on removing a hyperv manager from VMM, which broke the whole thing and decided to do a reinstall. As i said, i probably caused this myself because of doing stuff in hyperv manager, but.. I also think doing normal stuff in the hyperv manager should not break VMM. Ive seen som e other ppl having trouble aswell and blogs how to edit VMM's SQL DB, but i dont think that should be considered to be normal. Although i like Hyperv and VMM, i dont think VMM is ready for main use without experts managing it.

  • Anonymous
    February 27, 2011
    The comment has been removed

  • Anonymous
    February 27, 2011
    I have had a bad luck previously from removing and re-adding servers from/to SCVMM. I have a 2 nodes failover cluster running HyperV and I tried to remove and re-add the cluster usign SCVMM admin console. The problem is half (or all? forogt) VMs (they are production VMs) got failed over to another node!

  • Anonymous
    February 27, 2011
    The comment has been removed

  • Anonymous
    February 27, 2011
    Hate to say it, and this is probably the wrong place for it, but I'm not a fan of SCVMM either.  It has two main advantages over Hyper-V Manager and Cluster Admin:

  1.  It's a prettier, consolidated interface.  You can do it all from one place.
  2.  It has expanded functionality like P2V, self-service portal, etc. But generally speaking, it is faster and easier (and with a more responsive interface) to do anything that needs done with Hyper-V Manager or Cluster Admin.  And I've had customers who have told me the same thing...they hate SCVMM.