Files
proxmox/docs/archive/DEPLOYMENT_SOLUTION.md

1.3 KiB

Deployment Solution

Issue

Deployment scripts require pct command which is only available on Proxmox host.

Solution: Deploy to Proxmox Host

Quick Solution (Automated)

./scripts/deploy-to-proxmox-host.sh

This script will:

  1. Copy deployment package to Proxmox host (192.168.11.10)
  2. SSH into the host
  3. Run deployment automatically

Manual Solution

# 1. Copy to Proxmox host
scp -r smom-dbis-138-proxmox root@192.168.11.10:/opt/

# 2. SSH and deploy
ssh root@192.168.11.10
cd /opt/smom-dbis-138-proxmox
chmod +x scripts/deployment/*.sh install/*.sh
./scripts/deployment/deploy-all.sh

Why This is Needed

The pct command (Proxmox Container Toolkit) is only available on Proxmox hosts. It's required for:

  • Creating containers
  • Uploading files to containers (pct push)
  • Executing commands in containers (pct exec)

Alternative: Remote API Deployment

A remote deployment script is available but has limitations:

  • Container creation: Works via API
  • File upload: ⚠️ Requires local access
  • Command execution: Works via API (with limitations)

See docs/REMOTE_DEPLOYMENT.md for details.

Use the automated script:

./scripts/deploy-to-proxmox-host.sh

This is the simplest and most reliable method.