Sungju's Slow Life

Personal journal

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"
$ ./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"

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: Logo

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

%d bloggers like this: