Package: virtiofsd
Version: 1.13.0-4
Severity: important

Dear Maintainer,

Since moving to rust, the UID/GID mapping no longer works, despite what the changelog says.

$ virsh start debian11_pp
error: Failed to start domain 'debian11_pp'
error: internal error: process exited while connecting to monitor:
2025-01-30T23:37:29.549600Z qemu-system-x86_64: -chardev socket,id=chr-vu-fs0,path=/home/simon/.config/libvirt/qemu/lib/domain-1-debian11_pp/fs0-fs.sock: Failed to connect to
'/home/simon/.config/libvirt/qemu/lib/domain-1-debian11_pp/fs0-fs.sock':
Connection refused

The last working version is virtiofsd_1.10.1-1+b3_amd64.deb

The config from virt-manager that previously worked is:

        <filesystem type="mount" accessmode="passthrough">
          <driver type="virtiofs"/>
          <idmap>
            <uid start="0" target="501" count="1"/>
            <uid start="501" target="501" count="1"/>
            <gid start="0" target="501" count="1"/>
            <gid start="501" target="501" count="1"/>
          </idmap>
          <source dir="/ssd/shared"/>
          <target dir="shared"/>
<address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
        </filesystem>

If I remove the idmap stanza, the VM starts and sharing works, however mapping doesn't.

/etc/subuid and suibgid both have the following: simon:10000:65536

I noticed in the 1.13.0-3 changelog it says "Reinstate host/guest UID/GID translation code and functionality depending on btree-range-map" but there is no package btree-range-map in Sid at least, only some rust-devel package, and it's not pulled in during dist-upgrade.

Is there some new syntax that is incompatible with libvirt?

I'm using a user://session not system.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.10-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages virtiofsd depends on:
ii  libc6        2.40-6
ii  libcap-ng0   0.8.5-4
ii  libgcc-s1    14.2.0-16
ii  libseccomp2  2.5.5-2

virtiofsd recommends no packages.

virtiofsd suggests no packages.

-- no debconf information


--
Simon John

Reply via email to