template vmid

warmup031

Member
May 23, 2020
7
1
23
45
Hello,
I'm trying to configure foreman to use proxmox template, for vm deployment. In the image creation in foreman / compute ressources, an image vm id is requested.
I can list the templates with "pvesh get /nodes/localhost/storage/local/content -content vztmp"
but can't find a vm id for these template. how can I find a reference to any proxmox template to be catched by foreman ?
Thank you for your help
 
I can list the templates with "pvesh get /nodes/localhost/storage/local/content -content vztmp"
There is no such thing as "vztmp" , there is such a thing as "vztmpl".

"vztmpl" in PVE speak refers to container template. You stated that you are looking to create a procedure for VM (virtual machine). The Container and the VM are two different things.

You can create a VM template by converting an existing VM into a template: qm template [vmid].
The ID of this template will remain as it was. You can list it with "qm list" or corresponding API call.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
There is no such thing as "vztmp" , there is such a thing as "vztmpl".

"vztmpl" in PVE speak refers to container template. You stated that you are looking to create a procedure for VM (virtual machine). The Container and the VM are two different things.

You can create a VM template by converting an existing VM into a template: qm template [vmid].
The ID of this template will remain as it was. You can list it with "qm list" or corresponding API call.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thanks for your reply and help, I convert a vm to template and from foreman side, it got it.
 
  • Like
Reactions: bbgeek17