Thursday, July 26, 2012

What to do when hyper-v (VM) gets stuck

What to do when hyper-v (VM) gets stuck


big thanks to
http://www.petri.co.il/get-hyper-v-virtual-machine-process-id-and-guid.htm


I just faced a problem today where a VM refused to turn off (user did a dirty snapshot of a machine and it was in an odd error state).

I did not want to bring down the entire server, nor did I want to hard turn off all machines (restarting hyper-v service will do that).

Each hyper-v VMs are a process on their own. Therefore you can shut each of their process down manually if things do not go the way you expected.

1.       Open up powershell with elevated rights (run as admin

2.       Type the following
Get-WmiObject -Namespace root\virtualization -class msvm_computersystem | select elementname, operationalstatus, processid, name| ft –auto


3.       Write down the Process ID
4.       Go to task manager à processes  and end the corresponding PID
Note: make sure its called “VMWP.EXE”

5.       The VM will automatically reboot.

2 comments:


  1. windows 7 product key , windows anytime upgrade key for windows 7 home premium to ultimate , valid windows 8 enterprise keygen , windows 8.1 product key buy , buy windows 7 ultimate product key free download , keys of windows 7 professnal , windows 7 activation key free download professional , microsoft dynamics crm 2011 serial key , sOlcBj

    ReplyDelete
    Replies
    1. windows 10 product key 2yt43 , windows 10 professional key , windows 10 serial key generator , rosett astone spanish latinamerica key , cd key windows storage server 2008 , microsoft dynamics crm 4.0 activation keygen , windows 10 activation help line , windows 10 serial keys fb , whi5dR

      office 2013 product key

      windows 10 enterprise key

      vmware workstation 11 to buy

      Delete