Default KVM hardware templates

hybrid512

Renowned Member
Jun 6, 2013
76
4
73
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: