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

      We have created the following Windows VM templates for Amsterdam UMC users: Template Name Applications included Windows-AUMC-Base/0.0.1 Windows+Office+RStudio+R+Anaconda+Python+X2Go Windows-AUMC-SPSS/0.0.4 All from Base/0.0.1+SPSS (v25) ...
    • 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 ...
    • VM template issue: OOBE does not provide a true out-of-the-box-experience

      Created: 2023-01-26 TL;DR: We have identified a low severity security risk regarding the creation of VM templates. We are working with the local Support Team members to mitigate this risk. Introduction One of the features in the myDRE portal is the ...
    • I cannot connect to my virtual machine: 1,2,3 error

      Problem I am getting an error "Remote Desktop can’t connect to the remote computer for one of these reasons: 1. Remote access to the server is not enabled; 2. The remote computer is turned off; 3. The remote computer is not available on the network." ...