Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying VMware vRealize Orchestrator Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
VMware vRealize Orchestrator Cookbook

VMware vRealize Orchestrator Cookbook

By : Langenhan
4.3 (10)
close
close
VMware vRealize Orchestrator Cookbook

VMware vRealize Orchestrator Cookbook

4.3 (10)
By: Langenhan

Overview of this book

If you are a VMware administrator who is interested in automating your infrastructure, this book is for you. An understanding of basic programming concepts is advised. No previous knowledge of Orchestrator is required, although some previous knowledge of it will allow you to get started more easily.
Table of Contents (9 chapters)
close
close
8
Index

Unmounting all the CD-ROMs of all VMs in a cluster


This is an easy recipe to start with, but one you can really make it work for your existing infrastructure. The workflow will unmount all CD-ROMs from a running VM. A mounted CD-ROM may block a VM from being vMotioned.

Getting ready

We need a VM that can mount a CD-ROM either as an ISO from a host or from the client.

Before you start the workflow, make sure that the VM is powered on and has an ISO connected to it.

How to do it...

  1. Create a new workflow with the following variables:

    Name

    Type

    Section

    Use

    cluster

    VC:ClusterComputerResource

    IN

    Used to input the cluster

    clusterVMs

    Array of VC:VirtualMachine

    Attribute

    Use to capture all VMs in a cluster

  2. Add the getAllVMsOfCluster action to the schema and assign the cluster in-parameter and the clusterVMs attribute to it as actionResult.

  3. Now, add a Foreach element to the schema and assign the workflow Disconnect all detachable devices from a running virtual machine.

  4. Assign the Foreach element...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY