From 3d86677dd2a9883c98f56e8a1da06dfee0e695bc Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 8 Nov 2025 19:44:20 +0000 Subject: [PATCH] fix: Add network configuration to install.sh - Create /etc/systemd/nspawn/aios.nspawn during installation - Set Network Private=no to share host network - Allows claude to connect to api.anthropic.com - Fixes EAI_AGAIN network error --- cfg/install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cfg/install.sh b/cfg/install.sh index a0c980b..d86ff55 100644 --- a/cfg/install.sh +++ b/cfg/install.sh @@ -11,6 +11,17 @@ tar xf "$TARBALL" mkdir -p /var/lib/machines mv root.x86_64 /var/lib/machines/$NAME +# Create aios.nspawn for network access +echo "Creating network configuration..." +mkdir -p /etc/systemd/nspawn +cat > /etc/systemd/nspawn/$NAME.nspawn <<'EOF' +[Exec] +Boot=yes + +[Network] +Private=no +EOF + echo "=== Installation complete ===" echo "" echo "Usage:"