{"id":3528,"date":"2017-09-12T17:22:41","date_gmt":"2017-09-12T17:22:41","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3528"},"modified":"2017-09-12T17:22:41","modified_gmt":"2017-09-12T17:22:41","slug":"find-startstop-vm-esxi","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2017\/09\/12\/find-startstop-vm-esxi\/","title":{"rendered":"Find and Start\/Stop VM on ESXI"},"content":{"rendered":"<p>How to find and Start\/Stop VM on ESXI.<br \/>\nSSH to the ESXI server.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# esxcli vm process list\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# esxcli vm process list\nWebHost\n   World ID: 35689\n   Process ID: 0\n   VMX Cartel ID: 35686\n   UUID: 56 4d 72 7c da 4c 82 f1-9f 10 9c e3 d6 7d a4 9d\n   Display Name: WebHost\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/WebHost\/WebHost.vmx\n\nWindows\n   World ID: 4150543\n   Process ID: 0\n   VMX Cartel ID: 4150542\n   UUID: 56 4d 49 5f 12 7e 26 96-d8 31 37 05 21 64 5d 46\n   Display Name: Windows\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/Windows\/Windows.vmx\n\nMonitor\n   World ID: 2487010\n   Process ID: 0\n   VMX Cartel ID: 2487009\n   UUID: 56 4d 99 de b0 13 a1 76-bd 2d 95 8a be 25 35 39\n   Display Name: Monitor\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/Monitor\/Monitor.vmx\n\nMail\n   World ID: 2487029\n   Process ID: 0\n   VMX Cartel ID: 2487028\n   UUID: 56 4d 4f 88 c8 bf a6 37-b5 5b 96 6f b4 23 c5 fb\n   Display Name: Mail\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/Mail\/Mail.vmx\n\n<\/pre>\n<p>Stop a VM:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# esxcli vm process kill -t soft --world-id 4150543\n<\/pre>\n<p>Review to verify the VM is off:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n # esxcli vm process list\nWebHost\n   World ID: 35689\n   Process ID: 0\n   VMX Cartel ID: 35686\n   UUID: 56 4d 72 7c da 4c 82 f1-9f 10 9c e3 d6 7d a4 9d\n   Display Name: WebHost\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/WebHost\/WebHost.vmx\n\nMonitor\n   World ID: 2487010\n   Process ID: 0\n   VMX Cartel ID: 2487009\n   UUID: 56 4d 99 de b0 13 a1 76-bd 2d 95 8a be 25 35 39\n   Display Name: Monitor\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/Monitor\/Monitor.vmx\n\nMail\n   World ID: 2487029\n   Process ID: 0\n   VMX Cartel ID: 2487028\n   UUID: 56 4d 4f 88 c8 bf a6 37-b5 5b 96 6f b4 23 c5 fb\n   Display Name: Mail\n   Config File: \/vmfs\/volumes\/54c1dfef-00e03f4b-784e-6805ca0a3085\/Mail\/Mail.vmx\n\n<\/pre>\n<p>How to start a Guest VM from Command line: <SSH or ESXi Shell><\/p>\n<p>Get a list of VMs on a host using the command:   <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# vim-cmd vmsvc\/getallvms \nVmid    Name                   File                       Guest OS          Version   Annotation\n32     Monitor   &#x5B;datastore1] Monitor\/Monitor.vmx   centos64Guest           vmx-08\n44     Mail      &#x5B;datastore1] Mail\/Mail.vmx         ubuntu64Guest           vmx-08\n58     WebHost   &#x5B;datastore1] WebHost\/WebHost.vmx   centos64Guest           vmx-08\n61     Plesk     &#x5B;datastore1] Plesk\/Plesk.vmx       centos64Guest           vmx-08\n62     Windows   &#x5B;datastore1] Windows\/Windows.vmx   windows8Server64Guest   vmx-08\n\n<\/pre>\n<p>NOTE: The important fields will be the the VMID of your desired VM<\/p>\n<p>Double check the power state of the VM:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nvim-cmd vmsvc\/power.getstate &lt;vmid&gt;\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# vim-cmd vmsvc\/power.getstate 62\nRetrieved runtime info\nPowered off\n\n<\/pre>\n<p>Start<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nvim-cmd vmsvc\/power.on &lt;vmid&gt;\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# vim-cmd vmsvc\/power.on 62\nPowering on VM:\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to find and Start\/Stop VM on ESXI. SSH to the ESXI server. # esxcli vm process list # esxcli vm process list WebHost World ID: 35689 Process ID: 0 VMX Cartel ID: 35686 UUID: 56 4d 72 7c da 4c 82 f1-9f 10 9c e3 d6 7d a4 9d Display Name: WebHost Config File: &#8230; <a title=\"Find and Start\/Stop VM on ESXI\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2017\/09\/12\/find-startstop-vm-esxi\/\" aria-label=\"Read more about Find and Start\/Stop VM on ESXI\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-3528","post","type-post","status-publish","format-standard","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3528"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3528\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}