Managing VMware from command line

Here are some commands that you can use to manage virtual guests from command line.

To check currently running virtual guests:

$ cd "/Applications/VMware Fusion.app/Contents/Library"
$ ./vmrun -T fusion list
Total running VMs: 1
…..

To start a virtual machine, you can use below.

$ ./vmrun -T fusion start "/Users/sungju/Documents/Virtual Machines.localized/mymachine.vmwarevm/mymachine.vmx"

http://pagead2.googlesyndication.com/pagead/show_ads.js

To stop a virtual machine, you have several choices:
Suspend it

$ ./vmrun -T fusion suspend "/Users/sungju/Documents/Virtual Machines.localized/mymachine.vmwarevm/mymachine.vmx"

Shutdown it (soft, hard):

$ ./vmrun -T fusion stop "/Users/sungju/Documents/Virtual Machines.localized/mymachine.vmwarevm/mymachine.vmx" soft

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.