View unanswered posts | View active topics It is currently Thu May 23, 2013 12:50 am



Reply to topic  [ 2 posts ] 
 start vm from CLI 
Author Message

Joined: Tue Dec 28, 2010 1:21 pm
Posts: 43
Post start vm from CLI
Is it possible to start vm (or manage) from CLI interface? If so what is the command instead of performing those tasks from vsphere client.

_________________

Manny

AMD Athlon II X4 620 Processor / M4A78T-E Motherboard, AM3 processor.
- 8 GB RAM
- WD Caviar Green WD10EARS 1TB 5400 RPM 64MB Cache SATA 3.0Gb/s
- Intel PWLA8391GT 10/ 100/ 1000Mbps PCI PRO/1000 GT


Thu Jan 13, 2011 6:22 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: start vm from CLI
In Tech Support Mode you can use vim-cmd vmsvc. It will list a bunch of VM related cmds to use. You can also run vim-cmd to see other host options.

Most of the cmds use the ID for the VM instead of the VM name so you start with vim-cmd vmsvc/getallvms.

Then to start a VM use vim-cmd vmsvc/power.on <VMid>.

I'd also suggest looking at PowerCLI and the vCLI. With the vCLI you can use vmware-cmd.pl and with PowerCLI you can use Get-VM "Linux01" | Start-VM

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Jan 13, 2011 8:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.