[Pkg-libvirt-maintainers] Bug#781283: Bug#781283: libvirt-bin: Permission denied with 9p file system

Guido Günther agx at sigxcpu.org
Tue Mar 31 08:25:48 UTC 2015


On Fri, Mar 27, 2015 at 04:49:43PM +0000, Boylan, Ross wrote:
> Thanks for the fast response.
> 
> The UID's match on host and guest.  Notice that the problems with directory listing occurred as root (UID 0).  The copy problem was as ross.  Most of the files are owned by ross (UID 1000).
> 
> Eventually,  I'll want to operate from the guest with a UID not present on the host, although I could add it to the host if necessary.
> 
> Although it's possible this is a KVM issue, a significant number of similar problems reported on the net were the result of libvirt, usually the security framework (selinux or apparmor--are either relevant for Debian?), but sometimes also the exact mode choices.  The fact that I can't access host files as root from the guest, with libvirt daemon running as root (I think) on the host suggests something is getting in the way.  The apparent logic is "group and  other have no access rights to the file; file's owner UID = 1000; accessing process UID=0; no acesss."

Using accessmode=mapped works fine if the directory/files are writeable
by the user running libvirt (libvirt-qemu by default). For passthrough
run kvm/qemu as root.
Proxy filesystem is currently not supported by libvirt.
Cheers,
 -- Guido



More information about the Pkg-libvirt-maintainers mailing list