VM Workstation 12 – Change Autostart Order

NOTE: Don’t use an xml editor, use notepad as some of the tags do not follow proper xml format.

 

All these files are in C:\ProgramData\VMware\hostd

vmInventory.xlm – Identifies each shared virtual machine

<ConfigRoot>
<ConfigEntry id=”0003″>
<objID>4</objID>
<vmxCfgPath>C:\Users\Public\Documents\Shared Virtual Machines\XPPro\Machine1.vmx</vmxCfgPath>
</ConfigEntry>

<ConfigEntry id=”0005″>
<objID>6</objID>
<vmxCfgPath>C:\Users\Public\Documents\Shared Virtual Machines\Ubuntu\Machine2.vmx</vmxCfgPath>
</ConfigEntry>

<ConfigEntry id=”0006″>
<objID>8</objID>
<vmxCfgPath>C:\Users\Public\Documents\Shared Virtual Machines\Windows10\Machine3.vmx</vmxCfgPath>
</ConfigEntry>

<ConfigEntry id=”0007″>
<objID>9</objID>
<vmxCfgPath>C:\Users\Public\Documents\Shared Virtual Machines\Demo Server 14.04.2 Ubuntu 64-bit\Demo Server 14.04.2 Ubuntu 64-bit.vmx</vmxCfgPath>
</ConfigEntry>
</ConfigRoot>

vmAutoStart.xml – details timing between starts and order

<ConfigRoot>
<AutoStartOrder>
<_length>3<_length>
<_type>vim.host.AutoStartManager.AutoPowerInfo[]<_type>
<e id=”0″>
<_type>vim.host.AutoStartManager.AutoPowerInfo<_type>
<key>
<_type>vim.VirtualMachine<_type>
<moid>4</moid>
</key>
<startAction>PowerOn</startAction>
<startDelay>-1</startDelay>
<startOrder>-1</startOrder>
<stopAction>GuestShutdown</stopAction>
<stopDelay>120</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
<e id=”1″>
<_type>vim.host.AutoStartManager.AutoPowerInfo<_type>
<key>
<_type>vim.VirtualMachine<_type>
<moid>6</moid>
</key>
<startAction>PowerOn</startAction>
<startDelay>-1</startDelay>
<startOrder>-1</startOrder>
<stopAction>GuestShutdown</stopAction>
<stopDelay>120</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
<e id=”2″>
<_type>vim.host.AutoStartManager.AutoPowerInfo<_type>
<key>
<_type>vim.VirtualMachine<_type>
<moid>9</moid>
</key>
<startAction>PowerOn</startAction>
<startDelay>-1</startDelay>
<startOrder>-1</startOrder>
<stopAction>GuestShutdown</stopAction>
<stopDelay>120</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
</AutoStartOrder>
<SystemDefaults>
<_type>vim.host.AutoStartManager.SystemDefaults<_type>
<enabled>true</enabled>
<startDelay>120</startDelay>
<stopAction>PowerOff</stopAction>
<stopDelay>120</stopDelay>
<waitForHeartbeat>false</waitForHeartbeat>
</SystemDefaults>
</ConfigRoot>

Change the moid in the order sequence you want machines to start.  Don’t use an xml editor, use notepad as some of the tags do not follow proper xml format.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s