Holo Toolkit 2.0 Generate Support VMs

Preparing to build Holodeck Toolkit support VMs

Overview

This section uses PowerShell automation to configure several VM’s used in the Holodeck Toolkit lab exercises.  VM’s are built using Cloud Init from a Ubuntu 18.04 OVA downloaded by the local Holodeck admin.  NOTE: There are four different sets of virtual machines built supporting NSX, HCX, vRealize Automation and Tanzu labs. There is no dependency between the different sets.

Prerequisites

  1. VLC-Holo-Site-1 configuration deployed from the Holodeck Standard Main 2.0 package
  2. External network access from the Holodeck environment
  3. The VLC Holo Build directory is available at C:\VLC\VLC-Holo-Site-1\Holo-Build on Holo-Console

Stage Ubuntu OVA

  1. Within Holo-Console, open Chrome and download the Ubuntu 18.04 LTS Daily Build
  2. Copy this file to C:\VLC\VLC-Holo-Site-1\Holo-Build\
  3. Rename the file to bionic.ova

Review Automation

  1. Open windows explorer and navigate to C:\VLC\VLC-Holo-Site-1\Holo-Build
  2. Note there is a directory for each set of configuration scripts. 
  3. The bionic.ova should be available in this directory

Create Ubuntu Holo-Template

Overview

The vRealize Automation (VRA) labs in the Holodeck series make use of a standardized Ubuntu 18.04 based template.  This section covers the creation of this template prior to deploying VRA so the template can be included in the VRA setup.

Build Template

In this task the automated build scripts are executed, and the output is verified.

  1. Using the Windows Explorer, navigate to C:\VLC\VLC-Holo-Site-1\Holo-Build\VRA-Lab-Config
  2. Right click on vraLab.ps1 and select “Run with Powershell”

A screenshot of a computer

Description automatically generated

  1. Notice the three available options
  2. Enter 1 to run the 01-VRA-Template-prep.ps1 script

A screenshot of a computer program

Description automatically generated with medium confidence

 

  1. Expected output

 

A screenshot of a computer

Description automatically generated

  1. Hit enter, then select option 2.  This will begin creating the template using cloud-init. This process usually takes around five minutes.

  1. Hit enter when the script completes.
  2. The last step performs an update on the template VM for latest Ubuntu changes and shuts it down. It is broken out as a separate step in case the user wishes to make any additional changes to the VM before conversion to template.
  3. Select option 3
  4. The error shown is expected, and is normal behavior when the VM gets shutdown during the Invoke-VMScript PowerCLI function.

A screenshot of a computer program

Description automatically generated with low confidence

 

Prepare Holo-Template for lab use

This task prepares the Holo-Template for use in VRA.

Convert and shutdown Holo-Template

  1. Connect to the nested vCenter Server instance for the VCF Management Domain.
  2. From the VM and Template view within the vSphere Client
  3. Right click on Holo-Template->Edit Settings

A screenshot of a computer

Description automatically generated

  1. Click the dropdown box for CD/DVD drive 1
  2. Select the Client Device option

  1. Click OK
  2. On the vSphere client, right click on Holo-Template->Template->Convert to Template

Graphical user interface, text, application

Description automatically generated

  1. Click Yes

Create OpenCart SDN VMs 

Overview

The Software Defined Networking and Security labs in the Holodeck series make use of three specifically configured Ubuntu 18.04 based VMs that implement a predefined OpenCart e-commerce deployment.  This section covers the creation of these VM’s prior to starting the SDN lab series.

Build OpenCart VM’s

  1. Using the Windows Explorer, navigate to C:\VLC\VLC-Holo-Site-1\Holo-Build\SDN-Lab-Config
  2. Right click on sdnLab.ps1 and select “Run with Powershell”

A screenshot of a computer

Description automatically generated

  1. Enter 1
  2. The output resembles the following

A screenshot of a computer

Description automatically generated

  1. Press enter, then select option 2
  2. This kicks off deploying one instance of OC-MySQL and two instances of OC-Apache.  The full process takes approximately 15 minutes

Test OpenCart VM’s

  1. Connect to the nested vCenter server instance for the VCF Management Domain.
  2. From the VM and Template view within the vSphere Client, click on OC-Apache-A
  3. Notice the IP address 10.0.0.71
  4. Double click on the IP address, right click and select Go to 10.0.0.71

  1. A Chrome window will open and display the following page

Prep OpenCart VM’s for lab use

This task reconfigures the OpenCart VMs as needed for the SDN lab and powers each VM off.

  1. Return to the sdnLab.ps1 screen
  2. Select option 3

A screenshot of a computer screen

Description automatically generated with medium confidence

  1. Expected output

A screenshot of a computer

Description automatically generated

  1. The VM’s will be powered off in vCenter Server

A screenshot of a computer

Description automatically generated

Create Ubuntu Tanzu Workstation 

Overview

The VMware Tanzu labs in the Holodeck series make use of a standardized Ubuntu 18.04 based workstation VM.  This section covers the creation of this VM.

Build Tanzu VM

  1. Using the Windows Explorer, navigate to C:\VLC\VLC-Holo-Site-1\Holo-Build\tanzu-Lab-Config
  2. Right click on tanzuLab.ps1 and select “Run with Powershell”

  1. Enter 1
  2. The output resembles the following

  1. Press enter, then select option 2
  2. This kicks off deploying the Tanzu Workstation. The process takes approximately 5 minutes

 

 

 

 


 

Filter Tags

Document