Repository navigation
nixos/qemu-vm: virtiofsd requires shared memory - #563324
Merged
Merged
Conversation
jfly
force-pushed
the
fix-virtiofs-on-qemu
branch
from
September 14, 2026 20:32
138279e to
a3e0468
Compare
4 of 13 tasks
jfly
force-pushed
the
fix-virtiofs-on-qemu
branch
from
September 14, 2026 20:40
a3e0468 to
a1ce3ff
Compare
Erethon
approved these changes
Sep 14, 2026
Erethon
left a comment
Contributor
There was a problem hiding this comment.
As per the reasoning in #552774 (comment) this makes sense to me
eureka-cpu
approved these changes
Sep 14, 2026
Contributor
We recently switched to virtiofs for qemu-vms run on Linux (NixOS#552774). I suspect we only tested it with nixos tests, which just [happen to enable shared memory](https://github.com/NixOS/nixpkgs/blob/673028b7b1845fb74dab830518892c917634b95a/nixos/lib/testing/driver.nix#L259) for the ssh backdoor. However, for folks using qemu-vm.nix outside of nixos tests, they'll experience virtiofsd crashing with [some very obtuse messages](https://gitlab.com/virtio-fs/virtiofsd/-/work_items/127). Reported by @fricklerhandwerk in <NixOS#552774 (comment)>.
jfly
force-pushed
the
fix-virtiofs-on-qemu
branch
from
September 14, 2026 22:47
a1ce3ff to
0390e69
Compare
Contributor
Author
|
Thanks for the FYI, @zowoq. I've retargeted this PR to land in |
booxter
approved these changes
Sep 15, 2026
fricklerhandwerk
approved these changes
Sep 15, 2026
Contributor
|
Thanks so much @jfly for investigating that one! |
Member
|
This breaks our test-suite: |
Member
|
Fix in #565449 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We recently switched to virtiofs for qemu-vms run on Linux
(#552774). I suspect we
only tested it with nixos tests, which just happen to enable shared memory
for the ssh backdoor. However, for folks using qemu-vm.nix outside of nixos
tests, they'll experience virtiofsd crashing with some very obtuse
messages.
Reported by @fricklerhandwerk in
#552774 (comment).
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.