VMware的Snapshot(快照)相关知识

本文介绍了VMware快照的基本概念,包括它如何保存虚拟机状态和数据。快照创建后,VMware生成一个child disk用于存储后续数据变更。当删除快照时,如果.vmsd文件未正确清理,可能导致错误。解决方案是备份.vmsd文件,然后创建新的空文件,并通过VI客户端创建并删除快照以初始化新文件。完成这些步骤后,快照功能应恢复正常。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近在研究VMware的快照的相关知识,在这里做个记录和分享。

先简单介绍下快照。

A snapshot preserves the state and data of a virtual machine at a special point in time.

1) 快照保存了虚拟机在特定时间点的power state;

2) 还有就是数据。比如内存信息,所以当你做了个memory snapshot的时候,那个快照文件.vmsn的大小和你分配给虚拟机的内存大小几乎一样。

当你做了快照之后,VMware就创建一个child disk(sparse disk),之后虚拟机的数据变更都会写在这个child disk中,而base disk就变成只读的了。

base disk 和那个快照文件.vmsn就可以还原快照时的状态。

下面是一个老外写的关于快照配置文件的一些内容。

VMware records snapshot information about the current VM in a .vmsd file. This file is located with the rest of the virtual machine configuration and VMDK files on the datastore. The file is normally called .vmsd. This file will contain information, even if your VM has no snapshots in place.

It is possible that in some cases, ESX fails to properly clean up after previous snapshots were removed. The information for previous snapshots may still be recorded in the .vmsd file. The file may indicate that you stil
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值