How to use command line to automate the free version of ESXi

There are some limitation for the free version of ESXi http://blogs.vmware.com/esxi/2009/06/esxi-vs-esx-a-comparison-of-features.html

But we can use the vmrun command line tool to automate common operations such as stop, start, runProgramInGuest.

examples:

vmrun -t esx -h https://0.0.0.0/sdk -u root -p password list

vmrun -t esx -h http:/0.0.0.0/sdk -u root -p password -gu domenuser -gp userpassword runProgramInGuest "[C_Drive] MyLab/MyLab.vmx" notepad

vmrun -t esx -h https://0.0.0.0/sdk -u root -p password stop "[C_Drive] MyLab/MyLab.vmx " hard’

vmrun -t esx -h https://0.0.0.0/sdk -u root -p password "[C_Drive] MyLab/MyLab.vmx " start’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s