Some checks failed
Test / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
97 lines
2.6 KiB
Bash
Executable File
97 lines
2.6 KiB
Bash
Executable File
#!/bin/bash
|
|
source ~/.bashrc
|
|
# Manual Steps Guide - Interactive helper for remaining manual steps
|
|
|
|
# Colors
|
|
CYAN='\033[0;36m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
log_info() {
|
|
echo -e "${GREEN}[INFO]${NC} $1"
|
|
}
|
|
|
|
log_header() {
|
|
echo -e "${CYAN}========================================${NC}"
|
|
echo -e "${CYAN}$1${NC}"
|
|
echo -e "${CYAN}========================================${NC}"
|
|
}
|
|
|
|
clear
|
|
log_header "Manual Steps Guide - Complete Remaining Tasks"
|
|
echo ""
|
|
|
|
echo "This guide will help you complete the remaining manual steps."
|
|
echo ""
|
|
read -p "Press Enter to continue..."
|
|
|
|
log_header "Step 1: Verify VM Hardware Configuration"
|
|
echo ""
|
|
echo "1. Open Proxmox Web UI: https://192.168.1.206:8006"
|
|
echo "2. Login with: root@pam / (password from .env)"
|
|
echo "3. For each VM (100, 101, 102, 103):"
|
|
echo " a. Click on the VM"
|
|
echo " b. Go to 'Hardware' tab"
|
|
echo " c. Verify/Add:"
|
|
echo " - Network Device (should be virtio, bridge=vmbr0)"
|
|
echo " - Hard Disk (should exist)"
|
|
echo " - CD/DVD Drive (should have Ubuntu ISO)"
|
|
echo " d. Go to 'Options' tab"
|
|
echo " - Set Boot Order: CD-ROM first"
|
|
echo ""
|
|
read -p "Press Enter after verifying all VM hardware..."
|
|
|
|
log_header "Step 2: Install Ubuntu 24.04"
|
|
echo ""
|
|
echo "For each VM, install Ubuntu:"
|
|
echo ""
|
|
echo "VM 100 - cloudflare-tunnel (192.168.1.60):"
|
|
echo " 1. Open VM → Console"
|
|
echo " 2. Ubuntu installer should boot"
|
|
echo " 3. During installation, configure:"
|
|
echo " - IP: 192.168.1.60/24"
|
|
echo " - Gateway: 192.168.1.254"
|
|
echo " - DNS: 8.8.8.8"
|
|
echo " 4. Create user account (remember for SSH)"
|
|
echo ""
|
|
read -p "Press Enter after installing Ubuntu on VM 100..."
|
|
|
|
echo ""
|
|
echo "VM 101 - k3s-master (192.168.1.188):"
|
|
echo " - IP: 192.168.1.188/24"
|
|
echo " - Gateway: 192.168.1.254"
|
|
read -p "Press Enter after installing Ubuntu on VM 101..."
|
|
|
|
echo ""
|
|
echo "VM 102 - git-server (192.168.1.121):"
|
|
echo " - IP: 192.168.1.121/24"
|
|
echo " - Gateway: 192.168.1.254"
|
|
read -p "Press Enter after installing Ubuntu on VM 102..."
|
|
|
|
echo ""
|
|
echo "VM 103 - observability (192.168.1.82):"
|
|
echo " - IP: 192.168.1.82/24"
|
|
echo " - Gateway: 192.168.1.254"
|
|
read -p "Press Enter after installing Ubuntu on VM 103..."
|
|
|
|
log_header "Step 3: Verify Installation"
|
|
echo ""
|
|
echo "Running verification script..."
|
|
./scripts/check-vm-status.sh
|
|
echo ""
|
|
read -p "Press Enter to continue..."
|
|
|
|
log_header "Step 4: Automated Service Setup"
|
|
echo ""
|
|
echo "Running automated setup for all services..."
|
|
./scripts/automate-all-setup.sh
|
|
echo ""
|
|
|
|
log_header "Setup Complete!"
|
|
echo ""
|
|
log_info "All services should now be configured."
|
|
echo "Check the output above for any issues."
|
|
|