Template VM and Image Customization
  • 12 Sep 2024
  • 4 Minutes to read
  • Contributors
  • Dark
    Light

Template VM and Image Customization

  • Dark
    Light

Article summary

Overview

CloudLabs VM Labs enables you to tailor the lab environment to specific needs by customizing the VM image. This includes installing necessary software, configuring the OS settings, and pre-loading data for lab users. Customizations are made using a template VM, a special VM created for lab administrators to update and manage the image used across lab VMs.

By the end of this documentation, you should be able to:

  • Start and connect to the template VM.

  • Perform the required modifications.

  • Export the image to the image gallery.

Prerequisites

Template Customization

Here are the steps to perform the template customization:

  1. Select your lab from the Manage VM Labs menu and navigate to the Template tab.

  2. Review the VM image and SKU details, and click on Deploy Template VM. It will take 2–3 minutes to get started. This is actually creating a VM for the admin/instructor for customization.

    NOTE:

    When you click on "Deploy Template VM" and if a VM lab instance is available, it will be assigned for this deployment. Since a VM lab instance is already provisioned, this will reduce the usual 2–3 minute wait time to get started. Additionally, the VM lab instance will not appear in the VM lab instance section after deployment of Template VM.

  3. Once the template VM has started, click on Show RDP Information and use the details to connect to the VM.

    NOTE:

    If you have enabled the Enabled CloudLabs Direct Web Connect option, then you can directly connect to the Template VM by clicking Connect to Template VM.

  4. Log into the VM and update the template VM as per your requirements. Once completed, navigate back to the Template tab in the CloudLabs portal and select Export Image.

  5. In the Export Image pop-up window, provide a Name (1) for the image, select the Gallery (2) that you created/added, choose the desired State (3) for the image, and click on Export (4).

    Image State: You can publish your image either as a Generalized Image or a Specialized Image.

    Generalizing an image will give users out of box experience (OOBE), which means that a generalized image is a VM image that has been prepared and generalized using the Sysprep tool. Generalizing a VM image removes any specific configuration or identity information, making it suitable for deployment as a template for multiple VM instances. When you generalize a VM image, it removes unique system-specific information like computer names, security identifiers (SIDs), and network configuration. This allows the image to be used to create multiple VM instances with different configurations.

    A specialized image is a VM image that has been customized and configured for a specific purpose or use case. It typically contains specific software installations, configurations, and settings tailored for a specific application or workload. A specialized image is usually created from a generalized image by customizing it with additional software, configurations, or data specific to a particular requirement. Specialized images are often used when you want to create VM instances with specific pre-configured settings or applications.

    To know more about generalized and specialized images, go through Generalized and specialized images documentation.

  6. You must wait until the image is completely exported before using it. The Export Status will be shown as Succeeded once the image has been exported completely.

  7. To update the image of the current Virtual Machine lab

    1. Drop-down the Virtual Machine Image section

    2. Scroll-down to the bottom of the list to select the exported image

    3. Click on Submit once the new image is selected

  8. Navigate to the Settings (1) tab, select Custom Images (2), and click on the Manage Images (3) button of your Compute Gallery.

  9. You should see the image in the Succeeded state. Sometimes CloudLabs might take some time to sync the images, so in case there are no images, click on the Sync Image button and you should see the image.

  10. By clicking on the Manage replication button in the Action section, you can see the region where your image has been published. Please note that you must use the same region as the lab if you intend to create a VM lab using this custom image.

  11. Additionally, you can follow the Image Replication process and easily replicate the image as per your requirements.

Next Steps

Now you know how to customize the template VM as per the lab requirement. Once the image customization is completed and exported, you will be able to see the image in the image gallery where you exported it. Now you can proceed to use the customized image by following the below links:

  • Create lab to create a VM lab using the custom image.

  • Learn more about Reimage in the Update VM Instances article to change the image used in existing deployments of the VM Labs.