Skip to content

Kubevirt/openshift virtualization: howto #178

Open
@abbbi

Description

@abbbi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    conceptdocumentationImprovements or additions to documentationhelp wantedExtra attention is welcome

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions