Score:0

How to properly make a backup of a virtual machine using QEMU only

mm flag

This questions asks how one can make a backup of a live virtual machine.

The accepted answer says it is possible with QEMU/libvirt.

My question (since the answer doesn't explain it) is how to do a proper backup of a live machine using only QEMU.

Score:1
cn flag

QEMU Machine Protocol primitives for one way to do a qemu backup are documented as Dirty Bitmaps and Incremental Backup. block-dirty-bitmap-add and such.

As that page suggests, "The intended audience for this document is developers who are adding QEMU backup features to management applications." As an API, its a bit ugly, a proper script should be more focused and robust. In environments using libvirt already, their backup is an obvious choice.

Due to the popularity of qemu, I would be surprised if there wasn't an alternative implementation of just backup. And indeed I found one: qmpbackup, although beware I have not used it and indeed just found it now. Study it as an example of a QMP client.

And as always, you must test backup restores to know how to recover. Regularly, and especially when changing backup procedures.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.