澄清对 VirtualBox 快照重新删除的理解
Clarify understanding of VirtualBox snapshots re deleting
作为测试应用程序安装和功能的一部分,我每次都将其部署到新的 VirtualBox 来宾。为了做到这一点,我首先在 VM 中安装了一个新的 guest OS 副本,然后制作了一个快照,目的是在每次测试 运行.[=14= 之前恢复到这个快照]
但是,在那次活动之后我做了一个小改动(我似乎总是想念 某些东西)。这是主机驱动器的安装,这样我就可以将我的测试脚本和应用程序数据保存在那里,只需 运行 来宾上的一个命令即可启动并报告所有内容。
所以我做了这些更改,拍了另一个快照,现在的情况是:
Baseline (22 days ago)
|
+- HostMounted (21 days ago)
|
+- Current state
因为我不再需要基线,而且我的构建系统占用了 巨大的 数量的 space,我想摆脱它。不过,作为偏执型,我想确认一下:
删除 Baseline
快照还会给我留下相同的 HostMounted
吗?我基本上是想确保我最终得到:
HostMounted (21 days ago)
|
+- Current state
我查看了 doco 和讨论组中的各种帖子,但它们对我来说似乎模棱两可。
HostMounted
快照可视为独立快照。删除其他快照不会以任何方式改变它。
换句话说,即使快照存储为先前状态与快照之间的简单差异,删除先前状态也会将任何必要的更改滚动到该快照中。
这得到了VirtualBox documentation(我的重点)的支持:
You can restore a snapshot by right-clicking on any snapshot you have taken in the list of snapshots. By restoring a snapshot, you go back (or forward) in time: the current state of the machine is lost, and the machine is restored to the exact state it was in when the snapshot was taken.
因此,如果不再需要,您可以安全地删除 Baseline
。
作为测试应用程序安装和功能的一部分,我每次都将其部署到新的 VirtualBox 来宾。为了做到这一点,我首先在 VM 中安装了一个新的 guest OS 副本,然后制作了一个快照,目的是在每次测试 运行.[=14= 之前恢复到这个快照]
但是,在那次活动之后我做了一个小改动(我似乎总是想念 某些东西)。这是主机驱动器的安装,这样我就可以将我的测试脚本和应用程序数据保存在那里,只需 运行 来宾上的一个命令即可启动并报告所有内容。
所以我做了这些更改,拍了另一个快照,现在的情况是:
Baseline (22 days ago)
|
+- HostMounted (21 days ago)
|
+- Current state
因为我不再需要基线,而且我的构建系统占用了 巨大的 数量的 space,我想摆脱它。不过,作为偏执型,我想确认一下:
删除 Baseline
快照还会给我留下相同的 HostMounted
吗?我基本上是想确保我最终得到:
HostMounted (21 days ago)
|
+- Current state
我查看了 doco 和讨论组中的各种帖子,但它们对我来说似乎模棱两可。
HostMounted
快照可视为独立快照。删除其他快照不会以任何方式改变它。
换句话说,即使快照存储为先前状态与快照之间的简单差异,删除先前状态也会将任何必要的更改滚动到该快照中。
这得到了VirtualBox documentation(我的重点)的支持:
You can restore a snapshot by right-clicking on any snapshot you have taken in the list of snapshots. By restoring a snapshot, you go back (or forward) in time: the current state of the machine is lost, and the machine is restored to the exact state it was in when the snapshot was taken.
因此,如果不再需要,您可以安全地删除 Baseline
。