# Quick Template Creation - Follow These Steps ## Step 1: Download Cloud Image (Already Done) ✅ Cloud image download script is ready ## Step 2: Upload to Proxmox 1. **Open Proxmox Web UI:** - URL: https://192.168.1.206:8006 - Login with root credentials 2. **Navigate to Storage:** - Click: **Datacenter** → **pve** → **Storage** → **local** - Click **"Upload"** button (top right) 3. **Upload Image:** - Click **"Select File"** - Navigate to: `/tmp/ubuntu-24.04-server-cloudimg-amd64.img` - Or if downloaded to project: `./downloads/ubuntu-24.04-server-cloudimg-amd64.img` - Click **"Upload"** - Wait for upload to complete (2-3 minutes for ~2GB file) ## Step 3: Create VM from Image 1. **Click "Create VM"** (top right, purple button) 2. **General Tab:** - VM ID: **9000** - Name: **ubuntu-24.04-cloudinit** - Click **"Next"** 3. **OS Tab:** - Select: **"Do not use any media"** - Click **"Next"** 4. **System Tab:** - Keep defaults (Q35, UEFI is fine) - Click **"Next"** 5. **Disks Tab:** - **Delete the default disk** (click X on the disk) - Click **"Add"** → **"Hard Disk"** - Storage: **local** - **Import from:** Select the uploaded `.img` file from dropdown - Disk size: **20GB** (minimum, will be resized per VM later) - Click **"Add"** - Click **"Next"** 6. **CPU Tab:** - Cores: **2** - Click **"Next"** 7. **Memory Tab:** - Memory: **2048** MB - Click **"Next"** 8. **Network Tab:** - Bridge: **vmbr0** - Model: **VirtIO** - Click **"Next"** 9. **Confirm Tab:** - Review settings - Click **"Finish"** ## Step 4: Configure Cloud-Init 1. **Select VM 9000** in the left panel 2. **Go to "Options" tab** 3. **Click "Cloud-Init"** (or "QEMU Guest Agent" if Cloud-Init not shown) 4. **Configure:** - **User:** `ubuntu` - **Password:** (leave empty - we'll use SSH keys) - **SSH Public Keys:** Paste your public key: ```bash cat ~/.ssh/id_rsa.pub ``` Copy the output and paste into the SSH Public Keys field - Click **"OK"** ## Step 5: Convert to Template 1. **Right-click on VM 9000** in the left panel 2. **Select "Convert to Template"** 3. **Confirm** the conversion 4. **Wait** for conversion to complete (1-2 minutes) ## Done! Template is now ready. You can proceed with: ```bash ./scripts/recreate-vms-from-template.sh ``` ## Quick Reference - **Template ID:** 9000 - **Template Name:** ubuntu-24.04-cloudinit - **Cloud Image:** ubuntu-24.04-server-cloudimg-amd64.img - **Storage:** local - **Network:** vmbr0