Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am setting up Ubuntu in Virtualbox to test tutorials that I'm making. Each time I boot Ubuntu I need a fresh image, without any saved changes that were previously made (Saved documents or installed programs should not persist).

How can I ensure that no changes persist?

share|improve this question
up vote 1 down vote accepted

Get the VM into the state you want it in, then create a snapshot. Restore to that snapshot just before each time you start the VM. You may be able to automate this with the vboxmanage snapshot ... command: It appears to have a restore subcommand, so you may be able script the combined restore + start by also using the startvm subcommand.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.