Posted By Shahid Malla

How to Add Windows Templates for VM/KVM - Shahid Malla - WHMCS Expert Freelancer

How to Add Windows Templates for VM/KVM

How to Add Windows Templates

Introduction

Creating virtual machines on KVM (Kernel-based Virtual Machine) often requires installing specific operating system templates. In this tutorial, we’ll guide you through the process of downloading and adding Windows templates for KVM. We’ll use the example of adding a Windows 2022 template.

Prerequisites

  1. A server with KVM installed.
  2. Access to the server via SSH.

Steps to Add Windows Templates

1. Access the Node Directory

# For KVM, navigate to the appropriate directory
cd /var/virtualizor/kvm

2. Download the Windows Templates

Use wget to download the desired Windows templates. In this example, we’ll download the Windows 2022 template.

wget http://mirror.softaculous.com/virtualizor/templates/windows-2022.img.gz

You can also download other Windows templates using the provided URLs:

wget http://mirror.softaculous.com/virtualizor/templates/windows-2003-x86.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2008r2.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2012server.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2003-x86.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2008r2.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2012server.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2012r2.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2016.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2019.img.gz
wget http://mirror.softaculous.com/virtualizor/templates/windows-2022.img.gz

3. Extract the Template

Once the template is downloaded, use the gunzip command to extract it.

# Replace TEMPLATE_NAME with the actual template name
gunzip windows-2022.img.gz

Repeat this step for each template you’ve downloaded.

Conclusion

You have successfully downloaded and added Windows templates for KVM. Now you can use these templates when creating virtual machines on your KVM server. Adjust the commands and template names based on your specific requirements.

5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x