virtnbdbackup icon indicating copy to clipboard operation
virtnbdbackup copied to clipboard

Kubevirt/openshift virtualization: howto

Open abbbi opened this issue 1 year ago • 0 comments

As kubevirt/openshift virtualization uses libvirt/qemu, it should be possible to backup virtual machines too. I dont have much experience with k8 but it seems what is required is a so called "sidecar" container that includes virtnbdbackup.

The concept would be:

  • kubevirt starts a pod (virt-launcher*) that includes libvirtd/qemu that executes a single virtual machine
  • alongside the virt-launcher* pod, another pod with virtnbdbackup included is executed that can then access the libvirtd daemon inside the virt-launcher pod.
  • the sidecar has some kind of PVC storage attached where the backup is stored.
  • backup is executed and written to PVC
  • sidecar pod quits operation

Link with an example sidecar:

https://blog.vmsplice.net/2024/03/how-to-access-libvirt-domains-in.html

abbbi avatar Apr 25 '24 04:04 abbbi