{"id":222,"date":"2017-05-02T14:04:57","date_gmt":"2017-05-02T14:04:57","guid":{"rendered":"https:\/\/www.indycloudcover.com\/?p=222"},"modified":"2018-04-26T09:39:26","modified_gmt":"2018-04-26T14:39:26","slug":"fixing-greyed-out-virtual-machines","status":"publish","type":"post","link":"https:\/\/www.indycloudcover.com\/?p=222","title":{"rendered":"Fixing Greyed out Virtual Machines"},"content":{"rendered":"<p>As I am sure many of you have, I had an outage recently that caused my hosts to come up before my storage. This resulted in the dreaded invalid or &#8220;greyed out&#8221; VM.<\/p>\n<p>There are, of course, other ways to recover from this, but I have found this to be the easiest!<\/p>\n<p>Here are the steps to recover from this issue.<\/p>\n<p>1. Determine which host the affected VM(s) are on.<\/p>\n<p>2. SSH to the appropriate host (you will most likely have to enable SSH)<\/p>\n<p>3. Type the following command:<\/p>\n<pre title=\"get list of vms that are invalid\" class=\"toolbar:1 lang:vim decode:true \">vim-cmd vmsvc\/getallvms | grep invalid<\/pre>\n<p>This will list all the greyed out VMs (note it will present you with a numerical vm identifier)<\/p>\n<p>4. Note the four digit ID and add it in place of <strong><em><span style=\"color: #ff0000;\">0000<\/span><\/em><\/strong> in the following command:<\/p>\n<pre title=\"reregister an invalid vm\" class=\"toolbar:1 lang:vim decode:true \">vim-cmd vmsvc\/reload 0000<\/pre>\n<p>If all goes well, in 30-60 seconds the VM will re-register and no longer show as invalid.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I am sure many of you have, I had an outage recently that caused my hosts to come up before my storage. This resulted in the dreaded invalid or &#8220;greyed out&#8221; VM. There are, of course, other ways to recover from this, but I have found this to be the easiest! Here are the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=\/wp\/v2\/posts\/222"}],"collection":[{"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":5,"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.indycloudcover.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}