Live snapshot for VM with state of processes

Registered by Son Pham on 2019-10-03

Release: stable/pike
The snapshot command takes a snapshot for VM with state of processes. The snapshot keep VM state make to be able to do quick-launch of the instance, keep all process and config when snapshot. Note that booting from this special type of snapshot can be tricky but we can fix it. The disk type is changed to QCOW2 instead of RAW and create/restore snapshot via Libvirt.

Create snapshot example

#create external snapshot
virsh snapshot-create-as --domain instance-00000037 \
--name "vm37" \
--description "ciros" \
--diskspec vda,file=/home/sinhvien/iso/disk37.qcow2 \
--disk-only --atomic

#using blockpull to merge root disk with qcow2 disk
virsh blockpull \
--domain instance-00000037 \
--path /home/sinhvien/iso/disk37.qcow2 \
--wait \
--verbose

#create new snapshot
virsh snapshot-create instance-00000037

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Son Pham
Direction:
Needs approval
Assignee:
Son Pham
Definition:
Pending Approval
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Addressed by: https://review.opendev.org/686948
    Up load new blueprint snapshot-vms-with-state-of-processes

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.