Book Image

VMware vCloud Director Cookbook

By : Daniel Langenhan
Book Image

VMware vCloud Director Cookbook

By: Daniel Langenhan

Overview of this book

VMware vCloud Director is an enterprise software solution that enables the building of secure, private clouds by pooling together infrastructure resources into virtual data centers. The tool enables self-service via a web interface to reduce the management overhead and offers amazing possibilities for production and development environments. Thus, the tool will ensure efficient management of resources with data center efficiency and business agility. "VMWare VCloud Director Cookbook" will cover a lot of ground, ranging from easy to complex recipes. It will not only dive into networks, data-stores, and vApps, but also cover vCloud design improvements, troubleshooting, and the vCloud API. "VMWare VCloud Director Cookbook" is split into different sections, each of which deals with a special topic in vCloud - from networks, to vApps, to storage and design. This book contains over 80 recipes with the difficulty levels ranging from simple to very advanced. You will learn how to automate vCloud easily and quickly with the API, and also learn how to isolate a vApp and still fully access it without risking the network. Design considerations that need to be addressed while deploying the vCloud and more will also be looked into. "VMWare VCloud Director Cookbook" will make your life as an admin a lot easier by providing you with some good recipes that have been proven to work in small to large enterprises.
Table of Contents (16 chapters)
VMware vCloud Director Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Appendix
Index

Proper vApp startup and shutdown


If you have a vApp with VMs that depend on each other, for example, an application and a database, we can now make sure they start and shut down in the proper sequence as we can make sure that they are shut down instead of being powered off.

Getting ready

You will need a vApp with VMs (of any flavor). At least one VM must have VMware tools installed.

You can do this as SysAdmin, OrgAdmin, vApp Author, or a vApp user.

How to do it...

  1. Right-click on the vApp and select Properties.

  2. Click on Starting and Stopping VMs and perform the following steps:

    1. For the VMs that are configured with VMware tools, select Shutdown from the pullldown under the column Stop Action, and leave VMs without VMware tools on Power Off (default), as shown in the following screenshot:

    2. Adjust the startup order for the VMs depending on their dependencies.

    3. Add time delays to make sure that after the VM is booted, the system has enough time to start the services (for example, a database) before starting...