1. Template from Ploop container:
  2.  
  3. CTID is the container ID of the source virtual server
  4.  
  5. Mount the source virtual server:
  6.  
  7. mount -t ploop /vz/private/CTID/root.hdd/DiskDescriptor.xml /mnt
  8. cd /mnt
  9.  
  10. Create the template. Make sure you name the template correctly. centos-, debian- etc..:
  11.  
  12. tar --numeric-owner --ignore-failed-read -czpf /vz/template/cache/centos-5-custom.tar.gz *
  13.  
  14. Unmount the source virtual server:
  15.  
  16. cd ~
  17. umount /mnt

Posted by phill at 09 May 2014, 11:39:10 UTC
Language: text