diff options
| -rwxr-xr-x | dbx | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -529,7 +529,8 @@ elif [ "$OS" = "Linux" ] && has_commands podman krun; then cat <<CONFIG >"$(krun_vmconfig)" { "cpus": $((cpus <= 32 ? (cpus + 1) / 2 : 16)), - "ram_mib": $(((mem + 1) / 2)) + "ram_mib": $(((mem + 1) / 2)), + "use_passt": 1 } CONFIG fi @@ -538,7 +539,9 @@ CONFIG --runtime=krun \ --name="$name" \ --hostname="$name" \ + --network="pasta:--no-map-gw,--map-guest-addr,none" \ --publish="127.0.0.1::22" \ + --sysctl="net.ipv4.ip_unprivileged_port_start=0" \ "$image" \ >/dev/null podman cp "$(ssh_id).pub" "$name:/etc/ssh/authorized_keys" |
