During this tutorial, the virtual machine will be shutdown and rolled back to an earlier point in time. Any data created after the time of the snapshot will be lost. This tutorial should only be executed on a test virtual machine and not on an environment where data is being added and will be lost if it is rolled back to a prior point in time.
Login to Nutanix Prism with an administrator id.
Navigate to the VM window from home.
By default, prism will show the VM overview page. Select Table to the right of overview to switch to the list of virtual machines.
For our tutorial to explain the process, select a VM, right-click it, and then click Take Snapshot. A window will be presented to enter a name for the snapshot. Enter a name and click Submit.
Right-click the virtual machine, launch the console, and log into the virtual machine.
Once logged into the virtual machine, using terminal we will create a demonstration directory where test files will be added.
Create a subdirectory called "test_directory" with the command mkdir test_directory.
Switch to the directory using the cd test_directory command
Use echo to create a file: echo "Hello World!" > testfile
Use touch midas to create an empty file called midas.
Afterwards, use "ls" to see the contents of the directory.
Once everything is in place, shutdown the virtual machine with the command sudo shutdown -h now
Switch back to Prism Element, select the VM, then at the bottom of the window select VM Snapshots.
Next, click the Restore option next to the Snapshot taken at the start of the tutorial.
Nutanix Prism Element will present a question to confirm that the virtual machine should be restored back to this snapshot.
Always consider the answer before selecting Yes because there is no turning back. For this tutorial, the answer is Yes!
After restoring the virtual machine, right-click the virtual machine and select Power On.
Right-click the virtual machine, launch the console, and log into the virtual machine.
Once logged in again, perform a ls command in Terminal to see the directories and note that the test_directory that was created is now gone.