# Does Rocky Linux include 9p filesystem?

**URL:** <https://forums.rockylinux.org/t/does-rocky-linux-include-9p-filesystem/15821>\
**Category:** Rocky Linux Help & Support\
**Created:** [September 13, 2024, 6:53am UTC](https://forums.rockylinux.org/t/does-rocky-linux-include-9p-filesystem/15821 "2024-09-13T06:53:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vittory003](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/vittory003/32/4694_2.png) [@Vittory003](https://forums.rockylinux.org/u/Vittory003)\
**Post date:** [September 13, 2024, 9:58pm UTC](https://forums.rockylinux.org/t/does-rocky-linux-include-9p-filesystem/15821/3 "2024-09-13T21:58:54Z")

</div>

Hi , Since you mentioned you don’t necessarily need 9p, you can try an alternative like **Virtio-FS** , which is often faster and better integrated for sharing directories between the host and guest in modern virtualized environments.

### Steps to use Virtio-FS:

1. **Check host support:** Make sure that your host supports Virtio-FS. You should have the `virtiofsd` package installed on your host. On Rocky Linux, you can install it with:

```auto
sudo dnf install virtiofsd

```

1. **QEMU command:** When launching QEMU, use the parameter for Virtio-FS. For example:

```auto
-virtfs local,path=/path/to/host/directory,mount_tag=shared,security_model=none,id=fs0
-device vhost-user-fs-pci,chardev=char0,tag=shared
-chardev socket,id=char0,path=/var/run/vhost-user-fs.sock

```

Be sure to replace `/path/to/host/directory` with the actual path on your host.

1. **Modify cloud-init or fstab on the guest:** Update the mount configuration. If you are using `cloud-init`, the new mount point might look like this:

```auto
["shared", "/mnt/shared", "virtiofs", "defaults", "0", "0"]

```

Alternatively, you can manually add the entry in `/etc/fstab` on the guest:

```auto
shared /mnt/shared virtiofs defaults 0 0

```

1. **Start the VM:** Start the guest VM with the new configuration and check if you can successfully mount the shared directory using Virtio-FS.

This setup should provide a more stable and higher-performance solution than 9p for sharing directories between host and guest in modern virtual machines.

---

_[View the full topic](https://forums.rockylinux.org/t/does-rocky-linux-include-9p-filesystem/15821)._
