Let's say I want to make and try a post-install script on top of a popular distro (installing all the crap I use). Is there a way to work on it on a VM or something similar so that when things go wrong I can nuke it and start over without having to reinstall the entire OS?
By things going wrong I mean an error or the script not completing properly because I forgot of something or it needed some tweaking.

