1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/vrtManager
catborise f4559acbc7 feat(vmbackups): back up a running or shut-off VM into a target
A superuser backs a VM up from its new Backups tab, or with POST
/api/v1/backups/ (202 with the job); GET lists and reads backups. The
backup.create job holds the VM, its compute (shared) and the target, so
migrations, snapshots and power changes of the VM wait meanwhile.

- A shut-off VM's disks are copied one at a time into the target pool,
  flat, in their format (createXMLFrom); a cancel stops before the next.
- A running or paused VM's disks go by libvirt's push backup into
  volumes made first, as the live clone: the file systems frozen for its
  start when the guest agent answers (frozen), crash-consistent
  otherwise, or refused when frozen file systems are required. A guest
  that shuts down meanwhile does not end the backup.
- A running VM's NVRAM file is kept only when it reads the same after
  the copy as before it (three reads), so it is the capture point's.
- Then the NVRAM file, the definition and the manifest (written last)
  are uploaded and read back, and the row becomes ready with its files.
- Recovery thaws a frozen guest first, watches a push backup still
  running, finishes a copied backup, removes the files of a failed or
  cancelled one, and leaves a copy whose end libvirt cannot tell
  uncertain with its files named. The target pool is checked by UUID and
  its free space before anything is made.
2026-11-17 09:13:59 +03:00
..
tests feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
backup.py feat(vmbackups): what a VM's backup holds and the target files 2026-11-17 08:40:06 +03:00
connection.py feat(vmbackups): what a VM's backup holds and the target files 2026-11-17 08:40:06 +03:00
create.py refactor(vrtManager): a shut-off VM clone copies its disks with clone_volume 2026-11-14 19:43:11 +03:00
hostdetails.py fix(computes): a VM that cannot be read leaves a host's capacity unknown 2026-11-13 16:38:42 +03:00
instance.py feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00
interface.py fix(interfaces): the interface the panel reaches its host by is kept 2026-11-12 16:17:33 +03:00
libvirt-ssh fix(vrtManager): libvirt connections open within a time limit 2026-10-05 09:06:52 +03:00
network.py fix(networks): the XML editor does not overwrite a change made meanwhile 2026-11-12 13:30:09 +03:00
nodedevs.py fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
nwfilters.py fix(instances): a VM is not migrated to a host whose filters of its names differ 2026-11-13 11:46:01 +03:00
storage.py feat(storages): a volume downloads from its pool page 2026-11-15 00:31:42 +03:00
util.py fix(networks): the XML editor does not overwrite a change made meanwhile 2026-11-12 13:30:09 +03:00
virtsecrets.py fix(virtsecrets): a secret in use is not deleted by its UUID in capitals 2026-11-12 16:17:21 +03:00