- Print
- DarkLight
Template VM and Image Customization
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
Create or add an existing Image Gallery by following Create an Image Gallery using CloudLabs/Add an Existing Image Gallery from Azure to CloudLabs documentation.
Template Customization
Here are the steps to perform the template customization:
Select your lab from the Manage VM Labs menu and navigate to the Template tab.
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.
Once the template VM has started, click on Show Connection 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.
Log into the VM and update the template VM as per your requirements.
a. You can view the quota used by the for template VMs, providing insights into resource utilization.
b. Additionally, if required, you can extend quotas for template VMs by clicking the "Extend Quota" button. A, enter the additional quota hours for the template VM, which will be added to the existing quota hours, and then click Submit.
Note
The quotas for the template VMs will be the same as the VM Quota specified during the lab creation.
You can even extend the Template VM after the quota is exhausted—the template VM will not be deleted. It allows for quota extensions without impacting the existing template VM or its data.
The template VM is aligned with the lab's expiration date. As a result, the template VM will be deleted when the lab expires.
Once completed, navigate back to the Template tab in the CloudLabs portal and select Export Image.
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.
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.
To update the image of the current Virtual Machine lab
Drop-down the Virtual Machine Image section
Scroll-down to the bottom of the list to select the exported image
Click on Submit once the new image is selected
Navigate to the Settings (1) tab, select Custom Images (2), and click on the Manage Images (3) button of your Compute Gallery.
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.
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.
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.