<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[KVMDR AI]]></title><description><![CDATA[KVMDR AI]]></description><link>https://blog.kvmdr.ai</link><image><url>https://cdn.hashnode.com/uploads/logos/6b0cab4807575062c592b271/840839ab-759c-4ea7-9e74-d559ec690008.png</url><title>KVMDR AI</title><link>https://blog.kvmdr.ai</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 23:54:42 GMT</lastBuildDate><atom:link href="https://blog.kvmdr.ai/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Backup agents in the VM, CDP agents in the VM, or CDP on the host? What each one costs you on KVM]]></title><description><![CDATA[There are three common ways to protect virtual machines on KVM platforms such as Proxmox VE, oVirt, OLVM and RHV: All three can protect your data. They…]]></description><link>https://blog.kvmdr.ai/backup-agents-in-the-vm-cdp-agents-in-the-vm-or-cdp-on-the-host-what-each-one-costs-you-on-kvm</link><guid isPermaLink="true">https://blog.kvmdr.ai/backup-agents-in-the-vm-cdp-agents-in-the-vm-or-cdp-on-the-host-what-each-one-costs-you-on-kvm</guid><category><![CDATA[KVM]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[virtualization]]></category><category><![CDATA[Backup]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Sun, 29 Nov 2026 22:37:36 GMT</pubDate><content:encoded><![CDATA[<p>There are three common ways to protect virtual machines on KVM platforms such as Proxmox VE, oVirt, OLVM and RHV:</p>
<ol>
<li><strong>Agent based backup.</strong> A backup agent runs inside every VM and copies data on a schedule.</li>
<li><strong>CDP with an agent in the guest.</strong> A filter driver inside every VM captures each write and streams it to a journal.</li>
<li><strong>CDP on the host.</strong> A lightweight agent on each hypervisor host tracks writes below the guest, so nothing is installed inside the VMs. From the VM's point of view it is agentless.</li>
</ol>
<p>All three can protect your data. They differ in what they cost you to run, how much data you can lose, and how fast you get back. This post walks through each one honestly, including where the agent approaches still win.</p>
<h2>1. Agent based backup inside the VM</h2>
<p>This is the classic model. Each VM runs an agent that reads files or volumes and sends them to a backup server on a schedule, often nightly.</p>
<p><strong>Where it hurts:</strong></p>
<ul>
<li><strong>Recovery point is measured in hours.</strong> Anything written between two runs is lost. A nightly job means up to a day of data is at risk.</li>
<li><strong>One agent per VM to install, patch and monitor.</strong> With hundreds of VMs, keeping every agent on a supported version becomes its own job. A VM that was never enrolled is simply unprotected, and nobody notices until it matters.</li>
<li><strong>Load lands inside the workload.</strong> The agent reads data using the guest's own CPU, memory and disk. Backup windows exist precisely because this slows production down.</li>
<li><strong>Every guest OS needs its own agent.</strong> Linux distributions, Windows versions and appliances each need a supported build. Appliances you cannot install software on are often left out.</li>
<li><strong>Recovery is a restore, not a failover.</strong> Getting a whole VM back usually means creating a new VM and restoring data into it, which takes time proportional to its size.</li>
</ul>
<p><strong>Where it is still good:</strong> agents understand files and applications. They can trigger application aware snapshots, back up a database properly and restore a single file easily. For long term retention and archiving, scheduled backup remains a sensible tool.</p>
<h2>2. CDP with an agent inside the VM</h2>
<p>This model keeps the agent but changes what it does. A filter driver in the guest kernel sees every block written and streams it to a journal, so the recovery point drops to seconds.</p>
<p><strong>Where it hurts:</strong></p>
<ul>
<li><strong>A kernel driver in every guest.</strong> The driver sits in the write path of the guest's storage stack. A bug there does not just break backups: it can slow down or crash the production VM.</li>
<li><strong>Kernel updates become a risk.</strong> Drivers are tied to kernel versions. A routine OS update can leave the driver unable to load, and protection stops silently until someone rebuilds or upgrades it.</li>
<li><strong>Per OS support again.</strong> Each kernel and OS version needs a tested driver. Older or unusual guests often fall outside the support list.</li>
<li><strong>Overhead on every write.</strong> Capturing and shipping each write inside the guest costs CPU, memory and network inside the VM, at all times rather than only during a backup window.</li>
<li><strong>Security surface in every VM.</strong> Each guest now runs privileged code with network access to the protection system. That is one more thing to harden, patch and audit per VM.</li>
</ul>
<p><strong>Where it is still good:</strong> if you have no access to the hypervisor, a guest agent is the only way to get CDP. That covers physical servers, some public cloud instances, and machines that protect themselves. We open sourced a device mapper target, dm-cdp, exactly for that kind of case.</p>
<h2>3. CDP with an agent on the host</h2>
<p>Here the agent moves out of the VMs and onto the hypervisor host. On KVM, QEMU keeps a dirty bitmap of the blocks each disk has written. A lightweight host agent reads only those changed blocks, sends them to the DR site at short intervals, and the system keeps a journal of recovery points. Nothing is installed in the guests.</p>
<p><strong>Why it helps:</strong></p>
<ul>
<li><strong>Recovery point of seconds to minutes</strong>, the same class as an in guest CDP agent.</li>
<li><strong>One agent per host, not one per VM.</strong> A host running 30 VMs needs one agent, not 30. A new VM is protected by adding it to a group, not by logging into it, and kernel updates inside the guest cannot break protection.</li>
<li><strong>Any guest OS.</strong> Linux, Windows and appliances are protected the same way, because the hypervisor only sees blocks.</li>
<li><strong>No load inside the workload.</strong> Tracking happens in QEMU and the host agent. The guest does not spend its own CPU or memory on protection.</li>
<li><strong>Consistency across disks and VMs.</strong> Bitmaps for related disks can be marked in one atomic step, so a multi disk or multi VM application gets crash consistent recovery points as a group.</li>
<li><strong>Recovery is a boot, not a restore.</strong> The replica already exists at the DR site, so failover means starting the VM there, rather than rebuilding it from a backup.</li>
</ul>
<p><strong>Its trade offs, honestly:</strong></p>
<ul>
<li><strong>Crash consistency by default.</strong> Without help from inside the guest, a recovery point looks like a sudden power cut. Modern file systems and databases recover from that cleanly, but if you need application consistent points, you still need a guest tool such as the QEMU guest agent to freeze the file system at the right moment.</li>
<li><strong>No file level awareness on its own.</strong> The hypervisor sees blocks, not files. File restore works by mounting a recovery point and browsing it, rather than by asking an agent for a file.</li>
<li><strong>Needs access to the hypervisor.</strong> It only works where you run the hosts. It is not an option on platforms where you only get a VM.</li>
</ul>
<h2>What recovery looks like</h2>
<p><img src="https://cdn.hashnode.com/uploads/posts/6b0cab4807575062c592b271/4c25bdb4-56b9-4fc0-8453-08a6cf5e4a16.png" alt="Recovery steps for each method" /></p>
<p>With a backup agent, recovery means building a new VM and restoring every byte into it, so the time grows with the size of the VM. A CDP agent in the guest shortens the recovery point, but getting the VM back still depends on rebuilding it or on the driver loading cleanly at boot. With CDP on the host, the replica already exists at the DR site, so recovery is a VM boot.</p>
<h2>Recovery point and recovery time</h2>
<p><img src="https://cdn.hashnode.com/uploads/posts/6b0cab4807575062c592b271/a99871af-1791-49b2-aca8-3fa478a04d2c.png" alt="Recovery point and recovery time for each method" /></p>
<p>These are typical ranges, not promises. Real numbers depend on data size, network bandwidth and how fast the workload writes.</p>
<h2>Ransomware: detection and recovery</h2>
<p><img src="https://cdn.hashnode.com/uploads/posts/6b0cab4807575062c592b271/689d0d73-c4c4-4432-82ce-28fcfeb10fb0.png" alt="Ransomware detection and recovery for each method" /></p>
<p>Ransomware changes the question from "can I restore?" to "can I restore to a point the attacker never touched, and how fast?"</p>
<p><strong>Backup agent in the VM.</strong> The agent runs inside the operating system the attacker now controls, and backup systems are a well known target. Even when the backups survive, the best you can do is return to the last good backup, which can be hours old, and then restore every VM one by one. Detection usually happens after the fact, when users notice or the next job fails.</p>
<p><strong>CDP agent in the VM.</strong> The journal lets you go back to seconds before encryption started, which is a big improvement. But the driver also lives inside the compromised guest. An attacker with administrator rights can stop it, unload it or tamper with what it sends, and you may not know until you need it.</p>
<p><strong>CDP agent on the host.</strong> Protection runs below the guest, so malware inside the VM cannot see it, stop it or delete its journal. Because every write passes through the host, a sudden burst of encrypted rewrites stands out at block level, which allows earlier detection. Recovery means picking a point seconds before the attack, checking it in an isolated Simulation, and booting it at the DR site in minutes.</p>
<p>The host itself still has to be protected: separate credentials for the hypervisors and the replication target, and immutable copies, keep the recovery points out of an attacker's reach.</p>
<h2>Side by side</h2>
<table>
<thead>
<tr>
<th></th>
<th>Agent backup in the VM</th>
<th>CDP agent in the VM</th>
<th>CDP agent on the host</th>
</tr>
</thead>
<tbody><tr>
<td>Recovery point</td>
<td>Hours</td>
<td>Seconds</td>
<td>Seconds to minutes</td>
</tr>
<tr>
<td>Where the agent runs</td>
<td>In every VM</td>
<td>In every VM (kernel driver)</td>
<td>Once per host, none in the VMs</td>
</tr>
<tr>
<td>Breaks on guest kernel updates</td>
<td>Sometimes</td>
<td>Yes, it is the main risk</td>
<td>No</td>
</tr>
<tr>
<td>Load on the workload</td>
<td>During backup windows</td>
<td>On every write</td>
<td>None in the guest</td>
</tr>
<tr>
<td>Guest OS coverage</td>
<td>Per supported OS</td>
<td>Per supported kernel</td>
<td>Any OS the hypervisor runs</td>
</tr>
<tr>
<td>Consistency across VMs</td>
<td>Per VM</td>
<td>Per VM</td>
<td>Group consistent</td>
</tr>
<tr>
<td>Getting a VM back</td>
<td>Restore into a new VM</td>
<td>Restore or failover</td>
<td>Boot the replica</td>
</tr>
<tr>
<td>Typical recovery time</td>
<td>Hours, grows with size</td>
<td>Minutes to hours</td>
<td>Minutes</td>
</tr>
<tr>
<td>Malware in the VM can disable it</td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>Ransomware recovery point</td>
<td>Last good backup</td>
<td>Seconds before the attack</td>
<td>Seconds before the attack</td>
</tr>
<tr>
<td>Application aware</td>
<td>Yes</td>
<td>Sometimes</td>
<td>With a guest freeze tool</td>
</tr>
<tr>
<td>Needs hypervisor access</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
</tbody></table>
<h2>Which one should you use?</h2>
<p>If you control the hypervisors, CDP on the host removes the biggest operational burden of the other two: software in every guest that has to be installed, patched and kept compatible with every kernel update. You maintain one agent per host instead of one per VM, and you get a recovery point of seconds without paying for it inside each VM.</p>
<p>Agent based backup still has a place for long term retention and single file restores. A CDP agent in the guest still has a place where the hypervisor is out of reach.</p>
<p>For VMs running on hosts you own, protect them from the hypervisor.</p>
]]></content:encoded></item><item><title><![CDATA[How changed block tracking makes near sync DR possible on KVM]]></title><description><![CDATA[If you want disaster recovery on KVM (oVirt, RHV, OLVM or Proxmox VE) that can take you back to a point only seconds or minutes ago, you cannot copy every…]]></description><link>https://blog.kvmdr.ai/how-changed-block-tracking-makes-near-sync-dr-possible-on-kvm</link><guid isPermaLink="true">https://blog.kvmdr.ai/how-changed-block-tracking-makes-near-sync-dr-possible-on-kvm</guid><category><![CDATA[KVM]]></category><category><![CDATA[Linux]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[#DisasterRecovery ]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Sun, 29 Nov 2026 17:16:02 GMT</pubDate><content:encoded><![CDATA[<h2>Why full copies don't work</h2>
<p>If you want disaster recovery on KVM (oVirt, RHV, OLVM or Proxmox VE) that can take you back to a point only seconds or minutes ago, you cannot copy every disk in full each time. The copy would take longer than the gap you are trying to protect.</p>
<p>The piece that makes it work is <strong>changed block tracking (CBT)</strong>. This post explains how CBT works on KVM and how a near sync replica is built from it.</p>
<h2>1. How it works: the dirty bitmap</h2>
<p>A virtual disk is a set of fixed size blocks. CBT keeps a <strong>dirty bitmap</strong> that records which blocks have been written since a chosen point.</p>
<p>On KVM this tracking lives in QEMU on the hypervisor, not inside the guest. So <strong>you don't need an agent in each VM.</strong></p>
<p>Each cycle is simple:</p>
<ul>
<li>read the bitmap to learn which blocks changed</li>
<li>read only those regions</li>
<li>send them to the DR site</li>
<li>reset the bitmap and start tracking the next interval</li>
</ul>
<p>Data that hasn't changed is never read or sent again.</p>
<h2>2. Compared with full copies</h2>
<table>
<thead>
<tr>
<th></th>
<th>Periodic full or image copy</th>
<th>Changed block deltas</th>
</tr>
</thead>
<tbody><tr>
<td>Data moved per cycle</td>
<td>The whole disk</td>
<td>Only blocks changed since the last cycle</td>
</tr>
<tr>
<td>What drives the cost</td>
<td>Total capacity</td>
<td>How much the workload writes</td>
</tr>
<tr>
<td>Achievable RPO</td>
<td>Hours</td>
<td>Seconds to minutes</td>
</tr>
<tr>
<td>Impact on the guest</td>
<td>Agent in the guest, or a full read</td>
<td>No agent, changed blocks only</td>
</tr>
</tbody></table>
<p>Moving from "copy everything" to "track and send only what changed" is what makes a recent recovery copy affordable on ordinary hardware.</p>
<h2>3. Why track changes in the hypervisor</h2>
<p>Tracking writes in QEMU rather than with an agent inside the guest has two advantages:</p>
<ul>
<li><strong>It doesn't depend on the OS.</strong> Linux and Windows guests are protected the same way, with no software to install in each guest, nothing to patch, and nothing to break on a kernel update.</li>
<li><strong>It catches every write at block level.</strong> Anything that touches the disk is recorded, not only what a file aware agent decides to watch.</li>
</ul>
<h2>4. The replication cycle</h2>
<p>A near sync replica is built by running CBT cycles at short intervals. A robust implementation runs each cycle in this order:</p>
<ol>
<li><strong>Mark:</strong> create or update a dirty bitmap on every protected disk.</li>
<li><strong>Export:</strong> expose the changed regions through a block interface such as NBD.</li>
<li><strong>Capture:</strong> read only the changed ranges as a delta.</li>
<li><strong>Apply:</strong> write the delta to the matching replica disk through a safe path.</li>
<li><strong>Record:</strong> log the cycle in a journal, which gives you recovery points to keep.</li>
</ol>
<p>In QEMU terms, marking is a QMP command, and an NBD export can publish the bitmap so a client can ask which ranges are dirty:</p>
<pre><code class="language-json">{ "execute": "block-dirty-bitmap-add",
  "arguments": { "node": "drive-scsi0", "name": "cbt-1" } }
</code></pre>
<pre><code class="language-bash"># list the dirty extents of an NBD export that publishes the bitmap
nbdinfo --map=qemu:dirty-bitmap:cbt-1 nbd://dr-host/drive-scsi0
</code></pre>
<h2>5. Crash consistency across disks</h2>
<p>An application spread over several disks, or several VMs, has to be captured as one unit. Put the related disks in a <strong>consistency group</strong> and mark their bitmaps in one atomic operation. Every recovery point is then crash consistent across the whole application: the same guarantee as cutting power to all its disks at the same instant.</p>
<p>QEMU supports this with a <code>transaction</code>, which applies all the actions together or none of them:</p>
<pre><code class="language-json">{ "execute": "transaction",
  "arguments": { "actions": [
    { "type": "block-dirty-bitmap-add",
      "data": { "node": "drive-scsi0", "name": "cbt-1" } },
    { "type": "block-dirty-bitmap-add",
      "data": { "node": "drive-scsi1", "name": "cbt-1" } } ] } }
</code></pre>
<h2>Summary</h2>
<ul>
<li>CBT on KVM records changed blocks in QEMU dirty bitmaps, so guests need no agent.</li>
<li>The data moved depends on how much changes, not on disk size, which makes short cycles and an RPO of seconds to minutes realistic.</li>
<li>Multi disk applications stay crash consistent when their bitmaps are marked together in one consistency group.</li>
</ul>
<p><em>We build KVMDR, near sync DR for KVM. If you run Proxmox VE, oVirt or OLVM at home, there's a free homelab licence at <a href="https://kvmdr.ai/community">kvmdr.ai/community</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Ransomware recovery on KVM: detection buys time, recovery ends the incident]]></title><description><![CDATA[Ransomware has moved from encrypting laptops to crippling the virtualization layer, and modern campaigns go after the backups and replicas you'd use to…]]></description><link>https://blog.kvmdr.ai/ransomware-recovery-on-kvm-detection-buys-time-recovery-ends-the-incident</link><guid isPermaLink="true">https://blog.kvmdr.ai/ransomware-recovery-on-kvm-detection-buys-time-recovery-ends-the-incident</guid><category><![CDATA[Security]]></category><category><![CDATA[ransomware]]></category><category><![CDATA[Linux]]></category><category><![CDATA[proxmox]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Sat, 28 Nov 2026 13:01:59 GMT</pubDate><content:encoded><![CDATA[<p>Ransomware has moved from encrypting laptops to crippling the virtualization layer, and modern campaigns go after the backups and replicas you'd use to avoid paying. For KVM estates (Proxmox VE, oVirt, RHV, OLVM), the question is no longer whether protection copies exist, but whether you can find a clean, untouched one and restore it fast.</p>
<p>This is a practical playbook for that: prepare, detect and contain, then recover.</p>
<h2>Why now</h2>
<ul>
<li><strong>+58%</strong> growth in claimed ransomware victims in 2025, with over 7,500 organizations posted to leak sites (GuidePoint Security)</li>
<li><strong>44%</strong> of breaches in 2025 involved ransomware, and <strong>88%</strong> of breaches at small and mid sized businesses (Verizon 2025 DBIR)</li>
<li><strong>+49%</strong> rise in active ransomware groups, as AI and leaked tooling lower the barrier (IBM 2026 X-Force Index)</li>
<li>Of organizations that paid a ransom, <strong>83%</strong> were attacked again and <strong>93%</strong> had data stolen anyway (CrowdStrike 2025)</li>
</ul>
<p>Paying is not protection. The control that scales with the threat is a clean recovery point you can restore quickly.</p>
<h2>The three outcomes that matter</h2>
<ol>
<li><strong>A point that can't be touched:</strong> a recovery point that predates the attack and can't be altered for a defined retention period.</li>
<li><strong>Confidence it's clean:</strong> a way to pinpoint the last good copy by signal, not by trial and error restores.</li>
<li><strong>A tested restore:</strong> a proven path to recover and validate in isolation, then return without reinfecting.</li>
</ol>
<h2>1. Prepare: resilience is built before the attack</h2>
<p>Every option you have during an incident was decided beforehand.</p>
<ul>
<li><input disabled type="checkbox" /> <strong>Immutable recovery points</strong>, tamper proof for a defined retention window</li>
<li><input disabled type="checkbox" /> <strong>Retention longer than attacker dwell time.</strong> Campaigns often wait days or weeks before encrypting</li>
<li><input disabled type="checkbox" /> <strong>Change rate monitoring</strong> against a known baseline, so anomalies stand out</li>
<li><input disabled type="checkbox" /> <strong>An isolated recovery network</strong>, separate from production</li>
<li><input disabled type="checkbox" /> <strong>Least privilege access</strong> to the DR control plane and recovery storage</li>
<li><input disabled type="checkbox" /> <strong>A written recovery runbook</strong> with named owners</li>
<li><input disabled type="checkbox" /> <strong>Regular non disruptive recovery tests</strong> that prove restores actually work</li>
</ul>
<p>A recovery point is only proven once it has been restored. Test the exact runbook the team will use under pressure: who decides, who executes, and how success is verified.</p>
<h2>2. Detect and contain: catch it early, preserve what's clean</h2>
<p>Bulk encryption leaves a distinctive signature in the replication stream long before anyone notices locked files.</p>
<p><strong>Signals to watch:</strong></p>
<ul>
<li><strong>A change rate spike:</strong> sudden, sustained, and across many disks at once.</li>
<li><strong>Deltas that stop compressing.</strong> Encrypted data is effectively random, so a compression ratio jumping toward 1.0 is a strong early red flag.</li>
<li><strong>Correlated change</strong> in user data regions across unrelated workloads at the same time.</li>
</ul>
<p><strong>First actions:</strong></p>
<ul>
<li><strong>Preserve, don't overwrite.</strong> Protect existing recovery points and extend retention so healthy points don't age out mid incident.</li>
<li><strong>Isolate</strong> affected hosts and segments to slow lateral spread.</li>
<li><strong>Mark the timeline.</strong> Record the first anomalous cycle; it bounds the search for the last clean point.</li>
<li><strong>Hold off on failover</strong> that would simply replicate the encryption to your recovery site.</li>
</ul>
<h2>3. Recover: six steps to a clean restore</h2>
<ol>
<li><strong>Locate the last clean point.</strong> Work back from the first anomalous cycle to the newest point before the spike.</li>
<li><strong>Restore into isolation.</strong> Bring it up on the isolated recovery network, never straight into production.</li>
<li><strong>Validate.</strong> Confirm it boots, the data is intact, and there are no encryption artifacts.</li>
<li><strong>Re IP and stage.</strong> Re address recovered workloads and bring dependent groups up in order.</li>
<li><strong>Cut over deliberately.</strong> Promote the validated environment and keep the compromised primary for forensics.</li>
<li><strong>Resume protection.</strong> Once stable, re establish replication so the restored site is protected again.</li>
</ol>
<h2>After the incident</h2>
<p>Treat the compromised primary as evidence: preserve it, rotate credentials and keys, close the entry point, then rebuild and re protect. Update the runbook while it's fresh; the next test should be faster than this one.</p>
<h2>The takeaway</h2>
<p>Ransomware resilience comes down to one number: how quickly you can stand up a verified, pre encryption copy of your workloads. Detection and containment matter because they protect that copy and narrow the search for it. Recovery is what ends the incident.</p>
<p>The full playbook, with checklists for each phase, is a free PDF: <a href="https://kvmdr.ai/docs/KVMDR_Ransomware_Recovery_Playbook.pdf">https://kvmdr.ai/docs/KVMDR_Ransomware_Recovery_Playbook.pdf</a></p>
]]></content:encoded></item><item><title><![CDATA[LXC, Docker or Kubernetes on Proxmox VE: which one, and when?]]></title><description><![CDATA[Proxmox VE gives you three common ways to run containers: native LXC containers, Docker inside a VM, and Kubernetes on a set of VMs. They solve different…]]></description><link>https://blog.kvmdr.ai/lxc-docker-or-kubernetes-on-proxmox-ve-which-one-and-when</link><guid isPermaLink="true">https://blog.kvmdr.ai/lxc-docker-or-kubernetes-on-proxmox-ve-which-one-and-when</guid><category><![CDATA[containers]]></category><category><![CDATA[Docker]]></category><category><![CDATA[Kubernetes]]></category><category><![CDATA[proxmox]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Sat, 28 Nov 2026 00:05:34 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0cab4807575062c592b271/22668c0a-fc4d-40a1-90ce-0fdd57e76633.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Proxmox VE gives you three common ways to run containers: native LXC containers, Docker inside a VM, and Kubernetes on a set of VMs. They solve different problems, and picking the wrong one usually shows up later, during an upgrade or a recovery.</p>
<h2>The short version</h2>
<table>
<thead>
<tr>
<th></th>
<th>LXC</th>
<th>Docker in a VM</th>
<th>Kubernetes on VMs</th>
</tr>
</thead>
<tbody><tr>
<td>What it is</td>
<td>A full Linux system sharing the host kernel</td>
<td>App containers inside a normal VM</td>
<td>A cluster that schedules app containers across several VMs</td>
</tr>
<tr>
<td>Managed by</td>
<td>Proxmox directly</td>
<td>Docker / Compose inside the VM</td>
<td>Kubernetes (kubectl, Helm)</td>
</tr>
<tr>
<td>Overhead</td>
<td>Lowest</td>
<td>One VM</td>
<td>Several VMs plus the control plane</td>
</tr>
<tr>
<td>Isolation</td>
<td>Shared kernel</td>
<td>Full VM boundary</td>
<td>Full VM boundary per node</td>
</tr>
<tr>
<td>Best for</td>
<td>Lightweight Linux services</td>
<td>Single apps and Compose stacks</td>
<td>Many apps, scaling, self healing</td>
</tr>
<tr>
<td>Runs Windows?</td>
<td>No</td>
<td>No (Linux containers)</td>
<td>No (Linux containers)</td>
</tr>
</tbody></table>
<h2>1. LXC: a lightweight Linux "server"</h2>
<p>An LXC container behaves like a small Linux machine: it has its own init, users, packages and IP address, but uses the Proxmox host's kernel. You create it from the Proxmox UI like a VM, and it starts in a second or two.</p>
<p><strong>Good for:</strong> DNS, reverse proxies, Pi-hole, small databases, monitoring, file shares; anything you'd run on a tiny Linux server.</p>
<p><strong>Watch out for:</strong></p>
<ul>
<li><strong>Kernel coupling.</strong> A host upgrade changes the kernel your containers run on. Proxmox VE 9 dropped cgroup v1, so containers with very old systemd (CentOS 7, Ubuntu 16.04) won't start.</li>
<li><strong>Bind mounts.</strong> Data mounted from a host path is outside Proxmox storage and isn't included in backups or snapshots.</li>
<li><strong>Docker inside LXC</strong> is possible but fragile across updates; Proxmox recommends a VM for Docker.</li>
</ul>
<h2>2. Docker in a VM: the simple app platform</h2>
<p>Run a small Linux VM (Alpine, Debian, Ubuntu) and install Docker. Each app is an image; a Compose file describes the whole stack.</p>
<p><strong>Good for:</strong> WordPress, Nextcloud, Home Assistant, Gitea, internal tools; any app shipped as a Docker image, especially multi container stacks.</p>
<p><strong>Why a VM and not LXC:</strong> the VM has its own kernel, so Docker's networking and storage drivers behave as designed, and Proxmox upgrades don't break it. Everything (images, volumes, compose files) lives on the VM's disks, so the VM is one tidy unit to back up or replicate.</p>
<p>Proxmox VE 9.1 added the option to create containers from OCI (Docker) images, and 9.3 hardened it further. Proxmox's roadmap still lists maturing OCI support and Compose style multi container apps as future work, so for now Docker in a VM remains the safer choice for production.</p>
<h2>3. Kubernetes on VMs: when you need orchestration</h2>
<p>Kubernetes runs apps across several nodes and keeps them in the state you declared: it restarts failed containers, spreads load and rolls out updates. On Proxmox, each node is a VM. Lightweight distributions like k3s run happily on small Alpine or Debian VMs; a single VM is enough to learn, two or three for a real cluster.</p>
<p><strong>Good for:</strong> many services, teams deploying often, apps that need scaling or zero downtime updates, or learning the platform most companies now run on.</p>
<p><strong>Watch out for:</strong></p>
<ul>
<li><strong>Complexity.</strong> More moving parts than Compose for a handful of apps.</li>
<li><strong>Node IPs are baked into the cluster's certificates.</strong> Changing them later is painful, so give nodes static addresses.</li>
<li><strong>State lives in two places:</strong> the cluster state (etcd, or SQLite on single node k3s) and the persistent volumes holding your data.</li>
</ul>
<h2>How to choose</h2>
<ul>
<li><strong>One small Linux service?</strong> LXC.</li>
<li><strong>An app that ships as a Docker image or Compose file?</strong> Docker in a VM.</li>
<li><strong>Lots of apps, frequent deploys, or you need self healing and scaling?</strong> Kubernetes on VMs.</li>
<li><strong>Not sure?</strong> Start with Docker in a VM. Moving a Compose stack to Kubernetes later is far easier than untangling Docker from an LXC container.</li>
</ul>
<h2>What this means for backup and DR</h2>
<ul>
<li><strong>LXC:</strong> protect the container's disks <em>and</em> its config together, keep data off bind mounts, and make sure the recovery host matches (storage IDs, bridges, ID mapping, Proxmox version).</li>
<li><strong>Docker in a VM:</strong> protect the VM. Images, volumes and Compose files all come with it.</li>
<li><strong>Kubernetes:</strong> protect every node VM as one group recovered to the same point in time, keep node IPs unchanged at the recovery site, and keep your manifests in Git as a last resort rebuild.</li>
</ul>
<p>Each approach is easy to protect once you know where its state lives. The mistakes come from treating all three as "just containers".</p>
<h2>Next up</h2>
<p>In the next article, we'll go hands on: protecting all three on Proxmox VE, step by step. We'll replicate an LXC container, a Docker Compose stack and a k3s cluster to a second site, fail them over, and check that every app and its data come back intact. Follow along so you don't miss it.</p>
]]></content:encoded></item><item><title><![CDATA[How much storage does KVM disaster recovery really need?]]></title><description><![CDATA[The most common DR sizing mistake is budgeting "one more copy of production". A real DR estate needs a live replica, a journal for point in time recovery…]]></description><link>https://blog.kvmdr.ai/how-much-storage-does-kvm-disaster-recovery-really-need</link><guid isPermaLink="true">https://blog.kvmdr.ai/how-much-storage-does-kvm-disaster-recovery-really-need</guid><category><![CDATA[proxmox]]></category><category><![CDATA[Linux]]></category><category><![CDATA[VirtualMachine]]></category><category><![CDATA[recovery]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Fri, 27 Nov 2026 22:32:53 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0cab4807575062c592b271/566fdc06-c0aa-48cb-8cd6-9bf174fed87c.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The most common DR sizing mistake is budgeting "one more copy of production". A real DR estate needs a live replica, a journal for point in time recovery, space to test recovery without disruption, and often a long term archive. Each grows with a different driver, so size them separately.</p>
<h2>The four buckets</h2>
<table>
<thead>
<tr>
<th>Bucket</th>
<th>Scales with</th>
</tr>
</thead>
<tbody><tr>
<td>1. Full replica</td>
<td>Primary used capacity</td>
</tr>
<tr>
<td>2. Retention journal</td>
<td>Daily change rate × retention days</td>
</tr>
<tr>
<td>3. Test space</td>
<td>VMs you test at the same time</td>
</tr>
<tr>
<td>4. Long term archive</td>
<td>Unique change per month × months kept</td>
</tr>
</tbody></table>
<p>Add about 1% for metadata, bitmaps and filesystem overhead.</p>
<h2>1. Full replica</h2>
<p>A complete copy at the recovery site, kept current by changed block replication. Size it on <strong>used</strong> capacity, not provisioned: thin volumes only consume what they hold.</p>
<p><code>replica ≈ used capacity × 1.0</code></p>
<h2>2. Retention journal</h2>
<p>To recover to "yesterday at 2pm" rather than just the latest state, you keep changed blocks for a window. Its size depends on change rate and days kept, not total capacity.</p>
<p><code>journal ≈ used capacity × daily change rate × retention days</code></p>
<p>Example: 10 TB × 3%/day × 7 days ≈ 2.1 TB (about 0.21×).</p>
<h3>Bandwidth comes from the same number</h3>
<p>If daily change were spread evenly over 24 hours:</p>
<p><code>minimum Mbps ≈ daily change GB × 8000 ÷ 86,400</code></p>
<p>10 TB × 3% = 300 GB/day → about 28 Mbps. Writes cluster in business hours, so allow headroom for peaks.</p>
<h2>3. Test space</h2>
<p>Non disruptive testing boots VMs in an isolated network while replication keeps running. Those test VMs need somewhere to write, and the method decides how much:</p>
<ul>
<li><strong>Snapshot based (LVM thin, ZFS, Ceph RBD):</strong> only what the test writes, typically a few percent of the tested VMs.</li>
<li><strong>Full test copy per VM:</strong> roughly the tested VMs' size again (about 1.05×).</li>
</ul>
<p>Don't size for testing every VM at once. It's the fastest way to overbuy.</p>
<h2>4. Long term archive</h2>
<p>With deduplication, the archive is one full copy plus each month's <strong>unique</strong> change, not a full copy per month:</p>
<p><code>monthly unique = used capacity × (1 − (1 − daily rate)^30)</code></p>
<p>Blocks that get rewritten repeatedly count once, so this is well below "rate × 30 days". Real results depend heavily on dedup and compression, so measure on your own data.</p>
<h2>Sanity check</h2>
<table>
<thead>
<tr>
<th>Setup</th>
<th>Total vs primary used capacity</th>
</tr>
</thead>
<tbody><tr>
<td>No archive</td>
<td>about 2.5× or less</td>
</tr>
<tr>
<td>With archive</td>
<td>about 3.5× or less</td>
</tr>
</tbody></table>
<p>Worked example: 10 TB primary, 3%/day, 7 day journal, testing half the estate at once with full test copies:</p>
<table>
<thead>
<tr>
<th>Bucket</th>
<th>Size</th>
</tr>
</thead>
<tbody><tr>
<td>Replica</td>
<td>10 TB</td>
</tr>
<tr>
<td>Journal</td>
<td>2.1 TB</td>
</tr>
<tr>
<td>Test space</td>
<td>5.3 TB</td>
</tr>
<tr>
<td>Overhead (1%)</td>
<td>0.2 TB</td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td><strong>≈ 17.6 TB (1.8×)</strong></td>
</tr>
</tbody></table>
<p>Well over the guide? Revisit retention days, archive months and how many VMs you test at once. Well under 2×? Check you haven't forgotten test space: it's the bucket most often missed.</p>
<p>If you want to play with the numbers, there's a free calculator at <a href="https://kvmdr.ai/storage-calculator.html">https://kvmdr.ai/storage-calculator.html</a></p>
]]></content:encoded></item><item><title><![CDATA[Proxmox VE vs oVirt: same KVM, very different disaster recovery]]></title><description><![CDATA[More teams are moving from oVirt or RHV to Proxmox VE, or running production on oVirt/OLVM with a Proxmox VE recovery site. Both run KVM/QEMU, so VMs move…]]></description><link>https://blog.kvmdr.ai/proxmox-ve-vs-ovirt-same-kvm-very-different-disaster-recovery</link><guid isPermaLink="true">https://blog.kvmdr.ai/proxmox-ve-vs-ovirt-same-kvm-very-different-disaster-recovery</guid><category><![CDATA[proxmox]]></category><category><![CDATA[Devops]]></category><category><![CDATA[KVM]]></category><category><![CDATA[VirtualMachine]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Fri, 27 Nov 2026 22:30:16 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0cab4807575062c592b271/3125ddb5-5db9-47e0-a468-be04db457ab7.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>More teams are moving from oVirt or RHV to Proxmox VE, or running production on oVirt/OLVM with a Proxmox VE recovery site. Both run KVM/QEMU, so VMs move between them with their data intact. But the management model is completely different, and that changes what DR can do and what you must plan for.</p>
<h2>1. Who starts the VM?</h2>
<ul>
<li><strong>Proxmox VE:</strong> every node has its own API and UI. There is no central manager; any node can create and start a VM on its own.</li>
<li><strong>oVirt / OLVM / RHV:</strong> a central engine owns every VM, disk and network in its database. A host's vdsm will not start a VM unless the engine tells it to.</li>
</ul>
<p>So <strong>recovery on Proxmox depends only on the DR host. Recovery on oVirt also depends on the engine being up.</strong></p>
<h2>2. The stacks side by side</h2>
<table>
<thead>
<tr>
<th></th>
<th>Proxmox VE</th>
<th>oVirt / OLVM / RHV</th>
</tr>
</thead>
<tbody><tr>
<td>Management</td>
<td>Per node API and UI</td>
<td>Central engine</td>
</tr>
<tr>
<td>VM definition</td>
<td>Config file in <code>/etc/pve/qemu-server</code></td>
<td>Engine PostgreSQL</td>
</tr>
<tr>
<td>QEMU control</td>
<td>QMP socket directly, no libvirt</td>
<td>vdsm via libvirt</td>
</tr>
<tr>
<td>Locking</td>
<td>pmxcfs cluster lock</td>
<td>sanlock on shared storage</td>
</tr>
<tr>
<td>Containers</td>
<td>LXC</td>
<td>None</td>
</tr>
<tr>
<td>VM names</td>
<td>Valid hostname characters only (no underscores)</td>
<td>Underscores allowed</td>
</tr>
</tbody></table>
<h2>3. Snapshots matter for DR</h2>
<p>On Proxmox, LVM thin and ZFS snapshots are created almost instantly at the storage layer and behave as independent block devices: you can open one, boot it and throw it away without touching the original disk.</p>
<p>On oVirt, a snapshot stacks a new qcow2 layer on top of the existing volume, so the VM's write target itself changes. The chain belongs to one VM in the engine database, and the SPM host creates it.</p>
<h2>4. When oVirt is the DR target</h2>
<ul>
<li><strong>No engine, no recovery.</strong> If the hosted engine is down, or ovirt-ha-broker isn't running, recovered VMs cannot be started.</li>
<li><strong>Disks must live in a storage domain.</strong> Pick the DR storage domain up front and size it for everything you protect.</li>
<li><strong>Testing needs extra space.</strong> A non disruptive DR test needs a test baseline on the oVirt side; on Proxmox it needs almost none.</li>
<li><strong>Map names and networks.</strong> Proxmox rejects underscores and uses Linux bridges such as <code>vmbr0</code>; decide how oVirt logical networks and vNIC profiles map across.</li>
</ul>
<h2>5. What works in each direction</h2>
<ul>
<li>VM replication, re IP and non disruptive testing work both ways.</li>
<li>LXC containers cannot move to oVirt, so protect them Proxmox to Proxmox only.</li>
<li>Failover to oVirt needs the engine running; failover to Proxmox needs only the DR host.</li>
</ul>
<h2>Takeaway</h2>
<p>Same hypervisor, different control plane. Before you design cross platform DR, decide where the engine lives, how names and networks map, and how much test space each side needs.</p>
<p>The full write up, with diagrams and a best practice checklist, is a free PDF: <a href="https://kvmdr.ai/docs/KVMDR_Cross_Hypervisor_DR_Part1.pdf">https://kvmdr.ai/docs/KVMDR_Cross_Hypervisor_DR_Part1.pdf</a></p>
]]></content:encoded></item><item><title><![CDATA[Protecting LXC and Kubernetes on Proxmox VE and oVirt: a practical DR guide]]></title><description><![CDATA[Containers do not fail over the way virtual machines do. "Container" covers two different workloads, and each needs its own protection plan: The platforms…]]></description><link>https://blog.kvmdr.ai/protecting-lxc-and-kubernetes-on-proxmox-ve-and-ovirt-a-practical-dr-guide</link><guid isPermaLink="true">https://blog.kvmdr.ai/protecting-lxc-and-kubernetes-on-proxmox-ve-and-ovirt-a-practical-dr-guide</guid><category><![CDATA[containers]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[VirtualMachine]]></category><category><![CDATA[Linux]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Fri, 27 Nov 2026 21:02:39 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0cab4807575062c592b271/9b8c561f-9adf-40f8-a538-cdc027f6104f.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Containers do not fail over the way virtual machines do. "Container" covers two different workloads, and each needs its own protection plan:</p>
<ul>
<li><strong>System containers (LXC):</strong> a full Linux system sharing the host kernel. Persistent, patched like a small server. Proxmox VE runs these natively beside its VMs.</li>
<li><strong>Application containers (Docker, Kubernetes):</strong> one app per image, replaced rather than patched, with state kept in volumes.</li>
</ul>
<p>The platforms differ too. Proxmox VE runs LXC beside VMs. oVirt and Oracle Linux Virtualization Manager (OLVM) manage VMs only, so every container there runs inside a VM.</p>
<h2>Five steps</h2>
<ol>
<li><strong>Map where each workload keeps its state.</strong> State you have not mapped is state you are not protecting.</li>
<li><strong>Choose the protection layer.</strong> VM or container level recovers whole systems fast; Kubernetes level backups add history and namespace restores. Most clusters need both.</li>
<li><strong>Group dependent workloads.</strong> An app and its database recover to one point in time.</li>
<li><strong>Prepare the recovery site.</strong> Containers depend on their hosts more than VMs do, and Kubernetes depends on its IP addresses.</li>
<li><strong>Test in an isolated network, on a schedule.</strong></li>
</ol>
<h2>Know where the state lives</h2>
<table>
<thead>
<tr>
<th>Workload</th>
<th>Where its state lives</th>
<th>What to protect</th>
</tr>
</thead>
<tbody><tr>
<td>LXC container</td>
<td>Root disk, mount points, container config</td>
<td>All volumes and the config, together</td>
</tr>
<tr>
<td>LXC bind or device mount</td>
<td>Host path outside Proxmox storage</td>
<td>The host path separately, or move data onto a volume</td>
</tr>
<tr>
<td>Docker in a VM</td>
<td>The VM disks</td>
<td>The VM</td>
</tr>
<tr>
<td>Kubernetes cluster</td>
<td>etcd, node VM disks, persistent volumes</td>
<td>Cluster state and volume data, to the same point</td>
</tr>
<tr>
<td>Volumes on external storage</td>
<td>NFS, Ceph or SAN outside the node VMs</td>
<td>The storage itself, or a Kubernetes level backup</td>
</tr>
</tbody></table>
<h2>LXC on Proxmox VE</h2>
<ol>
<li><strong>Keep volumes on snapshot capable storage</strong> (LVM thin, ZFS, Ceph RBD). Otherwise backups suspend or stop the container.</li>
<li><strong>Don't keep data you must recover on bind or device mounts.</strong> Proxmox never backs them up. Extra mount points are also excluded unless their Backup option is on.</li>
<li><strong>Protect the config with the data.</strong> It holds mount points, ID mapping, features, network and limits.</li>
<li><strong>Match the recovery hosts:</strong> same <code>/etc/subuid</code> and <code>/etc/subgid</code> ranges for custom ID mapping, same storage IDs, bridges and VLANs, same Proxmox VE major version.</li>
<li><strong>Plan for the shared kernel.</strong> Proxmox VE 9 removed cgroup v1; containers with old systemd (CentOS 7, Ubuntu 16.04) won't start. Move those into VMs first.</li>
<li><strong>Know what built in replication covers.</strong> Storage replication is local ZFS only, same cluster, scheduled (15 minutes by default), latest state only. It shortens node recovery but is not a second site or a history. <code>pve-zsync</code> can send to hosts outside the cluster.</li>
<li><strong>Keep copies with history at another site,</strong> for example Proxmox Backup Server synced to a second server.</li>
<li><strong>Recover dependent workloads together.</strong></li>
</ol>
<h2>Docker and Kubernetes on Proxmox VE</h2>
<p>Run application containers inside VMs. Proxmox recommends a QEMU VM for Docker; OCI image support in Proxmox VE 9.1 is still a technology preview, and Docker inside LXC is fragile across updates. In a VM, runtime, images and volumes all live on the VM disks, so the VM is the unit you protect.</p>
<h2>oVirt and OLVM</h2>
<p>Both manage VMs only, so Kubernetes always runs in VMs. On OLVM, Oracle Cloud Native Environment builds clusters from OLVM VMs through Cluster API, with an oVirt CSI driver for volumes. Node VMs use a fixed address range with a control plane VIP, so those addresses must carry over to the recovery site.</p>
<p>Two cautions: the oVirt CSI driver documented for OpenShift has no snapshot support (check your version), and OpenShift dropped RHV as a platform in 4.14.</p>
<h2>Kubernetes on either platform</h2>
<ol>
<li><strong>Protect the cluster as one unit.</strong> Recover all control plane and worker VMs to the same point. etcd members from different points cannot be mixed.</li>
<li><strong>Keep node IPs unchanged.</strong> They are baked into certificates and etcd config, and kubeadm has no supported way to change them. Use static addresses or DHCP reservations and carry the subnets over.</li>
<li><strong>Back up etcd on its own schedule.</strong> Encrypt snapshots and store them outside the cluster.</li>
<li><strong>Back up volume data separately.</strong> etcd holds no volume contents. Use a tool like Velero: CSI snapshots copied off cluster storage where supported, file system backup where not (less consistent, and no hostPath).</li>
<li><strong>Know where your CSI driver puts volumes.</strong> The Proxmox CSI plugin creates VM disks and moves them between node VMs; VM level protection must follow disks as they are added and removed.</li>
<li><strong>Make stateful apps consistent.</strong> Use the database's own replication, or quiesce related volumes together.</li>
<li><strong>Keep the cluster definition in Git</strong> so you can rebuild from scratch.</li>
<li><strong>Pause Cluster API during failover</strong> (<code>spec.paused</code> on the Cluster object) so health checks don't replace recovered nodes. Unpause once healthy.</li>
</ol>
<h2>Recovery order</h2>
<ol>
<li>Shared services: DNS, NTP, directory, storage, networks</li>
<li>Databases and other stateful dependencies</li>
<li>Kubernetes control plane VMs; wait for etcd quorum</li>
<li>Workers, then applications</li>
<li>Checks from the outside in: cluster, workloads, the application itself</li>
</ol>
<p>Test in an isolated network (recovered systems keep their addresses), on a schedule and after every major upgrade, and measure each test against your RPO and RTO. A recovery plan that has not been tested is a guess.</p>
<h2>Checklist</h2>
<ul>
<li><input disabled type="checkbox" /> Every workload's state is mapped, including bind mounts and persistent volumes</li>
<li><input disabled type="checkbox" /> Container volumes are on snapshot capable storage</li>
<li><input disabled type="checkbox" /> Nothing you must recover sits on bind or device mounts</li>
<li><input disabled type="checkbox" /> Recovery hosts match: subuid/subgid, storage IDs, bridges, VLANs, Proxmox version</li>
<li><input disabled type="checkbox" /> No container depends on cgroup v1</li>
<li><input disabled type="checkbox" /> Application containers run inside VMs</li>
<li><input disabled type="checkbox" /> Backups with history are kept at another site</li>
<li><input disabled type="checkbox" /> Kubernetes node VMs are protected as one group</li>
<li><input disabled type="checkbox" /> Node IPs carry over to the recovery site</li>
<li><input disabled type="checkbox" /> etcd snapshots are encrypted and stored outside the cluster</li>
<li><input disabled type="checkbox" /> Volume data is backed up off cluster storage</li>
<li><input disabled type="checkbox" /> The cluster definition is in Git</li>
<li><input disabled type="checkbox" /> Cluster API is paused during failover</li>
<li><input disabled type="checkbox" /> Recovery is tested in an isolated network on a schedule</li>
</ul>
<p>The full guide, with more detail on each step, is a free PDF: <a href="https://kvmdr.ai/docs/KVMDR_Container_Protection_Best_Practices.pdf">https://kvmdr.ai/docs/KVMDR_Container_Protection_Best_Practices.pdf</a></p>
]]></content:encoded></item><item><title><![CDATA[We open sourced dm-cdp: a device mapper target for block level continuous data protection on Linux]]></title><description><![CDATA[The KVMDR team has released dm-cdp, a device mapper target that records every write at the Linux block layer, under GPL v2. We have also started developing…]]></description><link>https://blog.kvmdr.ai/we-open-sourced-dm-cdp-a-device-mapper-target-for-block-level-continuous-data-protection-on-linux</link><guid isPermaLink="true">https://blog.kvmdr.ai/we-open-sourced-dm-cdp-a-device-mapper-target-for-block-level-continuous-data-protection-on-linux</guid><category><![CDATA[Linux]]></category><category><![CDATA[#DisasterRecovery ]]></category><category><![CDATA[proxmox]]></category><category><![CDATA[olvm]]></category><dc:creator><![CDATA[KVMDR AI]]></dc:creator><pubDate>Fri, 27 Nov 2026 16:50:26 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0cab4807575062c592b271/f65840e0-3dc2-4198-bb61-2cb61e0f4b1c.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Introduction</h2>
<p>The KVMDR team has released <strong>dm-cdp</strong>, a device mapper target that records every write at the Linux block layer, under GPL v2. We have also started developing <strong>kvmdr_fs</strong> on GitHub, a filesystem for sharing SAN LUNs across multiple KVM hosts.</p>
<p>This post explains how dm-cdp works and how to try it.</p>
<h2>What is dm-cdp?</h2>
<p>dm-cdp is a kernel module for in guest continuous data protection (CDP). Wrap a block device with the device mapper <code>cdp</code> target, and every write to that device becomes available as a journal.</p>
<ul>
<li><strong>Block level capture</strong>: every write that reaches the disk is recorded, whatever the filesystem.</li>
<li><strong>Ring plus bitmap</strong>: writes are drained through a ring buffer; if the ring overflows, the target falls back to a changed block bitmap so nothing is lost.</li>
<li><strong>Userspace tools</strong>: <code>tools/cdp-drain</code> pulls records from the ring, and <code>tools/cdp-apply</code> replays that stream onto another disk.</li>
<li><strong>DKMS support</strong>: <code>dkms.conf</code> is included, so the module rebuilds automatically after kernel updates.</li>
</ul>
<h2>Tested environments</h2>
<ul>
<li>Build verified (W=1, no warnings): 6.1 (Debian 12), 6.8 (Ubuntu 24.04), 6.12 (Debian 13)</li>
<li>Runtime verified: 6.1 (smoke test, overflow, point in time restore with fio, real virtual disk)</li>
</ul>
<p>It is still at the development stage, so we do not recommend it for production yet.</p>
<h2>Try it</h2>
<pre><code class="language-plaintext">make            # build module and tools (needs linux-headers for the running kernel)
make load       # insmod
tests/smoke.sh  # loop device: write, drain, replay, compare (run as root)
</code></pre>
<p>Full details of the target are in <code>Documentation/admin-guide/device-mapper/dm-cdp.rst</code>.</p>
<h2>kvmdr_fs (in development)</h2>
<p>A FUSE based filesystem for sharing iSCSI and FC LUNs across KVM hosts, the way NFS shares are used. It is at an early stage and licensed under GPL v3.</p>
<h2>Links</h2>
<ul>
<li>dm-cdp: <a href="https://github.com/ravi-gitprime/IO-Filter-Driver-for-Linux">https://github.com/ravi-gitprime/IO-Filter-Driver-for-Linux</a></li>
<li>kvmdr_fs: <a href="https://github.com/ravi-gitprime/kvmdr_fs">https://github.com/ravi-gitprime/kvmdr_fs</a></li>
</ul>
<p>Issues and pull requests are welcome. We collect these projects and our video guides on our community page: <a href="https://kvmdr.ai/community">https://kvmdr.ai/community</a></p>
]]></content:encoded></item></channel></rss>