How to Convert Template to VM in Proxmox
Connect to Proxmox via ssh and run the following commands.
List All Templates
qm list | grep template
Convert Template to VM
Note: If the template has linked clones running, you should stop them first before converting.
qm set 800 --template 0
Convert VM Back to Template
qm template 800
Rename Template
qm set 801 --name ubuntu-srv-tmp
Destroy Template
If the template has linked clones or unreferenced disks, use the --purge and --destroy-unreferenced-disks flags:
qm destroy 800 --purge --destroy-unreferenced-disks