nixos/qemu-vm: add option for named network interfaces#233350
nixos/qemu-vm: add option for named network interfaces#233350RaitoBezarius merged 2 commits intoNixOS:masterfrom
Conversation
|
Awesome, please tag me for such PRs if you don't want specialized reviewers to miss them. :) |
|
Also, please format your commits according to the CONTRIBUTING guide (and same for the PR title). |
|
I will re-evaluate your whole PR over Hydra in https://hydra.nixos.org/jobset/nixos/python-test-refactoring |
a8ec846 to
91c113d
Compare
|
Thanks @RaitoBezarius! I have rebased and squashed my commits amending the commit title (and PR title) to match the guidelines. I'll also need to move my change to the release notes after 23.05 branches. |
|
Am I right in understanding that hydra hasn't run the PR yet? It looks to have unrelated evaluation errors. |
At the moment, I see |
ef4c4c1 to
aa6fe11
Compare
|
I don't understand why the manual check is failing. Does anyone have ideas? |
|
Potentially because I fucked up the initialization of the manual :-) |
|
If you can solve the conflicts, it'd be awesome. :) |
Adds a new option to the virtualisation modules that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` option is still supported for cases where the name of the network interface is irrelevant.
aa6fe11 to
8e58daa
Compare
|
Done @RaitoBezarius! |
I'm evaluating a recent nixos-unstable-small and we will evaluate this PR over https://hydra.nixos.org/jobset/nixos/python-test-refactoring to smoke out any regression. :) |
|
You should see one of your commit here: https://hydra.nixos.org/jobset/nixos/python-test-refactoring in ~30 mn. It will take some amount of time as the queue is currently full of other jobs and we don't have any priority. Let's rediscuss when we will have some new (non flaky) failures. |
|
Please review the 4 new failures here: https://hydra.nixos.org/eval/1795393 I think aarch64 are classical spurious failures, please double check the x86_64 one. If we are good, I think this is good to go. |
|
None of those failures seem related to this change. The x86_64 change is a timeout, and it looks like control never passed from the kernel to userspace (https://hydra.nixos.org/build/221399319/log). I think we are good. |
RaitoBezarius
left a comment
There was a problem hiding this comment.
(was already reviewed in the previous PR)
Adds a new option to the virtualisation modules that enables specifying explicitly named network interfaces in QEMU VMs. The existing virtualisation.vlans is still supported for cases where the name of the network interface is irrelevant.
This feature is useful for creating VMs with network configurations that exactly match the network configuration of real-world devices for more accurate SITL testing.
Note: This is PR #178290 which was later reverted in #213519 because it was causing some hydra tests to fail: #178290 (comment).
This PR includes a fix for the "sit" and "privacy" tests that failed after the PR was merged last time, and adds a new test to cover the situation where the MAC addresses in the QEMU VM contain a character in the range [a-f].
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)