VM snapshots 编辑
Citrix Hypervisor provides a convenient mechanism that can take a snapshot of a VM storage and metadata at a given time. Where necessary, I/O is temporarily halted while the snapshot is being taken to ensure that a self-consistent disk image can be captured.
Snapshot operations result in a snapshot VM that is similar to a template. The VM snapshot contains all the storage information and VM configuration, including attached VIFs, allowing them to be exported and restored for backup purposes. Snapshots are supported on all storage types. However, for the LVM-based storage types the following requirements must be met:
- If the storage repository was created on a previous version of Citrix Hypervisor, it must have been upgraded
- The volume must be in the default format (you cannot take a snapshot of
type=raw
volumes)
The snapshot operation is a two-step process:
Capturing metadata as a template.
Creating a VDI snapshot of the disks.
The following types of VM snapshots are supported: regular and snapshot with memory
Regular snapshots
Regular snapshots are crash consistent and can be performed on all VM types, including Linux VMs.
Snapshots with memory
In addition to saving the VMs memory (storage) and metadata, snapshots with memory also save the VMs state (RAM). This feature can be useful when you upgrade or patch software, but you also want the option to revert to the pre-change VM state (RAM). Reverting to a snapshot with memory, does not require a reboot of the VM.
You can take a snapshot with memory of a running or suspended VM via the management API, the xe CLI, or by using Citrix Hypervisor Center.
Create a VM snapshot
Before taking a snapshot, see the following information about any special operating system-specific configuration and considerations:
First, ensure that the VM is running or suspended so that the memory status can be captured. The simplest way to select the VM on which the operation is to be performed is by supplying the argument vm=name
or vm=vm uuid
.
Run the vm-snapshot
command to take a snapshot of a VM.
xe vm-snapshot vm=vm uuid new-name-label=vm_snapshot_name
<!--NeedCopy-->
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论