Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/libvirt: Unable to find a satisfying virtiofsd #187078

Closed
bbjubjub2494 opened this issue Aug 17, 2022 · 2 comments · Fixed by #277845
Closed

nixos/libvirt: Unable to find a satisfying virtiofsd #187078

bbjubjub2494 opened this issue Aug 17, 2022 · 2 comments · Fixed by #277845
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@bbjubjub2494
Copy link
Member

bbjubjub2494 commented Aug 17, 2022

Describe the bug

libvirt fails to start KVM domains when a virtiofs filesystem is present.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable libvirtd
  2. Run virt-install -n scratch --connect qemu:///system --os-variant nixos-unstable --memory 1536 --memorybacking=access.mode=shared --disk none --import --filesystem /nix/store/,nix-store,driver.type=virtiofs
  3. ERROR operation failed: Unable to find a satisfying virtiofsd

Expected behavior

It should "just work" for good UX

Additional context

This probably requires patching libvirt. I don't understand the codebase enough to do so.

I tried upgrading libvirt to 8.5.0, it doesn't seem to change anything.

There is a workaround:

Maintaining <binary path='/run/current-system/sw/bin/virtiofsd' xattr='on'> through all XML's seems ugly

Originally posted by @kvtb in #113172 (comment)

Notify maintainers

@fpletz @globin @lovesegfault @Kranzes

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.59, NixOS, 22.05 (Quokka), 22.05.20220815.3d47bba`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - nixpkgs: `/etc/nix/channels/nixos`
@bbjubjub2494 bbjubjub2494 added the 0.kind: bug Something is broken label Aug 17, 2022
@veprbl veprbl added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Aug 20, 2022
@cyounkins
Copy link
Contributor

Minor clarification: the tag needs a self-closing / so it's <binary path='/run/current-system/sw/bin/virtiofsd' xattr='on'/>, and it goes in the filesystem section.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/libvirt-session-mode-and-virtiofs/27857/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants