Solved

VMWARE CLI question how can I start a vm from a command line with putty

Posted on 2014-11-14
2
406 Views
Last Modified: 2014-11-14
If I just have putty to connect to the ESXI server ,  how can I start a VM within the command line ?

what is the exact syntax?

i have slow internet here and cant google stuff fast , and could use the help


THANKS!!
0
Comment
Question by:NAMEWITHELD12
2 Comments
 
LVL 13

Accepted Solution

by:
Abhilash earned 500 total points
Comment Utility
You can run this using SSH

To power on 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>
0
 
LVL 1

Author Closing Comment

by:NAMEWITHELD12
Comment Utility
wow , thanks that completely solved the issue , you really saved me alot of time thanks!!!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now