KVM virt-template-clone

Clone VM machine based on templates

Download:

Download package_virt-template-clone.tar.gz.

Install:

Download and untar: tar -xzf package_virt-template-clone.tar.gz
Untar it and each tar untar to specific directory:

All-in-one:
mkdir -p /usr/local/etc/ && \
 tar -xzf usr-local-etc-virt-template-clone.tar.gz -C /usr/local/etc/ && \
mkdir -p /var/local/ && \
 tar -xzf var-local-virt-template-clone.tar.gz -C /var/local/ && \
mkdir -p /usr/local/sbin/ && \
 tar -xzf usr-local-sbin-virt-template-clone.dir.tar.gz -C /usr/local/sbin/ && \
ln -s /usr/local/sbin/virt-template-clone.dir/virt-template-clone /usr/local/sbin/virt-template-clone
Optional (if you want to use it seperately):
ln -s /usr/local/sbin/virt-template-clone.dir/lib/virt-post-install/lib/terminal-colors/terminal-colors.bash /usr/local/sbin/virt-template-clone/terminal-colors.bash
ln -s /usr/local/sbin/virt-template-clone.dir/lib/virt-post-install/lib/xmllib/xmlfile.bash /usr/local/sbin/virt-template-clone/xmlfile.bash
ln -s /usr/local/sbin/virt-template-clone.dir/lib/virt-post-install/virt-post-install /usr/local/sbin/virt-template-clone/virt-post-install

Configure:

Optional:
/usr/local/etc/terminal-colors.templates
Define a new templates for module ps1set.(Default template can be set in module.conf by VPI_PS1SET_DEFAULT_TEMPLATE)

You can see video.