Power on a virtual machine from ESXi cli: Difference between revisions

From LinuxizeNet
(Created page with "To power on, shutdown or reboot a virtual machine from the command line: List the inventory ID of the virtual machine with the command vim-cmd vmsvc/getallvms |grep <vm name> Note: The first column of the output shows the vmid. Check the power state of the virtual machine with the command vim-cmd vmsvc/power.getstate <vmid> Power-on the virtual machine with the command vim-cmd vmsvc/power.on <vmid> Related Commands: Power-off the virtual machine with...")
 
(Remove inert legacy #ae8c55 wrapper (superseded by site CSS))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{clear}}
To power on, shutdown or reboot a virtual machine from the command line:
To power on, shutdown or reboot a virtual machine from the command line:


Line 26: Line 27:


See also [[Manage ESXi VM Processes with CLI ]]
See also [[Manage ESXi VM Processes with CLI ]]
[[Category:ESXi]]

Latest revision as of 21:02, 9 August 2026

To power on, shutdown or reboot a virtual machine from the command line:

List the inventory ID of the virtual machine with the command

   vim-cmd vmsvc/getallvms |grep <vm name>

Note: The first column of the output shows the vmid.

Check the power state of the virtual machine with the command

   vim-cmd vmsvc/power.getstate <vmid>

Power-on the virtual machine with the command

   vim-cmd vmsvc/power.on <vmid>

Related Commands:

Power-off the virtual machine with the command

   vim-cmd vmsvc/power.off <vmid>

Reboot the virtual machine with the command

   vim-cmd vmsvc/power.reboot <vmid>

See also Manage ESXi VM Processes with CLI