Create template from a vm
Implementation
1. Execute as root:
echo "" > ~/.bash_history
echo "" > /etc/resolv.conf
rm ~/.Xauthority
rm /etc/ssh/ssh_host_*
echo "" > /etc/machine-id
rm -rf /etc/salt/pki/minion/*
echo "" > /etc/salt/minion_id
history -c
exit
2. Execute as other user (optional):
echo "" > ~/.bash_history
rm ~/.Xauthority
history -c
sudo shutdown
exit
3. On gui click on convert to template