vCloud Director VS Recipes

The recipe is the plugin mechanism used for adding new functionalities to the cloud. Each recipe is a set of instructions that triggers events at certain stages during the execution of certain services/event in the cloud. Essentially, recipes allow inputting code into virtual servers. This enables administrators to use recipes for configuring the server or report on it, thus providing advanced customization options in a standard environment.

Recipes allow admins to perform the following operations:

  • Perform post script installation
  • Use post provision installation scripts for third party applications, agents, etc.
  • Disk reclaiming
  • Update/modify virtual servers and —Āompute zones with script injection
  • Allow host to spin up custom virtual servers without requiring custom templates
  • Download, run and report audit tools

The following requirements should be implemented before running recipes on vCloud virtual servers:

  • VMware Tools must be installed. Also VMware compute resources, used by vCloud installation, need to be accessible over HTTPS from OnApp CP's network.
  • Guest customization must be enabled. Admin password must be set in the guest customization.



View Virtual Server Recipes



To view virtual server recipes:

  1. Go to your Control Panel's Virtual Servers menu.
  2. Click the label of the server you're interested in.
  3. Click the Overview tab, then choose Recipes.
  4. The screen that follows shows details of all the recipes in the cloud:
  • The left pane shows the list of available recipes organized into recipe groups.
  • The right pane displays the list of events to which the recipes can be assigned to.Click the arrow button next to event to expand the list of recipes assigned to it.

Assign Recipe



To assign a recipe:
  1. Go to your Control Panel's Virtual Servers menu.
  2. Click the label of the server you're interested in.
  3. Click the Overview tab, then choose Recipes.
  4. The screen that follows shows details of all the recipes in the cloud.
  5. Click the arrow button in front of the required event to unfold it.
  6. Select the required recipe in the left pane and hold it down with the left mouse button.
  7. Drag the recipe up to the right pane and release the mouse button to drop the recipe and add it to the required event.

You can assign virtual server recipes to the following events:

  • VS provisioning - run the recipe during VS provisioning
  • VS network rebuild - run the recipe when rebuilding a network
  • VS disk added - run the recipe when adding a disk
  • VS network interface added - run the recipe when adding a network interface
  • VS disk resized - run the recipe when resizing a VS disk
  • VS resize - run the recipe when resizing a VS

Remove Recipe



To remove recipe:

  1. Go to your Control Panel's Virtual Servers menu.
  2. Click the label of the server you're interested in.
  3. Click the Overview tab, then choose Recipes.
  4. The screen that follows shows details of all the recipes in the cloud.
  5. Click the arrow button in front of the required event to view the list of recipes assigned to it.
  6. Click the Delete button next to the recipe you want to remove.