git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/containers: explicitly set link up on host for extraVeths
commit8a8bf886b5df5520de8ccf9e745df3f8a0a855c4 authorelseym <elseym@me.com> dateFri 11 Jan 2019, 19:50 (8 years ago) parent626233e
2 files changed+3
nixos/modules/virtualisation/containers.nix+2 nixos/tests/containers-extra_veth.nix+1
nixos/modules/virtualisation/containers.nix+2
@@ -188,6 +188,8 @@ let
188188 ''
189189 else
190190 ''
191+ echo "Bring ${name} up"
192+ ip link set dev ${name} up
191193 # Set IPs and routes for ${name}
192194 ${optionalString (cfg.hostAddress != null) ''
193195 ip addr add ${cfg.hostAddress} dev ${name}
nixos/tests/containers-extra_veth.nix+1
@@ -13,6 +13,7 @@ import ./make-test.nix ({ pkgs, ...} : {
1313 virtualisation.memorySize = 768;
1414 virtualisation.vlans = [];
1515
16+ networking.useDHCP = false;
1617 networking.bridges = {
1718 br0 = {
1819 interfaces = [];