VMWare Remote Commands

Written by James McDonald

December 14, 2009

When you want to run a VMWare Server 2.0 Virtual Machine hosted on a remote Linux box these commands might come in handy.

# list your currently running VM's
vmrun  -h http://localhost:8222/sdk -P 902 -T server -u yourvmadminuser -p 'yourvmadminpassword' list
Total running VMs: 0

# list the VM's you have registered with VMWare Server 2.0
vmrun -h https://localhost:8333/sdk -T server -u yourvmadminuser -p 'yourvmadminpassword' listRegisteredVM
Total registered VMs: 4
[standard] Windows XP Professional 2/Windows XP Professional 2.vmx
[standard] Ubuntu 8.10 Server/Ubuntu 8.10 Server.vmx
# Identify the one you want to start
[standard] Ubuntu 9.04 JeOS/Ubuntu 9.04 JeOS.vmx
[standard] smallLinux/smallLinux.vmx

# Issue the start command
 sudo vmrun -h https://localhost:8333/sdk -T server -u yourvmadminuser -p 'yourvmadminpassword' start '[standard] Ubuntu 9.04 JeOS/Ubuntu 9.04 JeOS.vmx'

# Check it's running
vmrun -h https://localhost:8333/sdk -T server -u yourvmadminuser -p 'yourvmadminpassword' list
Total running VMs: 1
[standard] Ubuntu 9.04 JeOS/Ubuntu 9.04 JeOS.vmx

0 Comments

Submit a Comment

Your email address will not be published.

You May Also Like…

ZPL SBPL

Zebra Printer Language http://labelary.com/viewer.html The above website has a page where you can enter ZPL and it...

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...