# Use virtiofs in KVM virtual machines

**URL:** <https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814>\
**Category:** Installation & Configuration\
**Created:** [May 6, 2025, 2:25pm UTC](https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814 "2025-05-06T14:25:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dad/32/8466_2.png) [@DaD](https://forum.opennebula.io/u/DaD)\
**Post date:** [May 6, 2025, 2:25pm UTC](https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814/1 "2025-05-06T14:25:20Z")

</div>

Hello.

Does someone try to configure [virtiofs](https://libvirt.org/kbase/virtiofs.html) in OpenNebula virtual machines?

It looks like I can only do that with `RAW/DATA` 🤔

---

<div class="post-metadata">

**Author:** ![FrancJP](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/francjp/32/7690_2.png) [@FrancJP](https://forum.opennebula.io/u/FrancJP)\
**Post date:** [May 6, 2025, 4:13pm UTC](https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814/2 "2025-05-06T16:13:23Z")

</div>

Looks like it Daniel 😉

Let me ask the team to see if we can give you a proper answer

Cheers,

---

<div class="post-metadata">

**Author:** ![DaD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dad/32/8466_2.png) [@DaD](https://forum.opennebula.io/u/DaD)\
**Post date:** [May 7, 2025, 11:49am UTC](https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814/3 "2025-05-07T11:49:29Z")

</div>

Thanks.

For information, the use case is sharing some space between VMs, like the RWx volumes in kubernetes since we have a [MooseFS](https://gitlab.mim-libre.fr/EOLE/opennebula/addon-moosefs) storage.

I thought about a dedicated `DS_MAD` and `TM_MAD` to automatically provision a new storage space (a directory) in our MooseFS when creating a “disk” and linking it to the running VMS but I don’t think a “disk” can be multi-attached, right?

The next challenging thing is to build the right libvirt domain snippet but I don’t if OpenNebula is pluggable enough for that.

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [May 8, 2025, 9:49am UTC](https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814/4 "2025-05-08T09:49:46Z")

</div>

> [@DaD](#):
>
> … but I don’t think a “disk” can be multi-attached, right?

You’d probably missed the `PERSISTENT_TYPE` in the [image attributes](https://docs.opennebula.io/6.10/management_and_operations/references/img_template.html#template-attributes) 😉

BR,  
Anton

---

<div class="post-metadata">

**Author:** ![DaD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dad/32/8466_2.png) [@DaD](https://forum.opennebula.io/u/DaD)\
**Post date:** [May 9, 2025, 6:53am UTC](https://forum.opennebula.io/t/use-virtiofs-in-kvm-virtual-machines/13814/5 "2025-05-09T06:53:49Z")

</div>

The problem of using OpenNebula for foo long, I did not catch all the new features and missed that one [from 6.0](https://docs.opennebula.io/6.0/intro_release_notes/release_notes/whats_new.html#kvm). Or more probably, I noticed it, enjoyed it and forgot.

Thanks, I then I create a datasore with a custom DS, setting that `PERSISTENT_TYPE` and looking how to set the [`dir`](https://libvirt.org/formatdomain.html#hard-drives-floppy-disks-cdroms) source type, this should avoid my needs for virtioFS.

Thanks a lot for the reminder, I’m quite sure I just forgot since that exactly what we need 😉
