(lots of flags)ĭrwxrwxr-x 3 vagrant vagrant 4096 Feb 13 09:12. Here's what the qemu process has: ps -elfyZ|grep qemu home/simon/Documents/shared_folder(/.*)? all files unconfined_u:object_r:virt_content_t:s0 What I currently have: semanage fcontext -l |grep simon I seem to be missin the correct label, and I also believe MCS is playing a role here. What I cannot figure out is what the correct label is. I also figured out I need to set an appropriate label for the shared folder on the host. When I set SELinux to permissive mode using setenforce 0, creating and changing files works fine. I know it is a SELinux labelling problem on the host. This results simply in "permission denied" as if i had no write permissions to the files, although ls -l in the guest confirms I should. Mounting the shared folder in guest works fine, I can see and read all files, but I cannot create new or change existing files. If you have ACLs turned on, there might be some things it can do by putting the VM userid in the extended attributes but it will still write as the regular user.I am trying to set up a shared folder using the 9p protocol for a kvm/qemu VM that runs on the user session (so the qemu process runs as me, not as root). If that directory is owned by root, unless world has write access, QEMU won't write. The VM process does not run as root (at least for using QEMU) and will write to that directory as a normal user. The key problem is that a "shared folder" on a local system has permissions. Of course, this is slow with all the layer overhead. Was someone had access to mount a shared folder with write access? I'm using virt-manager for configuration of the virtual machine and tried more or less all combinations without success. I try to mount a shared folder with write access via 9p file system since a few days. Posted: Thu 3:48 pm Post subject: qemu write access shared folders Gentoo Forums Forum Index Other Things Gentoo Gentoo Forums :: View topic - qemu write access shared folders
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |