Filesystem passthrough "virtio-9pfs" support in KVM in RHEL7 ?
Hi,
is this feature planned for RHEL7x KVM virtualization?
I checked the RHEL 7.0 and it's not there yet.
Thank you
Responses
Hi Karel,
RHEL only provides a subset of kernel modules and QEMU device models, that are well tested and that Red Hat will be able to support for the 10 years of product lifetime. Unfortunately, virtio-9pfs does not satisfy these requirements yet:
-
it is not very well documented upstream, to the extent that it's hard to understand what works and what doesn't; the IBM team who worked on it moved to other tasks.
-
it has a privileged (setuid) component that may require special care in order to support SELinux and sVirt; the component is also not very well documented, which makes this problem worse;
-
it is not supported on Windows guests.
As of RHEL7, the recommended general-purpose file service is NFS; if it is not enough for your purpose, raising a
ticket through your regular Red Hat support channels will make your needs known to the support, product management and development teams.
I don't know the reason why CONFIG_9P_FS was enabled in RHEL6 and disabled in RHEL7; this was done independent of the choice to disable virtio-9pfs, and I wasn't involved in that decision.
RHEL 7.3 just being released ... I realized that sharing files between hosts and guests using 9p ( http://www.linux-kvm.org/page/9p_virtio ) is still not possible. As 9p is a quite reliable and useful solution, I am wondering if there is a chance to have it included in the near future ?
Hi Christian,
my reply from two years ago is still valid, and explains why 9p is not as reliable as it seems. However, Red Hat is working on support for AF_VSOCK (virtio-vsock), so that NFS can be used between guests and hosts without interacting with e.g. the host and guest's firewall setup. In fact, this will be usable for more than just file system sharing.
We cannot really tell you yet when or if this will be included in RHEL, but for now there are copr packages for Fedora 24 at https://copr.fedorainfracloud.org/coprs/stefanha/vsock/packages/
You need at least the kernel (for both guest and host) and qemu-kvm packages.
For more info on how to run: http://qemu-project.org/Features/VirtioVsock
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
