New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Proxmox KVM template
Hi,
How can we get template for creating VM on proxmox? Any suggestion?
Things we tried. Created template from VM installed with iso. Then we using it for a VM(like cloned that created template from VM as New VM). But if Example VM has 20GB HDD and 2 GB RAM. Now it is created as template now.
When we need to use this template for VM with 50GB HDD and 4GB RAM. We can't able to increase those resources.
Please let us know the way to make template and use it for VM.
Thank you!
Comments
To make a proxmox KVM template you do this:
Now some of these parts can be automatically handled if you have a module that does it. Disk space resize you can do via a custom script that runs on boot when making the template.
Hope that helps.
Specially wrote two articles related to this.
You can create a simple Windows VM using this guide.
And through template using this guide
Once you clone the template, and after that, you want to increase their resources. You can do that from the web interface, then you have to reboot for new resources to take effect.
First, you have to create a correct template as written in the article then you can clone to create virtual machines.
Hi,
Thank you for your responses. We are created template from VM where we create HDD with 10GB. It is mounted to / partition, RAM 1Gb, and CPU 1 core. Resource change now cpu and RAM works. But we are added HDD add on VM too but not add for / partition. We want like whole space on /. But here only space what we are mounted when creating template is there. Not the one we added now as 40 not taken effect as 40GB. It is separately on sdb.
You mean when you resize your hard disk from Proxmox web gui, you want all the new space for "/" ?
Hi,
Yes when we clone the VM from template. It has same partition as template. If template created with 10 GB / cloned itself has the same.
If we want to add more HDD. We can't resize primary HDD available. Only able to add one more HDD.
Thank you!
resize the disk through webgui, start with gparted iso and resize / from there. or just make a template for the correct size you'd need in the first place.
A batter way would be to use pxe installations which will use exactly the size of the machine itself.
@raviec to resize the primary partition use the windows partition manager once the VM has been set up. Not sure if theres any other way within the proxmox itself.
@raviec are you going to use these templates for selling VPS? For selling VPS I will recommend you to create templates for every plans you are offering. It's a onetime work and fewer issues at the time of provision. We have 3 KVM plans and we have created KVM template for each plan, which allows us instant provisioning.
If you want for personal project, you can use same template. You can clone template adjust resources then use fdisk (Linux) or disk management (Windows) to resize partition.