Current location - Health Preservation Learning Network - Healthy weight loss - How to create VMware virtualization snapshots and snapshot deletion methods
How to create VMware virtualization snapshots and snapshot deletion methods
First, how to create a VMware snapshot?

The creation of VMware snapshots can be realized through the snapshot manager of VMware vSphere Client, or by directly running the vmware-cmd command in ESX service console and vSphere CLI. With this command, you can also choose to turn the virtual machine on and off, or even pause the virtual machine while taking a snapshot. If the virtual machine is turned off when the snapshot is taken, the option whether to take a snapshot of the memory data is not displayed.

At the same time, you can also manage snapshots by connecting directly to ESX server or enabling the vSphere Client through VMware vCenter Server. If you choose to create a snapshot through the command line CLI, the syntax for creating a snapshot is: vmware-cmd createsnapshot. For example, VMware-cmd myvm 1.vmx creates a snapshot snap 1 before upgrading1. Mute and memory options 1 on, 0 off. The silent option 1 means that the write operation of the file system is stopped before the snapshot is started. The memory option 1 means that the memory state of the virtual machine is also snapped. If multiple snapshots are created, after a new snapshot is created, the previous snapshot will be set to read-only.

Second, how to delete VMware snapshots and rollback methods

When users operate on snapshots of VMware virtual machines, it should be noted that when all snapshots of virtual machines need to be deleted, all the incremental files created will be merged into the original VMDK file before being deleted. If you choose to delete only one snapshot, only that snapshot will be merged into the previous snapshot. If you choose to rollback the snapshot, the existing disk and memory state will be discarded and the system will return to the selected rollback time point. No matter which level of snapshot you choose to roll back, it will become the new parent snapshot. The parent snapshot does not represent the latest snapshot. If the previous point in time is selected for rollback, the virtual machine will be restored to the old point in time. In the Snapshot Manager, the parent snapshot is always labeled "You are here", which represents the current state of the virtual machine.