<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Libvirt Virtiofs on A Random Walk Down Tech Street</title>
    <link>https://dustymabe.com/tags/libvirt-virtiofs/</link>
    <description>Recent content in Libvirt Virtiofs on A Random Walk Down Tech Street</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 08 Sep 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://dustymabe.com/tags/libvirt-virtiofs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using virtiofs with libvirt/virt-install</title>
      <link>https://dustymabe.com/2023/09/08/using-virtiofs-with-libvirt/virt-install/</link>
      <pubDate>Fri, 08 Sep 2023 00:00:00 +0000</pubDate>
      <guid>https://dustymabe.com/2023/09/08/using-virtiofs-with-libvirt/virt-install/</guid>
      <description>&lt;p&gt;Recently we&#xA;&lt;a href=&#34;https://github.com/coreos/coreos-assembler/pull/3428&#34;&gt;switched&lt;/a&gt;&#xA;our 9p filesystem usage in CoreOS Assembler to use&#xA;&lt;a href=&#34;https://virtio-fs.gitlab.io/&#34;&gt;virtiofs&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is the technology behind a lot of new lightweight container VM&#xA;technology like &lt;a href=&#34;https://katacontainers.io/&#34;&gt;kata-containers&lt;/a&gt; and&#xA;&lt;a href=&#34;https://github.com/containers/libkrun&#34;&gt;libkrun&lt;/a&gt;, but can also be&#xA;easily used with &lt;a href=&#34;https://libvirt.org/&#34;&gt;libvirt&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;running-as-non-root-using-qemusession&#34;&gt;Running as non-root using qemu:///session&lt;/h2&gt;&#xA;&lt;p&gt;Currently the virtiofs integration doesn&amp;rsquo;t work as non-root via a&#xA;&lt;code&gt;qemu:///session&lt;/code&gt; connection. There is an oustanding RFE for this&#xA;&lt;a href=&#34;https://gitlab.com/libvirt/libvirt/-/issues/535&#34;&gt;upstream&lt;/a&gt;&#xA;and &lt;a href=&#34;https://bugzilla.redhat.com/show_bug.cgi?id=2034630&#34;&gt;downstream&lt;/a&gt;&#xA;in RHEL that can be followed for updates.&lt;/p&gt;&#xA;&lt;h2 id=&#34;virtiosfs-with-virt-install&#34;&gt;virtiosfs with virt-install&lt;/h2&gt;&#xA;&lt;p&gt;I typically use &lt;code&gt;virt-install&lt;/code&gt; to automate creation of my libvirt virtual&#xA;machines. Using &lt;code&gt;virt-install&lt;/code&gt; we can use the &lt;code&gt;--filesystem=&lt;/code&gt; and&#xA;&lt;code&gt;--memorybacking=&lt;/code&gt; parameters to get what we want. The&#xA;&lt;code&gt;--memorybacking=&lt;/code&gt; parameter will add shared memory to the instance,&#xA;which is &lt;a href=&#34;https://libvirt.org/kbase/virtiofs.html#other-options-for-vhost-user-memory-setup&#34;&gt;required&lt;/a&gt;&#xA;for virtiofs.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
