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:
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user