Quantcast
Channel: VMware Communities : Popular Discussions - VMware Server 1
Viewing all articles
Browse latest Browse all 74849

Running soft stop with new vmrun doesn't pause

$
0
0

Hello.

I have a backup script which uses vmrun to do a soft stop on the VM, then copy the disk files, and restart the VM. It works fine on all my Vmware Server 2 boxes and most of my Vmware server 1 boxes.

 

Some of the boxes have old versions of VIX which doesn't support all of my commands. I want to keep the script universal so I updated VIX on one Server 1 box to the newest available online. It's running vmrun version 7.0.0 build-207905. It now supports all the parameters I'm using. The thing is though before after running this command it would pause until the server is totally powered off, about 15 seconds. This new one completes instantly but the server is still mid-shutdown.

 

The problem arises in my xcopy goes right after the script gets a complete code from the vmrun. Since the files are locked it kills the script.

 

Is there anyway to make the vmrun not give a complete code until it's actually complete? When I use vmrun to do a start it does properly wait until the vmtools service is running to do a successful exit code.

 

I could do a sleep of 30 seconds but being I want this to be universal it varies (Exchange and some DB servers takes a while to shutdown).

 

Previously with Server1 I would use "vmware-cmd.bat soft stop" but Server2 does not support this.

 

Thanks!


Viewing all articles
Browse latest Browse all 74849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>