<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Victor Coisne</title>
    <description>The latest articles on DEV Community by Victor Coisne (@vcoisne).</description>
    <link>https://dev.to/vcoisne</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F105479%2F8e4ac2c3-8ca4-4999-b3c4-1dc10b03779b.jpeg</url>
      <title>DEV Community: Victor Coisne</title>
      <link>https://dev.to/vcoisne</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vcoisne"/>
    <language>en</language>
    <item>
      <title>Free backup for KubeVirt VMs and OpenShift</title>
      <dc:creator>Victor Coisne</dc:creator>
      <pubDate>Wed, 28 Oct 2026 21:02:49 +0000</pubDate>
      <link>https://dev.to/plakar/free-backup-for-kubevirt-vms-and-openshift-33j6</link>
      <guid>https://dev.to/plakar/free-backup-for-kubevirt-vms-and-openshift-33j6</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://plakar.link/kubevirt-devto" rel="noopener noreferrer"&gt;Plakar blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Plakar's Kubernetes integration now backs up KubeVirt VMs: every disk plus the VM manifest, in one snapshot, consistent across disks. On OpenShift, a new &lt;code&gt;openshift&lt;/code&gt; package keeps restores from doing things you didn't ask for. Both are free.&lt;/p&gt;

&lt;p&gt;OpenShift Virtualization is Red Hat's packaging of upstream KubeVirt. A VM is a Kubernetes object, its disks are PVCs, so our Kubernetes integration should have covered them already. It didn't: it rejected &lt;code&gt;VolumeMode: Block&lt;/code&gt; outright, and most VM disks are block-mode. That was the actual blocker.&lt;/p&gt;

&lt;h2&gt;
  
  
  We don't freeze VMs. KubeVirt does.
&lt;/h2&gt;

&lt;p&gt;A disk snapshotted mid-write may not boot. A VM with three disks snapshotted a few seconds apart is worse. KubeVirt already solves this: its &lt;code&gt;VirtualMachineSnapshot&lt;/code&gt; freezes the guest through the qemu guest agent and coordinates every disk. So we drive it instead of reimplementing it.&lt;/p&gt;

&lt;p&gt;The flow: Plakar requests a &lt;code&gt;VirtualMachineSnapshot&lt;/code&gt;, a short-lived pod streams each disk out as raw blocks, and Plakar dedups, compresses and encrypts it into the same snapshot as the VM manifest. Restore goes the other way: fresh PVCs, data written back, manifest applied, into the original namespace or a new one.&lt;/p&gt;

&lt;p&gt;No guest agent, no freeze: Plakar gives up after 10 minutes instead of waiting forever. Install the agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  OpenShift: restore what you backed up, nothing more
&lt;/h2&gt;

&lt;p&gt;Backup stays a complete record. Filtering happens on restore, because some objects come with side effects: restoring a &lt;code&gt;BuildConfig&lt;/code&gt; re-triggers a build, a &lt;code&gt;Route&lt;/code&gt; reassigns a host, &lt;code&gt;SecurityContextConstraints&lt;/code&gt; and OAuth tokens belong to the cluster. The &lt;code&gt;openshift&lt;/code&gt; package skips them. Its helper pod sets its security context explicitly, and it matches OpenShift's default restricted SCC: OpenShift doesn't let pods add capabilities anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Pre-built packages need a free Plakar account:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;plakar login
&lt;span class="nv"&gt;$ &lt;/span&gt;plakar pkg add k8s
&lt;span class="nv"&gt;$ &lt;/span&gt;plakar backup k8s+vm:/vms/my-vm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On OpenShift:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;plakar pkg add openshift
&lt;span class="nv"&gt;$ &lt;/span&gt;plakar backup openshift+vm:/vms/my-vm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;RBAC roles and options are in the &lt;a href="https://plakar.io/docs/community/main/integrations/kubernetes/" rel="noopener noreferrer"&gt;Kubernetes docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it ships
&lt;/h2&gt;

&lt;p&gt;KubeVirt support lives in the Kubernetes integration, which is &lt;a href="https://github.com/PlakarKorp/integrations/tree/main/k8s" rel="noopener noreferrer"&gt;open source&lt;/a&gt; (ISC). The &lt;code&gt;openshift&lt;/code&gt; package is not open source, but it is free for everyone in the Plakar community: create a free account, run &lt;code&gt;plakar login&lt;/code&gt;, install it.&lt;/p&gt;

&lt;p&gt;Running VMs on Kubernetes? Break it and tell us on &lt;a href="https://discord.gg/uuegtnF2Q5" rel="noopener noreferrer"&gt;Discord&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>kubevirt</category>
      <category>devops</category>
      <category>backup</category>
    </item>
  </channel>
</rss>
