template vmid

warmup031

Member
May 23, 2020
7
1
23
44
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

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!