# Temporary VM Deployment - Quick Start

Quick reference for deploying Besu nodes in a temporary VM.

## One-Command Deployment

```bash
# On Proxmox host
cd /opt/smom-dbis-138-proxmox

# Step 1: Create VM
sudo ./scripts/deployment/deploy-besu-temp-vm.sh

# Step 2: Copy configs (from Proxmox host)
./scripts/deployment/copy-configs-to-vm.sh /opt/smom-dbis-138

# Step 3: SSH into VM and start containers
ssh root@192.168.11.90
cd /opt/besu
docker compose up -d

# Step 4: Verify (from Proxmox host)
cd /opt/smom-dbis-138-proxmox
./scripts/validation/validate-besu-temp-vm.sh
```

## Container Management

```bash
# SSH into VM
ssh root@192.168.11.90

# View logs
docker compose logs -f

# Restart all
docker compose restart

# Stop all
docker compose stop

# Start all
docker compose start

# Check status
docker compose ps
```

## RPC Endpoints

- RPC-1: `http://192.168.11.90:8545`
- RPC-2: `http://192.168.11.90:8547`
- RPC-3: `http://192.168.11.90:8549`

## Migration to LXC

```bash
# Deploy LXC containers
cd /opt/smom-dbis-138-proxmox
sudo ./scripts/deployment/deploy-besu-nodes.sh

# Migrate data
sudo ./scripts/migration/migrate-vm-to-lxc.sh /opt/smom-dbis-138

# Verify and start services
for vmid in 1000 1001 1002 1003 1004; do
    pct exec $vmid -- systemctl start besu-validator
done
```

## Troubleshooting

```bash
# Check VM accessibility
ssh root@192.168.11.90 "docker ps"

# Check container logs
ssh root@192.168.11.90 "docker compose logs besu-validator-1"

# Validate deployment
./scripts/validation/validate-besu-temp-vm.sh
```

For detailed documentation, see [TEMP_VM_DEPLOYMENT.md](TEMP_VM_DEPLOYMENT.md).

