Hyper-V: determine the guest's name given the GUID

Posted by syneticon-dj on Server Fault See other posts from Server Fault or by syneticon-dj
Published on 2012-11-15T09:35:12Z Indexed on 2012/11/15 11:07 UTC
Read the original article Hit count: 157

Filed under:
|

How would I go about determining the guest's name given its GUID or vice-versa, preferably with only the Hyper-V/Server Core stock install at hands?

Rationale:

I am in favor of having a repository of dirty tricks to revert to when in great need. To immediately quiesce all (storage) operations of a VM guest without losing the state, I used to run kill 17 <all VM's virtual processes> (signaling SIGSTOP) and resumed afterwards using kill 19 <all VM's virtual processes> (signaling SIGCONT) in ESXi/vSphere shell.

I tried the same technique with Hyper-V using Process Explorer's "Suspend" functionality on the vmwp.exe processes and it seemed to work. I have yet to find a way for easily identifying the processes to suspend, though - the vmwp command line is only listing a GUID.

© Server Fault or respective owner

Related posts about scripting

Related posts about hyper-v