aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdbx5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbx b/dbx
index e226c95..f9a4bd2 100755
--- a/dbx
+++ b/dbx
@@ -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"