Skip to content

Improve kvm vm snapshot #5836

Description

@div8cn
ISSUE TYPE
  • Improvement Request
COMPONENT NAME

CLOUDSTACK VERSION

CONFIGURATION
OS / ENVIRONMENT
SUMMARY

We have achieved
xenserver: volume snapshot and vm snapshot
vmware: volume snapshot and vm snapshot
KVM+NFS: volume snapshot and vm snapshot
kvm +ceph: Only support volume snapshots;

kvm+ceph primary storage, it is a very perfect combination.
But we currently do not support KVM+ceph vm snapshots, I think this is a very large feature loss;

Libvrit api does not support vm snapshot in raw format (it may be the biggest obstacle to achieving this function).

We can refer to the openstack processing method:

  1. suspend the vm
  2. use the agent to connect to the ceph api to directly create a snapshot of all the volumes on the vm
  3. resume vm
STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Activity

  1. slavkap commented on Jan 6, 2022

    @slavkap
    Contributor

    @div8cn, there is a PR with a similar solution, but instead of suspending the VM, it will be frozen #3724

  2. nvazquez commented on Feb 4, 2022

    @nvazquez
    Contributor

    @slavkap can you confirm if the PR #3724 fixes this issue?

  3. slavkap commented on Feb 4, 2022

    @slavkap
    Contributor

    Hi @nvazquez, yes, it follows the described steps, but we freeze the VM instead of suspending it. It should work and for other storages as well

  4. nvazquez commented on Feb 5, 2022

    @nvazquez
    Contributor

    Thanks @slavkap, adding it to the 4.17 milestone tentatively

  5. added this to the 4.17.0.0 milestone on Feb 5, 2022
  6. linked a pull request that will close this issueStorage-based Snapshots for KVM VMs #3724on Feb 5, 2022
  7. moved this to Dev In Progress in Apache CloudStack 4.17.0on Feb 7, 2022
  8. nvazquez commented on Apr 4, 2022

    @nvazquez
    Contributor

    Hi @div8cn - PR #3724 addresses this issue and is ready now, could you please test it?

  9. Repository owner moved this from Dev In Progress to Done in Apache CloudStack 4.17.0on Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions