Startup/Shutdown Script for vmWare

From KlavoWiki
Revision as of 11:26, 16 November 2008 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To stop all virtual machines hosted on a Linux Operating System run the following command:

VMware Server 1.0.x

find /var/lib/vmware/ -iname "*.vmx" -exec vmware-cmd {} stop \;

To start all virtual machines run the following command:

find /var/lib/vmware/ -iname "*.vmx" -exec vmware-cmd {} start \;

To suspend all virtual machines

find /var/lib/vmware/ -iname "*.vmx" -exec vmware-cmd {} suspend \;

To backup all virtual machines see the page Backup Script for VMware