virtiofsd is no longer installed by default in 24.04 when virt-manager/qemu is installed.

Bug #2054222 reported by ajgreeny
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
rust-virtiofsd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I installed virt-manager in Xubuntu-24.04 and it worked well with Ubuntu-Mate-24.04 as guest but trying to enable shared files and folders between host and guest failed with message that no virtiofsd was available.
Installing virtiofsd as a separate package was successful, allowing sharing as in previous versions of Xubuntu until Mantic 23.10.

Can the package virtiofsd which was not avaiable separately in previous versions be a dependency of virt-manager in order to make sharing much easier to enable?

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: virtiofsd 1.10.0-1
ProcVersionSignature: Ubuntu 6.6.0-14.14-generic 6.6.3
Uname: Linux 6.6.0-14-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: XFCE
Date: Sun Feb 18 10:26:06 2024
InstallationDate: Installed on 2024-01-13 (36 days ago)
InstallationMedia: Xubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240112)
SourcePackage: rust-virtiofsd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ajgreeny (ajg-charlbury) wrote :
affects: ubuntu → rust-virtiofsd (Ubuntu)
ajgreeny (ajg-charlbury)
summary: virtiofsd is no longer installed by defaul in 24.04 when virt-
- manager/qemu is installed. prior to 23.10 it was i believe a default
- install making fie sharing between host and guest much easier.
- virtiofsd is now a separate package but is not a dependency of the virt-
- manager or qemu packages which would make things much easier when
- wanting to share. Is this a possibility or are there reasons why it can
- not be installed by deafult as a dependency. Having installed the
- package manually with apt it works as it did before with no problems
- that I have seen.
+ manager/qemu is installed.
summary: - virtiofsd is no longer installed by defaul in 24.04 when virt-
+ virtiofsd is no longer installed by default in 24.04 when virt-
manager/qemu is installed.
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rust-virtiofsd (Ubuntu):
status: New → Confirmed
Revision history for this message
Mike Ferreira (mafoelffen) wrote :

My thoughts... virtiofsd was added upstream in Debian as a separate package, then appeared as the same in Mantic...

To make it act the same as before, shouldn't it be pulled in with another package as a depends so that users do not have to wonder why it isn't working? <--- Because they do not yet know that it now needs to e installed manually as an extra, instead of it being included?

Revision history for this message
Steffen McPrivacy (steffenmp) wrote :

I added the rust-virtiofsd package to my Ubuntu 24.04 install, which I upgraded from 22.04.
Still not working as virtiofsd cannot write a log file to var/log/libvirt/qemu even when folder is RW for everyone

Revision history for this message
Steffen McPrivacy (steffenmp) wrote :

Quick hint from investigating.
I installed the librust-virtiofsd-dev and virtiofsd as in 24.04 it is not standard anymore via apt.

Still VMs are not working.
Problem: for the older VM which had posix=on and flock=on in the virtiofsd section in the XML file I had to remove it --> Solved the issue

Problem: virtualfsd cannot write to /var/log/libvirt/qemu
Not working: rw right on the /var/log/libvirt/qemu
Disabling AppArmor for libvirtd -> reboot -> solved the problem but is only a workaround
Still, reason unknown as in the apparmor profile: "libvirtd" the permissions for virtiofsd are good:
  /usr/{lib,lib64,lib/qemu,libexec}/virtiofsd PUx,
is in and should include the new /usr/libexec/virtiofsd as ok to run.

As I am not an AppArmor specalist, no glue why this was the issue.
I hope my short analysis is helping you as with this I got my machines running

Revision history for this message
ajgreeny (ajg-charlbury) wrote :

I do not have rust-virtiofsd package, in fact it does not seem to be available in the repos though rust-virtiofsd-dev is available.
Sharing of folders works well on my Xubuntu-24.04 systems simply by installing the virtiofsd package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.