Solved

Determine if a Windows Virtual Machine is actually up and running?

Posted on 2016-07-14
4
68 Views
Last Modified: 2016-07-14
What kind of remote test can I do to see if a Windows VM (Windows 8, Windows 10, Server 2012 r2, etc) is actually running Windows as opposed to be "running" but in some kind of failed mode with windows non-operational?

I know I can always ping the machine, but I wonder if that's good enough.  I wonder if there is some kind of failed or paused state that will still return pings but the VM not actually be operational.

I have an automatic routine (in powershell) that periodically checks replication pairs on various hyper-v servers and periodically "resumes replication", one VM at a time, and then pauses the replication before moving on to the next VM on the list.  I want to prevent a failed VM (a corrupt VM, for example) from resuming replication and ruining the previous replica.

Any ideas would be appreciated.

Thanks.
0
Comment
Question by:gateguard
  • 2
4 Comments
 
LVL 93

Assisted Solution

by:John Hurst
John Hurst earned 250 total points
ID: 41710924
A virtual machine is just a machine (little more or less) so you do not really know except by pinging it and attempt to log in.

Unless a server sends you an email, you have to attempt to log in to a server to know if it is running.
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 41710937
Interesting...

You might try to configure the guest machine to save a file / update a file periodically - then have the script check for that update and if not recent enough, cease replicating and notify you...
0
 

Author Closing Comment

by:gateguard
ID: 41710942
Thanks!
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 41710953
You are welcome and I was happy to help.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

From Coral's  "So You Want To Play With Computers" Series A bit of background first, so this story will make a little sense. One day, probably because he needed a good laugh, Finagle hooked me up with a church to upgrade/run their Media Booth.…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question