[Pkg-rust-maintainers] Bug#1109051: virtiofsd: Unable to share folders to qemu:///session VMs with virtiofsd: Connection refused to socket

Gianpaolo Cugola gianpaoloc at gmail.com
Thu Jul 10 18:36:11 BST 2025


Dear Michael,
I spent hours investigating the problem before giving up and submitting the
bug report, in the hope that someone could help. Given the error message,
as you have done, my search focused on some kind of permission issue, but I
was not able to find anything.

Then, after submitting the bug, I tried a different route discovering that
actually virtiofsd crashed just after being launched by libvirt. I found a
log that sent me in the right direction and... voila: problem solved. It
was a dependency issue. My install was missing the uidmap package that,
apparently, is required when virtiofsd is launched by a standard user
(because, yes, libvirt, when used with the session channel, launches
virtiofsd using the same user that runs virt-manager).

Given these premises, the bug report can be closed but I suggest adding a
debian "recommends" dependency between the virtiofsd and the uidmap
package, to avoid similar issues in the future.

Regards
  G.


On Thu, Jul 10, 2025 at 3:13 PM Michael Tokarev <mjt at tls.msk.ru> wrote:

>
> I've no idea here, but it feels like it's a libvirt bug or it doesn't
> work at all.  virtiofsd needs root privileges.  Whenever libvirt can
> provide such privileges in qemu user session is a question to libvirt.
> There's nothing I can do here from virtiofsd PoV.
>
> /mjt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20250710/b561bfeb/attachment-0001.htm>


More information about the Pkg-rust-maintainers mailing list