$err = VMUnpause($vmHandle, $options, $propertyListHandle);
This function continues execution of a paused virtual machine.
use VMware::Vix::Simple; use VMware::Vix::API::Constants;since VMware Workstation 6.5
my $err; my $snapshotHandle; my $vmHandle; # find the appropriate snapshot handle to replay # start the replay with the UI open $err = VMBeginReplay($vmHandle, $snapshotHandle, VIX_VMPOWEROP_LAUNCH_GUI, VIX_INVALID_HANDLE); die "VMBeginReplay() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK; # pause the replay $err = VMPause($vmHandle, 0, VIX_INVALID_HANDLE); die "VMPause() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK; # do something # unpause the replay $err = VMUnpause($vmHandle, 0, VIX_INVALID_HANDLE); die "VMUnpause() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;