Bug 1371223

Summary: [RFE] qemu-kvm-ev missing(?) virtio-9p-pci
Product: [oVirt] ovirt-engine Reporter: lejeczek <peljasz>
Component: RFEsAssignee: Scott Herold <sherold>
Status: CLOSED NOTABUG QA Contact: Gil Klein <gklein>
Severity: high Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, michal.skrivanek, pbonzini, peljasz, sbonazzo, tjelinek
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-09 09:55:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1121780    
Bug Blocks:    

Description lejeczek 2016-08-29 15:49:49 UTC
Description of problem:

I've tried docs + changelog, failed to find any mention thus wonder - is missing virtio-9p-pci an oversight?

regards

Version-Release number of selected component (if applicable):

qemu-kvm-ev-2.3.0-31.el7_2.10.1.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Juan Hernández 2016-08-29 16:07:30 UTC
Not sure what is the right product/component for this bug, but certainly not ovirt-engine-cli, that is only for the oVirt Engine command line interface. Can you explain where did you find this issue? In oVirt? in Red Hat Virtualization?

Comment 2 lejeczek 2016-08-30 08:06:43 UTC
yes, sorry, indeed, there was nothing qemu related on the list thus I thought "core" it should be.
I use oVirt yum repos and qemu-kvm-ev comes from there.

Is there a reson this device-driver was excluded?
One last thing, where do we find .src.rpm packages? I'll say having sources in yum repos would help users help devel, I think it's a serious oversight not to put them in repos.

Comment 3 Juan Hernández 2016-08-30 08:12:54 UTC
Sandro, any idea of what is the right person/product/component for this bug?

Comment 4 Yaniv Kaul 2016-08-30 09:36:08 UTC
(In reply to lejeczek from comment #2)
> yes, sorry, indeed, there was nothing qemu related on the list thus I
> thought "core" it should be.
> I use oVirt yum repos and qemu-kvm-ev comes from there.
> 
> Is there a reson this device-driver was excluded?

We've never had a use case for it, so we did not use it. What is the use case?

> One last thing, where do we find .src.rpm packages? I'll say having sources
> in yum repos would help users help devel, I think it's a serious oversight
> not to put them in repos.

Comment 5 lejeczek 2016-08-30 11:06:16 UTC
sorry, I'm not certain why you mean - use case - it seems mainstream approved, fedora's qemu has it.

Comment 6 Tomas Jelinek 2016-08-31 08:09:12 UTC
well, the fact qemu has it does not mean it makes to use it from ovirt standpoint. So what is the scenario in which you would use it? How would it help you?

Comment 7 lejeczek 2016-08-31 10:02:47 UTC
pass host's filesystem, its parts, to guests. I thought many used it. I see official kernels do not include modules just yet but kernels we can find in elrepo(and alternatives) have it. I think it would be great to have now, just a way to test for next versions of RHELs

Comment 8 Michal Skrivanek 2016-09-09 09:55:14 UTC
(In reply to lejeczek from comment #7)
> pass host's filesystem, its parts, to guests. I thought many used it. I see
> official kernels do not include modules just yet but kernels we can find in
> elrepo(and alternatives) have it. I think it would be great to have now,
> just a way to test for next versions of RHELs

It is not in RHEV's qemu-kvm-rhev which oVirt's qemu-kvm-ev is based on. We do not do any modification to the package, it is just rebuilt. Once virtio-9p-pci is included in qemu-kvm-rhev(i.e. when it is no longer being blacklisted) oVirt will have it as well - well, the hypervisor support only, obviously it would need some work to add it to UI of oVirt as well afterwards. 
Generally all QEMU functionality which are not deemed stable or properly tested is removed in RHEV. Feel free to request such a change through the RHEV product

Alternatively you can use oVirt on Fedora with Fedora's qemu-kvm which has it all (with all the unstable bits)

Comment 9 Michal Skrivanek 2016-09-09 09:58:52 UTC
you can see details of the qemu-kvm-rhev side in bug 1121780, hopefully we will get it eventually

Comment 10 Paolo Bonzini 2016-09-20 12:33:18 UTC
There are two main issues with 9p:

- driver support for guest operating systems. This is basically non-existant for any guest other than modern Linux. It is a lot of work to address that problem.  For ad-hoc user file sharing between host + guest, we are working on a USB device supporting the MTP protocol.  Upstream work on virtio-vsock is also in progress, which would allow you to use nfs over vsock in the guest (and nfsd over vsock in the host).

- virtio-9p-pci is hard to configure in a secure manner, and the defaults are not secure.  As far as I know it has never been audited and the fact that it includes a setuid binary is not reassuring either.  The simplest security model is pretty much okay, but it only allows the guest to access files that QEMU is permitted to access on host (with the host's uid/gid values) and only allows the guest to create files with QEMU's uid/gid.  This is somewhat useful for libvirt's qemu:///session URI but not for qemu:///system, which is what oVirt uses and which confines QEMU to the "qemu" user and group.