Generalize a VM

Generalize a VM

Use this process only if you want to create a template for your own Workspace. If you want to create a template for the whole organisation, please contact your local ST member.

Introduction

Installing the same software on your VM can be tedious and time consuming. Therefore, you can transform a VM into a template to be used when creating new VMs. Install the software and configurations once on a VM and Generalize the VM. Below are instructions on how to do this on a Windows VM and on a Linux VM. 

Available for workspace Accountable and Privileged members

Virtual machine generalisation

The same process holds true for both Windows and Linux machines. 
Be aware that virtual machine generalisation is an irreversible process! Once generalisation is started, it cannot be undone.
Generalisation means that any machine specific information is removed and virtual machine is transformed into a template or an image snapshot that can be re-used. In the myDRE portal all the generalisation steps have been automated on the background (generalisation, image creation and virtual machine deletion). 

  1. Select the virtual machine you want to generalise. Make sure the machine is deallocated. 

Navigate to three dots and select Generalize

  1. You can edit the Image name by clicking Edit
  2. To generalize the machine click on the Generalize [virtual machine name] button

  1. You will be asked to confirm the action, type in the text field 'yes'

  1. It will take up to 5 minutes to generalise the virtual machine. You will see the status change from Generalizing to Generalized once the action has been completed and you will see a success message at the bottom of the screen. Once the process is completely done, the generalised virtual machine will be removed from the workspace. 

Deploy a new virtual machine using custom template

  1. Once image has been successfully created, navigate to the Add Virtual machines menu

  1. You will now be able to select your custom template from the Workspace templates section below and proceed with further VM creation flow 


This method of template creation is only possible in context of one workspace. If you want to share your template with others, please contact your local Support team member. 

Troubleshooting for possible issues

  1. Z:-drive not available in newly created VM from image
  2. VM stuck in status unknown



    • Related Articles

    • Virtual Machine Types

      This article provides a simplified overview of Virtual Machine types available in Microsoft Azure. For a full overview, please have a look at https://azure.microsoft.com/en-gb/pricing/details/virtual-machines/series/. Make sure to select Region: West ...
    • AUMC Virtual Machine Templates

      This article is soon going to be updated! Most of the templates listed below are currently still available, except voor AUMC-Base and AUMC-Stata. Both of these templates have become obsolete with the launch of the Chocolatey template ...
    • Managing and monitoring your VM

      From within the myDRE web portal, you can find a Manage and monitor VM menu that provides links directly to your VM in the Azure portal and Azure app. Within the Azure portal or app, you can start, stop and reset the VM, as well as analyze its ...
    • [Mitigated] Adding a Virtual Machine: Templates not found error

      First version: 2024-03-26 @ 08:38 Last updated: 2024-03-26 @ 11:04 Last change: Added the mitigation, moved article to resolved. What happened? This morning, we found that templates for Virtual Machines (VMs) are not loading correctly and therefore ...
    • Copying and Pasting in myDRE: Easy or Safe?

      Introduction In myDRE, you can't copy and paste information between your computer and a Virtual Machine (VM). This for example means that you can't copy and paste your code from your local desktop to your VM and vice versa. It might seem like a big ...