Step-by-step guide

  1. download a normal lxc / openvz template
  2. create an lxc container with this template 
  3. boot it
  4. open it (pct enter <id>) 
  5. install / modificat everything you want
  6. remove all network interfaces
  7. clean it (apt-get clean, remove hostname, resolv.conf, ect.)
  8. shutdown the container
  9. make a backup with vzdump an select tar.gz
  10. OR Change to the root directory of your LXCcontainer, directly on you PVEhost, then make an packages:
    Code:
    tar -czf /home/iso-images/template/cache/custom-16.04-desktop_16.04-1_amd64.tar.gz *
  11. move an rename the backupfile from ...../dump/xyz.tar.gz to ..... /templates/cache/name-version.tar.gz
  12. use your new template as any other