Open polhaghverdian opened 1 year ago
I wanted to put this out here if anyone wants to use Virtio-fs instead of virtio-9p.
I'd like to make sure this works out of the box. Can you enlighten me what does the XSLT fix?
The provider supports the filesystem option. Is is just about the default driver?
@dmacvicar As far as I know, the provider has no support for Virtio-fs. So the only option is virtio-9p when you want to share a directory between libvirt host and guest. That's why I created this XSLT.
Of course, you still need to edit the attribute in the source element to whatever directory you want to pass to the guest and perhaps the target element attribute if you don't like the name "shared-from-host."
<xsl:element name="source">
<xsl:attribute name="dir">**/directory/shared/with/guest**</xsl:attribute>
</xsl:element>
<xsl:element name="target">
<xsl:attribute name="dir">**shared-from-host**</xsl:attribute>
</xsl:element>