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

A scripted cell shutdown


We will now create a more controlled shutdown of vCloud.

Getting ready

This script that you create will be running on the vCloud Director VM itself, so we need to be able to log in to the VM and become a root user.

You also need a user account, that is SysAdmin in order to execute the script.

How to do it...

There are two ways to get the script into the vCloud VM:

  • Copy/paste via SSH:

    1. Log in to the vCloud Director VM via a SSH Client (for example, Putty).

    2. Gain root access, if you haven't already.

    3. Type the command vi /sbin/vCloud-Shutdown.

    4. The text editor vi opens. Press the i key.

    5. Copy and paste the code into vi.

    6. Press the keys w and q to save and quit vi.

    7. Run the command chmod 744 /sbin/vCloud-Shutdown.

  • Copy via SCP or SFTP:

    1. Open up a connection to the vCloud Director VM with an SCP (WinSCP).

    2. Copy the program to /sbin/.

    3. Close the connection.

    4. Log in to the vCloud Director VM via an SSH Client (for example, Putty).

    5. Gain root access, if you haven't already.

    6. Run the command chmod 744 /sbin...