Background snapshot
Explore the concept of background snapshot in virtual machine management, including details on VM snapshot types, workflow, user experience, and current status. Learn about storing VM states, disk snapshots, memory access tracking, and more.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Background snapshot by Denis Plotnikov KVM Forum October 24 26, 2018
Agenda Snapshot overview 01 Background snapshot details 02 How to use 03 2
What is Background snapshot? 01 The way to store a complete VM state with minimal downtime 02 03 3
What is VM snapshot? 01 Disk state (disk snapshot) 02 + Other VM devices' states 03 vCPUs, RAM, controllers, etc. 4
What are the VM snapshot types? Depends on where vm devices state is stored: 01 Internal External 02 The state is stored inside the disk The state is saved on fs, net, etc. VS Format driver support is needed: qcow2 03 5
Background snapshot details 01 02 HARDEST PART: VM memory access tracking 03 Uses migration code Copy memory page 6
VM memory access tracking 01 mprotect sigsegv catch userfaultfd WP-mode isn't a part of mainsream linux 02 Too many places to track access 03 7
Background snapshot workflow Enable background snapshot: (qemu) migrate_set_capability background-snapshot on 01 Make a disk snapshot Wait until done (qemu) snapshot_blkdev <disk_name> <path> 02 RAM saving 03 Pause VM Start VM state saving (qemu) stop (qemu) migrate <type:destination> 8
User experience 01 VM slows down while snapshotting depending on the load 02 03 Downtime from 20 less than 1 sec 9
Current status 01 02 Waiting for userfaultfd-wp landing to mainstream linux 03 Draft implementation 10
QUESTIONS? 11