Book Image

LEARNING PUPPET

Book Image

LEARNING PUPPET

Overview of this book

Table of Contents (17 chapters)
Learning Puppet
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Restoring a snapshot


In Chapter 1, Puppet Development in Isolation, we learned how to snapshot the virtual machine before we started to work on it. To go back to the original state of the virtual machine, we need to restore the snapshot. In order to restore a snapshot, you should shut down the virtual machine if it is currently running. This can be done from the command line on the virtual machine with the poweroff command. Alternatively, we can shut down the virtual machine using the VirtualBox Manager by navigating to Machine | Close | Power Off:

Once the virtual machine has shut down, we can restore the snapshot that we created in Chapter 1, Puppet Development in Isolation:

  1. Click on the Snapshots button in the top right-hand corner.

  2. Select the snapshot to restore. In Chapter 1, Puppet Development in Isolation, I called it Base image.

  3. Click on the Restore Snapshot button.