I Have some vms with non persistent disk. Changes made to the disk are discarded after shutdown or reset the vm. Is it possible to discard changes to disk after guest restart or guest shut down?

Thanks in advance


I want every day to discard changes made to the disk. Currently I am doing that with "hard reset" from vcenter (the disk is independent non persistent). I want to be able to discard changes with restart guest and no hard reset.

  • 1
    What exactly you want to do and why, please explain your use case. – asktyagi Jun 3 '19 at 9:05
  • I edited the question – Steve JZ Jun 4 '19 at 12:49

Simply restarting the guest will not wipe the nonpersistent data, only a poweroff or a hard reset will do. According to the vmware documentation:

Changes to disks in nonpersistent mode are discarded when you turn off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you turn off or reset the virtual machine.

  • Thanks. And is the machine can damaged if I hard power off everyday? – Steve JZ Jun 5 '19 at 7:15
  • No, a proper power down (I mean anything except 'pulling the plug') should not damage the virtual machine in any way. – Lacek Jun 6 '19 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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