You can specify certain options that affect what happens to the virtual machines when a vApp is started and stopped.

Prerequisites

You are at least a vApp user.

Procedure

  1. Click My Cloud.
  2. In the left pane, click vApps.
  3. Select a vApp, right-click, and select Properties.
  4. On the Starting and Stopping VMs tab, specify the options.

    Option

    Description

    Order

    For vApps with multiple virtual machines, you can specify the order in which the machines start and stop by typing numbers in the text box. Virtual machines with lower numbers start first and stop last. You cannot enter negative numbers. Virtual machines with the same order are started and stopped at the same time.

    Start Action

    Determines what happens to virtual machines when you start the vApp that contains them. By default, this option is set to Power On.

    Boot Delay

    How many seconds vCloud Director waits after starting the virtual machine before starting the next virtual machine.

    Stop Action

    Determines what happens to virtual machines when you stop the vApp that contains them. By default, this option is set to Power Off, but you can also set it to Shutdown.

    Stop Delay

    How many seconds vCloud Director waits after stopping the virtual machine before stopping the next virtual machine.

  5. Click OK.

Starting and Stopping Virtual Machines

This example shows a the order, boot delay, and stop delay options for the virtual machines in a vApp and how those options affect when each virtual machine starts and stops.

Table 1. Virtual Machine Start and Stop Options on vApp1

Virtual Machine

Order

Boot Delay

Stop Delay

VM1

1

0

10

VM2

1

10

10

VM3

1

20

30

VM4

2

0

20

VM5

2

30

60

VM6

3

40

10

When vApp1 is started, the virtual machines start as follows.

  1. VM1, VM2, and VM3 start at the same time.

  2. After 20 seconds (the longest boot delay from the order 1 virtual machines), VM4 and VM5 start.

  3. After 30 seconds (the longest boot delay from the order 2 virtual machines) VM6 starts.

When vApp1 is stopped, the virtual machines stop as follows.

  1. VM6 stops.

  2. After 10 seconds, VM5 and VM4 stop.

  3. After 60 seconds, VM3, VM2, and VM1 stop.