But you did create the VM snapshot prior to doing that, so it was easy to revert, yes? If not, then definitely spend some time on preparing a modern dev environment to not risk the integrity of your primary OS, and to be able to easily reproduce even the most dangerous things.