Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Proxmox KVM template
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.

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

  • Awmusic12635Awmusic12635 Member, Host Rep

    To make a proxmox KVM template you do this:

    1. Install a VM from an ISO. (make sure to remove auto generated SSH keys, udev stuff, logs etc). Also only make the size the minimum disk space required.
    2. Turn off the vm and set the resources of the VM to the lowest possible required to run it. Then remove the network port from the vm.
    3. Convert that VM to a template
    4. Right click on the template and click clone to make a new vm.
    5. Adjust the resources how you want and add a network port.
    6. Resize filesystem inside the vm to take advantage of the increased space.

    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.

    Thanked by 1BlaZe
  • 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.

  • raviecraviec Member

    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.

  • @raviec said:
    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 "/" ?

  • raviecraviec Member

    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!

  • FalzoFalzo Member

    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.

  • racksxracksx Member

    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.

  • hostfavhostfav Member, Host Rep
    edited June 2017

    @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.

Sign In or Register to comment.