Link to home
Start Free TrialLog in
Avatar of cerksees
cerkseesFlag for United States of America

asked on

How to suspend and resume a virtual machine from the command line in Vmware 7 Workstation on XP Pro?

I need to be able to suspend a VM, do a backup and restart the VM on an XP Pro box using Vmware Workstation 7 from the command line.

Anybody done this?
ASKER CERTIFIED SOLUTION
Avatar of KOTiS
KOTiS
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cerksees

ASKER

To be clear, here are the two commands that I used exactly as I used them.

To SUSPEND Vmware Workstation's running virtual machine on Windows XP Pro...
vmrun -T ws suspend "C:\Documents and Settings\User\My Documents\My Virtual Machines\Windows Server 2003 Enterprise Edition\Windows Server 2003 Enterprise Edition.vmx"

Open in new window


To RESTART the same vm after my backup ran on Windows XP Pro...
vmrun -T ws start "C:\Documents and Settings\User\My Documents\My Virtual Machines\Windows Server 2003 Enterprise Edition\Windows Server 2003 Enterprise Edition.vmx"

Open in new window


Enjoy.
I'm confused... The OP didn't mention doing the suggested snapshot in his post of the steps he took.

1. What is the purpose of the snapshot step https://www.experts-exchange.com/questions/27025853/How-to-suspend-and-resume-a-virtual-machine-from-the-command-line-in-Vmware-7-Workstation-on-XP-Pro.html?anchorAnswerId=35719102#a35719102 above?

2. Do you do both the SUSPEND command before that and then the SNAPSHOT command?