How to disconnect mounted ISO from VM with vRO

Learn how to disconnect ISO from VM using vRO

How to disconnect mounted ISO from VM with vRO
Photo by Chris Yates / Unsplash

This is going to be a first article in the Event-Driven Datacenter topic.

Please feel free to sign up or subscribe to follow up.

Introduction

If some of you're getting a list of VMs with forgotten attached ISO every morning in your mailbox, welcome aboard! There are several ways to tackle this issue, but since we're all about automation, let’s explore how we can achieve this goal.


Before I begin, I highly recommend this article by Gavin Stephens—it closely aligns with my strategy.

Using a Service-Oriented Architecture Approach to VCF Automation Orchestrator Development

For example, one key best practice it emphasizes is exiting early when something goes wrong. That’s why I aim to include if()... throw() statements at the very beginning of my functions.


Here, I've already started creating general classes and functions that can be reused in various scenarios. So, let's continue.

To remove attached ISO files, the following steps should be done:

  1. Get CD-ROM device specs
  2. Create new CD-ROM device spec based on the step 1
  3. Reconfigure VM
  4. Answer VM question to confirm removal if required
Diagram

Read the full story

Sign up now to read the full story and get access to all members-only posts.

Subscribe
Already have an account? Sign in
Great! Next, complete checkout for full access to CloudDepth.
Welcome back! You've successfully signed in.
You've successfully subscribed to CloudDepth.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info has been updated.
Your billing was not updated.

This work by Leonid Belenkiy is licensed under Creative Commons Attribution 4.0 International