Is it possible to take a snapshot while the machine is not turned off (still running)

Mar 28, 2013 at 2:43 PM
I've read this thread, and I still can't seem to make RI take the snapshot before it turns off the machine - it takes the snapshot when the machine is powered off and that's not good for me.

Here's my config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section
          name="RemoteInstallConfig"
          type="RemoteInstall.RemoteInstallConfig, RemoteInstall"
      />
  </configSections>
  <RemoteInstallConfig>

    <timeouts logout="60" />

    <installers destpath="C:\">
      <installer file="\\share\Installations\programs\G2M_CPS_Helper_Build_320.msi" name="G2M" copymethod="vmware" type="msi" uninstall="false" />
    </installers>

    <virtualmachines>
      <!-- Win XP SP3 -->
      <virtualmachine type="ESX" name="WinXP_SP3 base NO UPDATES" file="[standard] WinXP_SP3 base NO UPDATES/WinXP_SP3 base NO UPDATES.vmx" host="1.1.1.1" username="user" password="pass">
        <snapshots powerOff="false">
          <!-- the current snapshot -->
          <snapshot name="clean" username="user" password="pass" powerOff="false"/>
          <tasks>
            <task name="latest installed build" type="snapshot" command="removeifexists" when="beforeall" />
            <task name="latest installed build" type="snapshot" command="create" when="aftersuccessfulinstall" />
            
            <task name="latest failure" type="snapshot" command="removeifexists" when="beforeall" />
            <task name="latest failure" type="snapshot" command="create" when="afterfailedinstalluninstall" />
        </tasks>
        </snapshots>
      </virtualmachine>

      <!-- Windows 7 SP1 Ultimate -->
      <virtualmachine type="ESX" name="Windows 7 SP1 Ultimate" file="[standard] Windows 7 SP1 Ultimate/Windows 7 SP1 Ultimate.vmx" host="192.168.30.119" username="user" password="pass">
        <snapshots powerOff="false">
          <!-- the current snapshot -->
          <snapshot name="clean" username="user" password="pass" powerOff="false"/>
          <tasks>
            <task name="latest installed build" type="snapshot" command="removeifexists" when="beforeall" />
            <task name="latest installed build" type="snapshot" command="create" when="aftersuccessfulinstall" />
            
            <task name="latest failure" type="snapshot" command="removeifexists" when="beforeall" />
            <task name="latest failure" type="snapshot" command="create" when="afterfailedinstalluninstall" />
        </tasks>
        </snapshots>
      </virtualmachine>
    </virtualmachines>
  </RemoteInstallConfig>
</configuration>
Mar 29, 2013 at 10:23 AM
Hi, shluvme

it is a feature that you can get only if you build remoteinstall from the sources, it is not included in the build 1.2 or 1.3 beta.

Please see Feature ID 13185

Steps I did to make it work :
  1. Download the latest sources
  2. Build the solution from it ( I got many errors in VS 2012 but somehow I have managed to do it ...)
  3. Replace the RemoteInstaller.exe
  4. Add in the config file option : includeMemory="true "
e.g :
    <tasks when="beforeall">
      <task name="Latest Build" type="snapshot" command="removeifexists" when="beforeall" />
      <task name="Latest Build" type="snapshot" command="create" includeMemory="true " when="aftersuccessfulinstall" />
    </tasks>
Coordinator
Mar 29, 2013 at 4:37 PM
We haven't had a release of this tool for a while. I'll cut a release from the HEAD soon.
Coordinator
Mar 30, 2013 at 7:24 PM
I have moved everything to Github (been moving my projects for a while now off CodePlex, this was one of the last ones) and made a 1.3 release. Please see https://github.com/dblock/remoteinstall.
Mar 31, 2013 at 10:34 AM
thanks ! works like a charm.