How to Modify Template im Proxox VE

Sometime I wonder how to convert template back to vm and modify it and convert it back to vm? Here is the solution

Convert Template to VM

Delete template: 1 in vm config.

sed -i 's/template:\ 1//g' /etc/pve/qemu-server/{vm-id}.conf

Change access permission of VM disk

cd /var/lib/vz/images/1{VM-ID}/
chattr -i *
chmod 755 *

Then covert it back to template