You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/01/29 10:31:37 UTC

[GitHub] [cloudstack] slavkap opened a new pull request #3724: Storage-based Snapshots for KVM VMs

slavkap opened a new pull request #3724: Storage-based Snapshots for KVM VMs
URL: https://github.com/apache/cloudstack/pull/3724
 
 
   ## Description
   
   Cloudstack with KVM as a hypervisor provides live VM snapshots only with volumes which image format is QCOW. 
   This is a limitation for storage providers with disks in RAW format.
   
   link to ML: http://mail-archives.apache.org/mod_mbox/cloudstack-dev/201911.mbox/%3cCAA6FghF7eaY-A3XGN5zSwKVvp7zrcuNzv5nFAQKaF+et3zH-ag@mail.gmail.com%3e#archives
   
   
   With this feature
   - CloudStack users will be able to do a live consistent snapshots of all disks attached to the VM 
   - Is using respective storage provider plugin implementation to take the snapshot
   - For NFS/Local storages we are using qemu command - drive-backup. We recommend to use
   	this functionality only if you have VMs with mixed volumes (in RAW and QCOW format). 
   - You can create VM snapshot without it's memory
   - Creates in the UI and DB VM snapshot and volume's snapshot related to the VM snapshot 
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [X] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## Prerequisites
   
   - Install qemu-guest-agent on guest machine (used to freeze/thaw the virtual machine)
   - In global settings "kvm.vmstoragesnapshot.enabled" has to be set to true
   
   - If volumes' image format is QCOW you need - qemu version 1.6+ for drive-backup command. If you’re with the latest stable Ubuntu it will be included, but for CentOS7 you need to install qemu-kvm-ev.
   - When using drive-backup command the option - "snapshot.backup.to.secondary" should be enabled.
   
   ## How Has This Been Tested?
   
   Environment:
   
   - CloudStack - management and agent version - 4.14.0.0-SNAPSHOT
   - OS for management and hypervisor - CentOS7
   - Hypervisor - KVM
   - Primary storages - NFS, StorPool, Local storage and Ceph. 
   
   Take snapshot:
   - Take VM snapshot without memory on running virtual machine
   - We have tested this feature with these storage providers - NFS, StorPool, Local storage and Ceph. 
   - There is one smoke test, which creates VM, installs qemu-guest-agent, takes, reverts and deletes VM snapshot. 
   
   Revert snapshot
   - Stop the virtual machine and revert the VM snapshot
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services