Template

This Tutorial includes two types of encapsulation method: Windows and Windows VirtIO. Encapsulation procedures for each method are starkly different. Make sure that you perform relevant operations according to the corresponding method as follows:
  • Windows: Add an image by using Windows platform type. Notice that the template with the Windows method has two types of drive: IDE and Virtio. For more information about how to encapsulate a template with the Windows method, see Windows Template.
  • Window VirtIO: Add an image by using Windows VirtIO platform type. Notice that the template with the Windows VirtIO method has only one type of drive: VirtIO. For more information about how to encapsulate a template with the Windows VirtIO method, see Window VirtIO Template.

Windows Template

Create a Windows template on the Cloud.

Procedure
  1. Add an image.
  2. Install an operating system.
  3. Install GuestTools and other software.
  4. Prepare the operating system.
  5. Create an operating system template.

Take Windows Server 2008 R2 as an example. With this Tutorial, a comprehensive procedure on how to create a Windows template will be introduced.


Add Image

Add a Windows Server 2008 R2 image to the ZStack image list for installing the operating system.

In the navigation pane of the ZStack Private Cloud UI, choose Resource Pool > Image. On the Image page, click Add Image. On the displayed Add Image page, set the following parameters:
  • Name: Enter a name for the image.
  • Description: Optional. Enter a description for the image.
  • Image Type: Select an image type. Options: System image | Volume image. In this scenario, select System image.
  • Format: Select an image format. Options: qcow2 | iso | raw. In this scenario, select iso.
  • Platform: Select a platform type for the image. Options: Linux | Windows | WindowsVirtio | Other | Paravirtualization. In this scenario, select Windows.
  • Backup Storage: Select a backup storage that you created.
  • Image URL: Select and enter a URL or local file path for the image to be added.
    Note:
    • URL supports two types of format: HTTP/HTTPS/FTP/SFTP and file:///. Specifically, the file:/// format can only support two types of backup storage: ImageStore and SFTP backup storages.
    • If you select local file, you can upload directly the image accessible to the current browser to a backup storage. Notice that ImageStore is supported.
  • Boot Mode: Select a BIOS mode as required. Options: Legacy | UEFI.
    • Legacy: Supports all operating systems.
    • UEFI: Supports Windows 7, Windows Server 2008 R2, Windows 8, and later versions. Specifically, for both Windows 7 and Windows Server 2008 R2, ensure that you choose CSM.
      Note:
      • For a Windows VM instance (such as Windows Server 2012 R2, Windows Server 2016, and Windows 10) with the UEFI mode, the following page will be displayed after the VM instance starts. Press any key to continue the installation of the VM operating system. Otherwise, the VM instance will enter the UEFI Shell, as shown in Press Any Key to Continue.
        Figure 1. Press Any Key to Continue


        If the VM instance already entered the UEFI Shell, you must run the following commands before you boot the operating system:
        Shell> fs0:
        FS0:\> dir
        FS0:\> cd EFI
        FS0:\EFI\> cd BOOT
        FS0:\EFI\BOOT\> BOOTX64.EFI
        After you perform the preceding operations, press any key to continue the VM operating system installation. Otherwise, the VM instance will enter the UEFI Shell again.
  • Installed QEMU guest agent: Choose whether to use the installed QGA. In this scenario, this checkbox is not required.
The image can be added, as shown in Add Windows Image.
Figure 2. Add Windows Image



Install Operating System

Create a VM instance and install the operating system for the VM instance by using the Windows Server 2008 R2 image that you added.

Create VM Instance

In the navigation pane of the ZStack Private Cloud UI, choose Resource Pool > VM Instance. On the VM Instance page, click Create VM Instance. On the displayed Create VM Instance page, set the following parameters:
  • Add Type: Select an add type for the VM instance. Options: Single | Multiple.
  • Name: Enter a name for the VM instance.
  • Description: Optional. Enter a description for the VM instance.
  • Instance Offering: Select an appropriate instance offering.
  • Root Disk Offering: Select an appropriate root disk offering.
  • Image: Select the Windows image that you added.
  • Network: Select an L3 network for the VM instance.
Click OK to complete creating the Windows Server 2008 R2 VM instance, as shown in Create VM Instance. The operating system will automatically enter the BIOS mode.
Figure 1. Create VM Instance


Install Operating System

On the VM Instance page, select the name of the VM instance, and choose Actions > Console. After you open the console, the installation page of the VM instance is displayed, as shown in Install Operating System.

Figure 2. Install Operating System


To configure your own guest operating system, reference to the normal Windows Server 2008 R2. During installation, the guest operating system will be automatically rebooted, which may lead to disconnection of the console. In that case, re-enter the console. After you complete installing the operating system, customize the admin password and log in to the operating system. So far, the Windows operating system is installed, as shown in Complete Installing Operating System.

Figure 3. Complete Installing Operating System


Prevent Disk from Being Offline

If servers are abnormally shut down, disks on the VM instance will be offline after the VM instance reboots. To prevent this, after you complete installing the Windows operating system, go to Command Prompt by using the Administrator permission, and run the following commands successively:
C:\Users\Administrator> diskpart  ::Enter diskpart.
DISKPART> san   ::View the SAN policy.
DISKPART> san policy=onlineall   ::Change the SAN policy by using diskpart.
DISKPART> exit









Download

Already filled the basic info? Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.

Email Us

contact@zstack.io
ZStack certification training consulting
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for choosing ZStack products and services.

Back to Top