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

Using PowerShell or Perl to perform Guest Customization tasks


Guest Customization can use only DOS commands (Windows) or Bash commands (Linux) natively. The following section describes how to get higher language scripts going.

Getting ready

We need a vApp with at least one VM in it.

How to do it...

There are two ways of using PowerShell or Perl to perform Guest Customization tasks. They are described in the following section.

Using PowerShell or Perl to perform Guest Customization tasks via the VM Properties

Perform the following for using PowerShell or Perl to perform Guest Customization tasks via the VM Properties:

  1. Write wrapper around the program (see the How it works... section).

Using PowerShell or Perl to perform Guest Customization tasks via an OS script

  1. Create a script on the local VM.

  2. Start the local script via Guest Customization in the VM properties.

  3. Wait until the script finishes running.

  4. Delete the local script on the VM via a command line in Guest Customization.

How it works...

The Guest...