×
Creating Windows Template CloudStack
Blog Cloud Computing

Creating Windows Template CloudStack

In this blog, we showing you Creating Windows Template CloudStack for windows 2012, 2012R2 & Windows 2016.

Creating Windows Template for CloudStack (Step by Step instructions)

Prerequisites for Creating Windows Template CloudStack

  • Install a new VM (any version of windows) in cloud stack.
  • Install all the recommended updates through windows updates snap-in.
  • Then download Cloud Instance Manager from the below URL and install with default settings

http://sourceforge.net/projects/cloudstack/files/Password%20Management%20Scripts/CloudInstanceManager.msi/download

This tool generates the administrator password automatically for cloud stack VM’s.

GENERATING UNATTEND FILE USING WINDOWS SYSTEM IMAGE MANAGER

INSTALLING WAK

  • To create an unattended answer file, download and install the windows assessment and deployment Kit (WDK) from Microsoft site to your local PC

https://www.microsoft.com/en-in/download/details.aspx?id=39982

  • Make sure you have selected the below list of components during installation.

Creating Windows Template CloudStack

UPLOADING WINDOWS IMAGE IN ADK

  • Click on Creating Windows Template CloudStack icon from the programs menu
  • Under Windows Image section, right click and select windows image.

Creating Windows Template CloudStack

  • Locate the install.wim file in the \sources directory of the install media. Click Open. Another way is to extract the install.wim file from the windows image or install media to your local drive.

Creating Windows Template CloudStack

  • Select the appropriate windows version from the pop-up screen and click OK.

Creating Windows Template CloudStack

  • It will generate the catalog file using install.wim and it will take few minutes to complete.

Creating Windows Template CloudStack

  • Windows components will display once the image mounted in WSIM.

Creating Windows Template CloudStack

ANSWER FILE CREATION

  • Click on File and select new answer file.

Creating Windows Template CloudStack

  • Once you add all the components in the answer file, it will look like below.

Creating Windows Template CloudStack

  • Now save the answer file as unattend.xml using file menu.

Creating Windows Template CloudStack

GENERALIZE THE OS

  • Now copy the XML file to the corresponding server to convert as a template.
  • Go to C:\Windows\System32\Sysprep folder and copy the unattend.xml into that folder.

Creating Windows Template CloudStack

  • Go to command prompt and change the directory path to c:\windows\system32\sysprep and execute the below command.

         Sysprep /oobe /generalize /unattend:unattend.xml /shutdown

Creating Windows Template CloudStack

  • Once you execute the command, sysprep will generalize the OS based on the answer file.

Creating Windows Template CloudStack

  • After the completion, the server will be shutdown automatically.

 CREATING WINDOWS TEMPLATE FROM CLOUDSTACK

  • Now login into cloud stack and click on the server instances.

Creating Windows Template CloudStack Creating Windows Template CloudStack

  • Click on View Volumes.

Creating Windows Template CloudStack

  • Now click on Quick view and select create template option.

Creating Windows Template CloudStack

  • From the pop-up screen, provide the Template Name, Description, OS type, with public, password enabled and featured option enabled. Then click OK.

Creating Windows Template CloudStack

  • You can see the template creation process in the cloud stack notification area.

Creating Windows Template CloudStack

  •  Once it’s complete the template is ready for the VM deployment.

One thought on “Creating Windows Template CloudStack”

  1. Hi man! How you doing? We have a issue about set up the instance internal name during deploying a windows template. Do you know if is possible change the internal name during this process?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.