- Added GPU passthrough configuration for NVIDIA GTX 1070 - Dynamic hostpci block with OVMF BIOS and q35 machine type - EFI disk support when GPU is enabled - Configurable via enable_gpu_passthrough and gpu_pci_id variables - Added NFS mount support for Proxmox host media directories - Mounts 11 media directories from Proxmox host to VM - Configurable source path and mount point - Persistent mounts via /etc/fstab - NFS client installation via cloud-init - Added multi-OS support (Ubuntu, AlmaLinux, Debian) - Separate cloud-init templates for Ubuntu and AlmaLinux - OS-specific package installation (apt vs dnf) - OS type validation via variable - Updated terraform.tfvars.example with new configuration options - Updated README.md with comprehensive documentation: - AlmaLinux cloud template creation steps - GPU passthrough setup for AMD Ryzen + NVIDIA - NFS server configuration on Proxmox host - Troubleshooting for GPU and NFS issues
65 lines
1.8 KiB
Text
65 lines
1.8 KiB
Text
# Proxmox Connection
|
|
pm_api_url = "https://proxmox.local:8006"
|
|
pm_api_token_id = "root@pam!terraform"
|
|
pm_api_token_secret = "your-secret-here"
|
|
pm_tls_insecure = true
|
|
|
|
# Proxmox Configuration
|
|
proxmox_node = "pve"
|
|
template_vm_id = 9000
|
|
storage = "local-lvm"
|
|
network_bridge = "vmbr0"
|
|
|
|
# VM Configuration
|
|
vm_name = "docker-host"
|
|
vm_cores = 4
|
|
vm_memory = 8192
|
|
disk_size = "50"
|
|
|
|
# Network Configuration
|
|
vm_ip_address = "dhcp" # Or "192.168.1.100" for static
|
|
vm_ip_netmask = 24
|
|
vm_gateway = "192.168.1.1"
|
|
|
|
# User Configuration
|
|
vm_username = "ubuntu"
|
|
vm_password = "changeme_please_set_secure_password"
|
|
vm_ssh_keys = [
|
|
"ssh-rsa AAAAB3NzaC1yc2E... your-key-here"
|
|
]
|
|
|
|
# Optional
|
|
vm_timezone = "America/Los_Angeles"
|
|
clone_homelab_repo = true
|
|
github_username = "efigueroa"
|
|
|
|
# Operating System
|
|
# Options: "ubuntu", "almalinux", "debian"
|
|
vm_os_type = "almalinux"
|
|
|
|
# GPU Passthrough (NVIDIA GTX 1070)
|
|
# Enable GPU passthrough for services like Jellyfin, Ollama, Immich
|
|
# Requires: AMD IOMMU enabled in Proxmox host GRUB
|
|
# Set to true to enable GPU passthrough
|
|
enable_gpu_passthrough = false
|
|
|
|
# GPU PCI ID - Find with: lspci | grep -i nvidia
|
|
# Example: 0000:01:00 (use .0 for GPU, .1 for audio)
|
|
gpu_pci_id = "0000:01:00"
|
|
|
|
# Media Directory Mounts via NFS
|
|
# Mount media directories from Proxmox host to VM
|
|
# Requires NFS server configured on Proxmox host
|
|
mount_media_directories = true
|
|
|
|
# Proxmox host IP for NFS mounts (not the API URL)
|
|
# This is the IP address the VM will use to connect to NFS
|
|
proxmox_host_ip = "192.168.1.1"
|
|
|
|
# Source path on Proxmox host for media directories
|
|
# Subdirectories: audiobooks, books, comics, complete, downloads,
|
|
# homemovies, incomplete, movies, music, photos, tv
|
|
media_source_path = "/data/media"
|
|
|
|
# Mount path in VM (where media directories will be accessible)
|
|
media_mount_path = "/media"
|