![]() ![]() I also changed the user and group values in /etc/libvirt/nf to root, like you did.īut I also changed the dynamic_ownership setting, because the description sounded promising: ![]() I know, that this is an old thread, but I just came across a similar problem and found a solution that works at least in parts. var/log/syslog and dmesg do not show anything suspicous. set user and group to root in /etc/libvirt/nf.set security to none in /etc/libvirt/nf.stopped apparmor service and called aa-complain (i hope that was effective).I can read files though $ cat /tmp/mnt/jail/throughthewindow Touch: cannot touch ‘/tmp/mnt/jail/letmeout’: Permission denied In the guest, if I try to write to anything on the shared filesystem, I get permission errors (irrespective of the used user): $ sudo -u www-data touch /tmp/mnt/jail/letmeout $ drwxr-xr-x 2 www-data www-data 4.0K Nov 11 08:34 jail $ drwxrwxr-x 4 $ drwxr-xr-x 24 root root 4.0K Nov 7 16:58. That also means that on the host, /data (which is ext4 partition, LVM on RAID btw) looks like $ ls -lha /data I use the www-data user as that will be the efftive user later on, and group and user ids have to match if p9 is used, afaiu. $ sudo mount -t 9p -otrans=virtio,rw,version=9p2000.L /data /tmp/mnt ![]() I attached the given folder like this: $ virsh edit guest-vm-nameįrom the guest I mount the filesystem as following: $ sudo -u www-data mkdir /tmp/mnt Both machines are relative vanilla installations. The system runs fine, but - as guest - I have issues writing to a shared folder ( ) that drive me nuts. An Ubuntu Server 14.04 Host hosts an Ubuntu Server 14.04 guest via libvirt/qemu-kvm.
0 Comments
Leave a Reply. |