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

No 'PCI' bus found for device 'virtio-rng-pci' #178

Closed
groulot opened this issue Jan 1, 2024 · 2 comments
Closed

No 'PCI' bus found for device 'virtio-rng-pci' #178

groulot opened this issue Jan 1, 2024 · 2 comments

Comments

@groulot
Copy link

groulot commented Jan 1, 2024

I run NixOS 23.11 in a virtualbox VM.

Following the documentation, an error happens when trying to run my-microvm. If did
nix registry add microvm github:astro/microvm.nix, nix flake init -t microvm and then nix run .#my-microvm

$ nix run .#my-microvm warning: Git tree '/home/groulot/infra' is dirty qemu-system-x86_64: -device virtio-rng-pci: No 'PCI' bus found for device 'virtio-rng-pci'

Removing the example 9p share bellow in the flake fixes the error. The MicroVM starts and runs correctly:
shares = [ { proto = "9p"; tag = "ro-store"; source = "/nix/store"; mountPoint = "/nix/.ro-store"; } ];

Is there anything I missed that I should have done to make it work ?

@astro
Copy link
Owner

astro commented Jan 1, 2024

Ouch, that is a consequence of disabling ACPI in c39a472 as required by #171.

Does the machine boot for you if you replace s/acpi=off/acpi=on/ in lib/runners/qemu.nix in your local checkout when running nix with --override-input microvm git+file:///.../microvm.nix?

@astro
Copy link
Owner

astro commented Jan 1, 2024

Actually, breaking PCI is worse than #171 so I'm reverting that fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants