# CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Repository Purpose Infrastructure documentation and management repository for the **KavCorp** Proxmox cluster - a 5-node homelab cluster running self-hosted services. This repository supports migration from Docker containers to Proxmox LXCs where appropriate. ## Cluster Architecture **Cluster Name**: KavCorp **Nodes**: 5 (pm1, pm2, pm3, pm4, elantris) **Network**: 10.4.2.0/24 **Primary Management Node**: pm2 (10.4.2.6) ### Node IP Mapping - pm1: 10.4.2.2 - pm2: 10.4.2.6 (primary for new LXC deployment) - pm3: 10.4.2.3 - pm4: 10.4.2.5 - elantris: 10.4.2.14 (largest node, 128GB RAM, ZFS storage) ## Common Commands ### Cluster Management ```bash # Access cluster (use pm2 as primary management node) ssh pm2 # View cluster status pvecm status pvecm nodes # List all VMs/LXCs across cluster pvesh get /cluster/resources --type vm --output-format json # List all nodes pvesh get /cluster/resources --type node --output-format json # List storage pvesh get /cluster/resources --type storage --output-format json ``` ### LXC Management ```bash # List LXCs on a specific node pct list # Get LXC configuration pvesh get /nodes//lxc//config pct config # Start/stop/restart LXC pct start pct stop pct restart # Execute command in LXC pct exec -- # Enter LXC console pct enter # Create LXC from template pct create