1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/instances
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
..
api fix(instances): the REST API's list of all VMs reads the hosts first 2026-11-13 16:07:01 +03:00
migrations fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
templates feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00
templatetags fix(instances): a disk resize form grows the disk it showed 2026-11-12 22:09:34 +03:00
tests fix(computes): maintenance read at the moment of the action; autostart named and refused 2026-11-16 22:53:42 +03:00
__init__.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
addresses.py fix(instances): one guest's bad address no longer ends a search or the VM report 2026-11-13 16:07:12 +03:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
forms.py fix(instances): console changes that cannot be made are refused, not reported as done 2026-11-13 22:49:28 +03:00
jobs.py feat(computes): putting a host in maintenance migrates its VMs; ready once none runs 2026-11-16 17:04:06 +03:00
models.py fix(instances): a failed power cycle says the VM stays off; templates have no autostart 2026-11-11 15:17:59 +03:00
report.py perf: the Logs and VM report downloads are written row by row 2026-11-05 18:58:13 +03:00
states.py feat(instances): the Power tab shows the VM's state and where each action takes it 2026-11-03 19:22:52 +03:00
urls.py perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
utils.py feat(computes): Balance proposes migrations that even out the hosts 2026-11-16 07:37:10 +03:00
views.py feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00