Default KVM hardware templates

hybrid512

Active Member
Jun 6, 2013
76
4
28
Hi,

Is there a way to redefined the default hardware settings for a freshly created VM ?
I mean, rght now, I create dozens of VMs but when I create new VM (and not clone an already existing one), I have to redefin my hardware settings (especially I replace IDE with virtio-scsi, use virtio for network, change keyboard layout, disable tablet pointer, ....)

There are times where it is useful to change a few things manually but these settings are common to all my VMs so I'd be happy to define them once and for all so that I don't have to redefeine them every time I create a new VM.

So, is there a template configuration file or something that I can edit to do that ?

Best regards.

Walid
 
isnt that the point of cloning a template? just make a blank vm how you like, then right click on it and make template

you can script the process like this (all are pvesh commands), the reference is here, http://pve.proxmox.com/pve2-api-doc/

create /nodes/prox1/qemu -vmid 101 -virtio0 rbd:vm-101-disk-1 -ide2 local:iso/ubuntu.iso,media=cdrom
or
create /nodes/prox1/qemu/100/clone -newid 101 -name testclone
set /nodes/prox1/qemu/101/config -net0 virtio,bridge=vmbr0
and, if you must,
set /nodes/prox1/qemu/101/config -delete cdrom

 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!