# Proxmox Host Password Configuration

**Date**: 2025-01-20  
**Status**: ✅ Configured and Verified  
**Source**: See [Physical Hardware Inventory](../config/physical-hardware-inventory.md) for authoritative reference

## Password Configuration

| Correct Hostname | Current Hostname | IP Address | Password | FQDN | Status |
|------------------|------------------|------------|----------|------|--------|
| ml110 | ml110 | 192.168.11.10 | `L@kers2010` | ml110.sankofa.nexus | ✅ Verified |
| r630-01 | pve ⚠️ | 192.168.11.11 | `password` | r630-01.sankofa.nexus | ✅ Verified |
| r630-02 | pve2 ⚠️ | 192.168.11.12 | `password` | r630-02.sankofa.nexus | ✅ Verified |
| r630-03 | r630-03 | 192.168.11.13 | `L@kers2010` | r630-03.sankofa.nexus | ✅ Verified |
| r630-04 | r630-04 | 192.168.11.14 | `L@kers2010` | r630-04.sankofa.nexus | ✅ Verified |

**Note:** ⚠️ indicates hostname mismatch. r630-01 currently uses hostname `pve` and r630-02 uses `pve2`, but should be `r630-01` and `r630-02` respectively.

## Configuration Files Updated

### 1. proxmox-hosts.conf
Location: `smom-dbis-138-proxmox/config/proxmox-hosts.conf`

Updated with password configuration:
```bash
PROXMOX_HOST_ml110_PASS="L@kers2010"
PROXMOX_HOST_pve_PASS="password"
PROXMOX_HOST_pve2_PASS="password"
```

### 2. Migration Scripts
- `scripts/migrate-containers-to-pve2.sh` - Uses ml110 password (migrations run from ml110)
- Migration commands (`pct migrate`) run from ml110 and handle node-to-node communication internally

## Verification

All hosts have been verified with connectivity tests:

```bash
# Test all hosts
./scripts/test-all-hosts-password.sh

# Or use updated test script
./scripts/test-proxmox-hosts-updated.sh
```

**Test Results**: ✅ All hosts pass all connectivity tests (SSH, API, Proxmox tools)

## Usage

### Direct SSH Access

```bash
# Connect to ml110 (Management Node)
ssh root@192.168.11.10
# or: ssh root@ml110.sankofa.nexus
# Password: L@kers2010

# Connect to r630-01 (currently hostname: pve)
ssh root@192.168.11.11
# or: ssh root@r630-01.sankofa.nexus
# Password: password

# Connect to r630-02 (currently hostname: pve2)
ssh root@192.168.11.12
# or: ssh root@r630-02.sankofa.nexus
# Password: password

# Connect to r630-03
ssh root@192.168.11.13
# or: ssh root@r630-03.sankofa.nexus
# Password: L@kers2010

# Connect to r630-04
ssh root@192.168.11.14
# or: ssh root@r630-04.sankofa.nexus
# Password: L@kers2010
```

### Using Scripts with Different Hosts

Most scripts use ml110 by default (PROXMOX_HOST=192.168.11.10), but you can override:

```bash
# Use specific host
PROXMOX_HOST=192.168.11.11 ./scripts/your-script.sh  # Use pve
PROXMOX_HOST=192.168.11.12 ./scripts/your-script.sh  # Use pve2
```

### Migration Scripts

Migration scripts connect to ml110 (cluster coordinator) and use ml110's password. The `pct migrate` command handles node-to-node migrations internally, so no direct password access to target nodes is needed.

```bash
# Migration runs from ml110, uses ml110 password
./scripts/migrate-containers-to-pve2.sh
```

## Security Notes

⚠️ **Important**: 
- Passwords are stored in configuration files
- Consider using SSH keys for better security
- For production, use Proxmox API tokens instead of passwords
- Keep configuration files secure and out of version control if possible

## Next Steps

1. ✅ Passwords configured and verified
2. ✅ All hosts accessible
3. ✅ Migration scripts ready
4. ⏳ Proceed with container migrations when ready

---

**Last Updated**: $(date)  
**Configuration Complete**: All hosts accessible and tested

