VIX API

 View Only
  • 1.  Defining startup rules for VMs in VI Client

    Posted Aug 27, 2007 12:10 PM

    Hi,

    is it possible to define a policy or rule that will not allow powering on a virtual machine "A" in the VI Client, if virtual machine "B" is already running?

    For example in such a way that the rule is triggered by pressing the power-on button for virtual machine "A", checks if "B" is already running, and if so, displays a message box to the user "A cannot be powered on".

    My intention of having such a policy or rule is to be able to make VMs mutually exclusive.

    I am using VMware ESX 3.0.1. on a single host with VI Client (no VirtualCenter).

    Thanks

    Marcel



  • 2.  RE: Defining startup rules for VMs in VI Client

    Posted Aug 27, 2007 01:39 PM

    Unfortunately, this functionality is not available in ESX. The AutoStart feature (http://pubs.vmware.com/vi301/sdk/ReferenceGuide/vim.host.AutoStartManager.AutoPowerInfo.html) simply selects start and stop order but doesn't have thos rules built in. You could, of course, script something like this.

    H



  • 3.  RE: Defining startup rules for VMs in VI Client

    Posted Aug 28, 2007 08:52 AM

    When writing an own script for this, would it be possible to incorporate it into the VI Client somehow as a plug-in, e.g. as an additional button on the power-toolbar?

    Thanks

    Marcel



  • 4.  RE: Defining startup rules for VMs in VI Client

    Posted Aug 28, 2007 12:24 PM

    see question above



  • 5.  RE: Defining startup rules for VMs in VI Client

    Posted Aug 29, 2007 10:26 PM

    Planned for a future release.