Moving disks between templates

romainl

New Member
Jul 4, 2026
1
0
1
Hi,

I'm trying to automate the creation of templates. I start from a preinstalled Ubuntu server ISO (for example noble-server-cloudimg-amd64.img), then import it in a pre-existing template and use Packer with proxmox-clone to create a template that has my tools and configuration installed.

The problem is that I can't move the disk from the created template to my existing template, because the "move_disk" API call doesn't support moving a disk if the origin or destination is a template. I found the line in the API source code that prevents moving disks between templates (here) but I don't understand the reasoning of why I can't move a disk simply because the origin or destination is a template.

I understand that I could manually edit the .conf files to assign the disk to the other template, but that seems a lot more dangerous if I'm not careful, and it's also more difficult to automate.

Is there any other way to easily move a disk from a template to another one? Or is it possible for Proxmox to remove this restriction?

Thanks in advance for your responses!