<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Libvirt on Panic! At The Terminal</title>
    <link>https://blog.nousiainen.xyz/tags/libvirt/</link>
    <description>Recent content in Libvirt on Panic! At The Terminal</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 19 Jul 2025 21:03:07 +0300</lastBuildDate>
    <atom:link href="https://blog.nousiainen.xyz/tags/libvirt/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Restore a Broken KVM VM from Backup</title>
      <link>https://blog.nousiainen.xyz/docs/kvm-vm-restore-from-backup/</link>
      <pubDate>Fri, 18 Jul 2025 20:00:00 +0300</pubDate>
      <guid>https://blog.nousiainen.xyz/docs/kvm-vm-restore-from-backup/</guid>
      <description>&lt;h1 id=&#34;how-to-restore-a-broken-kvm-vm-from-backup&#34;&gt;&#xA;  How to Restore a Broken KVM VM from Backup&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#how-to-restore-a-broken-kvm-vm-from-backup&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;Sometimes things go wrong with virtual machines — maybe a filesystem corruption or a bad update. When that happens, restoring from a backup is your best friend.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s how I restored my broken KVM VM disk image using weekly backups stored on a NAS share.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-situation&#34;&gt;&#xA;  The situation&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#the-situation&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;I have a VM called &lt;code&gt;runner.home.arpa&lt;/code&gt; running on KVM, and its disk got corrupted. The VM disk images live at &lt;code&gt;/var/lib/libvirt/images/&lt;/code&gt;, and my backups are stored on a NAS mounted at &lt;code&gt;/mnt/backups/runner.home.arpa/&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Automated KVM VM Provisioning with Ansible and OSBuild on RHEL9</title>
      <link>https://blog.nousiainen.xyz/docs/automated-vm-provisioning-with-ansible-and-osbuild/</link>
      <pubDate>Thu, 03 Jul 2025 14:00:00 +0300</pubDate>
      <guid>https://blog.nousiainen.xyz/docs/automated-vm-provisioning-with-ansible-and-osbuild/</guid>
      <description>&lt;h1 id=&#34;automated-kvm-vm-provisioning-with-ansible-and-osbuild-on-rhel9&#34;&gt;&#xA;  Automated KVM VM Provisioning with Ansible and OSBuild on RHEL9&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#automated-kvm-vm-provisioning-with-ansible-and-osbuild-on-rhel9&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;&#xA;  Introduction&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#introduction&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;When I started looking into automating my homelab VM provisioning, I was surprised by the lack of examples combining Ansible with OSBuild for KVM environments. Not many tutorials focus on KVM, so I wanted something that used Red Hat&amp;rsquo;s tooling - as I run a RHEL homelab.&lt;/p&gt;&#xA;&lt;p&gt;I used to provision my homelab virtual machines by hand and eventually I got tired of doing it since I like to tinker around a lot and constantly add new VMs. So, I decided to automate the process using the combination of Ansible and OSBuild.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
