Create, Configure and Distribute VM Labs
  • 03 Jun 2024
  • 2 Minutes to read
  • Contributors
  • Dark
    Light

Create, Configure and Distribute VM Labs

  • Dark
    Light

Article summary

Overview

This guide walks through the steps required to create, configure, and distribute VM labs using CloudLabs VM Labs service. It also includes customizing the base VM image for lab users.

Prerequisites

  • A CloudLabs portal account. If you do not have one, sign up at portal.cloudlabs.ai.

  • The administrator role is required to create labs. If you do not see the Manage VM Labs section in the CloudLabs portal, it likely means you do not have administrator privileges. Please contact CloudLabs support for assistance with this issue.

Steps

  1. Create a lab.

  2. Customize the base VM image (Optional).

  3. Invite Users.

  4. Organize the first Class/Session.

  5. Organize Subsequent Classes/Sessions.

Create a Lab

A lab in CloudLabs is a structured environment that distributes virtual machine labs to users, allowing them to access a configured and isolated computing environment for training purposes.

The lab creation process involves inputs spread across 3 sections. Following is a breakdown of the lab creation process.

  1. Navigate to the Manage VM section and click on Create.

  2. On the Basic tab, fill in the following details:

    Fields

    Value to Input

    Name (Title of the lab for your users)

    Programming-101

    Location (Region to deploy VM)

    us-east-1 or default

    VM Image (OS image for VM)

    Windows 11

    VM Size (Configuration of VM)

    Small

  3. Proceed to the "Credentials and Connection Type" page. Expect the following fields left as default.

    Fields

    Value to Input

    Username (username to access VM)

    labuser-01

    Enable CloudLabs Direct Web Connect

    Enable

  4. Click on Next and go to the Cost Optimization page.
    All the Cost Optimization settings can be updated later as well in the Manage VM Section.

    Fields

    Value to Input

    Restrict VM Uptime

    Enabled

    BM Uptime Quota

    10 hours

    Lab Expiration Date

    15 days from today

    Maximum Number of Users

    10

    Keep Idle Shutdown Settings to Default.

  5. Click on Create. A lab will be prepared within a minute, and you will be navigated back to the Manage VM Labs section to see the newly created lab.

Customize the Base VM Image (Optional Step)

The base VM image acts as the template for all lab VMs. Customizing this base image is optional and allows you to tailor the virtual environment to meet the specific requirements of your course or training.

Follow the following steps to customize the base VM image:

  1. Navigate to the Customize Base Image tab in your lab.

  2. Start the Base Image VM and connect using Direct Connect. You will be redirected to the Direct-Connect VM lab experience.

  3. Install necessary software for classroom training (e.g., Visual Studio Code).

  4. Close CVM Direct-Connect.

  5. Click on Publish. All lab instances will mirror the Base Image VM's configuration.

Inviting Users

CloudLabs supports 2 ways to invite users to the lab.

  1. Using an email address.

  2. Using an activation code.

For more information, read the article on Adding Users to the Lab

For this tutorial, we will go through the 1st option, i.e., email address. For detailed steps on the above options, read the article on Add via Activation Code.

  1. Go to the User tab.

  2. Click on Add Bulk Users.

  3. Input the list of users’ emails you want to invite to the lab.

  4. Click on Invite All to send an invitation email to all the added users.

Giving Access to Lab

By default, none of the users have access to their VM lab, even though they received the invitation email and signed up on the CloudLabs portal.

As a cost optimization measure, CloudLabs does not launch/create labs by default. Labs can be launched by invited users on demand, which can take around 5 minutes, or some instances can be pre-created using CloudLabs Hot Instances.

  1. Click on Provision Hot Instances and enter 5 to create 5 Hot Instances.

  2. Click on Enable Lab Access to let the user connect to their VM.

Now, the users will have access to start and connect with their VM Labs until they exhaust their VM Uptime Quota or until the lab expiration date.