• Home
  • VMware
  • Power off / Restart a VM – Command line

Power off / Restart a VM – Command line

Problem

You need to restart or power off a vm from command line.

 

Resolution

For ESXi 4.0 run the following commands

To list all VM`s currently up run….

vim-cmd vmsvc/getallvms

To power off a specific VM run…

vim-cmd vmsvc/power.off <vm id>

To restart a VM then run..

vim-cmd vmsvc/power.restart <vm-id>

Tags: command line, VM

Allen White

Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...