Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm often writing bash scripts for auto-configuration of servers, and I'd like to be able to test them on live machines, rather than just hoping that they'll work when I need them to. I thought of using VirtualBox, but the problem is that I don't want to have to go through and undo my changes every time I want to run the script. Is there a way to basically store a machine's state and revert back to it whenever I want?

share|improve this question
up vote 3 down vote accepted

Yep you want to use VirtualBox snapshots to revert the vm back to before you ran the script.

share|improve this answer
Also all virtualisation solution provide some way of snapshotting. At the very least, if the vm uses a disk image, you can just copy the disk image file prior to making changes. – Paul Nov 9 '11 at 4:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .