NixOS VM tests: Difference between revisions
imported>Teto adding clever's trick to fix some failing tests |
imported>Teto m adding some issues I met while working on multihoming issues: |
||
Line 23: | Line 23: | ||
Check the output for `malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /nix/store/1hkp2n6hz3ybf2rvkjkwrzgbjkrrakzl-update-users-groups.pl line 11`. | Check the output for `malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /nix/store/1hkp2n6hz3ybf2rvkjkwrzgbjkrrakzl-update-users-groups.pl line 11`. | ||
You should purge the state present in rm -rf /tmp/vm-state-<VM_NAME> | You should purge the state present in rm -rf /tmp/vm-state-<VM_NAME> | ||
=== Setting `virtualisation.vlans` does not create the expected interfaces == | |||
There are two sides to the problem: | |||
1. By default the qemu-vm setups a `user` based nic: virtualisation.qemu.networkingOptions. You need to override the option to get rid of this interface. | |||
2. As of this writing nixpkgs will generate interfaces starting from `eth1` (instead of `eth0`). |