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
This commit is contained in:
Claude
2025-11-08 19:44:20 +00:00
parent c20c49d5e0
commit 3d86677dd2

View File

@@ -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:"