Hi,
Found a bug with PVE 4.4-13.
When I convert a VM to a template that is stored on Ceph, a snapshot is created for my VM disks.
When I want to destroy this template, I have a message in the console saying the image still has watchers so it can't be removed.
Anyway, the VM IS removed in PVE GUI but looking at Ceph, the base image is still there (though, the snapshot has been properly removed).
I must unmap the image first then remove it to get definitely rid of it.
So, in order to remove a VM template in such situation (Ceph + KRBD), don't forget to unmap the volume first then remove the image.
By the way, templates are nice but sometimes, especially when you set it up the first time, this is not unusual to have to modifiy the template but once a VM is converted to a "template VM", it can't be started and modified again.
You must full clone it first, modify it, then migrate it (or backup/restore) then convert it to template again which is a pain in the ass and very time consuming.
Adding an option to "untemplate" a template (aka. convert it to normal VM) would be great.
Cheers.
Found a bug with PVE 4.4-13.
When I convert a VM to a template that is stored on Ceph, a snapshot is created for my VM disks.
When I want to destroy this template, I have a message in the console saying the image still has watchers so it can't be removed.
Anyway, the VM IS removed in PVE GUI but looking at Ceph, the base image is still there (though, the snapshot has been properly removed).
I must unmap the image first then remove it to get definitely rid of it.
So, in order to remove a VM template in such situation (Ceph + KRBD), don't forget to unmap the volume first then remove the image.
By the way, templates are nice but sometimes, especially when you set it up the first time, this is not unusual to have to modifiy the template but once a VM is converted to a "template VM", it can't be started and modified again.
You must full clone it first, modify it, then migrate it (or backup/restore) then convert it to template again which is a pain in the ass and very time consuming.
Adding an option to "untemplate" a template (aka. convert it to normal VM) would be great.
Cheers.