我每天或晚上都在尝试将虚拟机恢复到以前的快照。不幸的是,我还没有找到任何方法来按照我想要的方式做到这一点。
以下是我尝试过但不适合的一些事情:
- snapshot.action=autoRevert --> The VM has to HALT, REBOOT doesn't work the same. I don't want to power on my VM manually.
- snapshot.action=autoRevert on a running snapshot. I tried this, thinking it might work and resolve the first issue. But when i HALT my VM, the snapshot is reverted but the VM is placed in a suspended state...
- PowerCLI script : I don't want to have a Windows machine running just for this little thing.
- NonPersistent disk : same thing as the first issue : VM needs to HALT, not REBOOT.
我怎么能简单地做到这一点?我以为我可以做这些事情并在我的 linux VM 上放置一个 cron 来每天晚上重新启动。