Skip to content

Commit 36a1d87

Browse files
committed
alioth: update parameters syntax
1 parent ef42cff commit 36a1d87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/runners/alioth.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ in {
1717
else builtins.concatStringsSep " " (
1818
[
1919
"${pkgs.alioth}/bin/alioth" "run"
20-
"--mem-size" "${toString mem}M"
20+
"--memory" "size=${toString mem}M,backend=memfd"
2121
"--num-cpu" (toString vcpu)
2222
"-k" (lib.escapeShellArg "${kernel}/${pkgs.stdenv.hostPlatform.linux-kernel.target}")
2323
"-i" initrdPath
@@ -43,7 +43,7 @@ in {
4343
builtins.concatMap ({ type, id, mac, ... }:
4444
if type == "tap"
4545
then [
46-
"--net" (lib.escapeShellArg "if_name=${id},mac=${mac},queue_pairs=${toString vcpu}")
46+
"--net" (lib.escapeShellArg "if_name=${id},mac=${mac},queue_pairs=${toString vcpu},mtu=1500")
4747
]
4848
else throw "interface type ${type} is not supported by alioth"
4949
) interfaces

0 commit comments

Comments
 (0)