Some checks failed
Test / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2.5 KiB
2.5 KiB
Quick Template Creation - Follow These Steps
Step 1: Download Cloud Image (Already Done)
✅ Cloud image download script is ready
Step 2: Upload to Proxmox
-
Open Proxmox Web UI:
- URL: https://192.168.1.206:8006
- Login with root credentials
-
Navigate to Storage:
- Click: Datacenter → pve → Storage → local
- Click "Upload" button (top right)
-
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
-
Click "Create VM" (top right, purple button)
-
General Tab:
- VM ID: 9000
- Name: ubuntu-24.04-cloudinit
- Click "Next"
-
OS Tab:
- Select: "Do not use any media"
- Click "Next"
-
System Tab:
- Keep defaults (Q35, UEFI is fine)
- Click "Next"
-
Disks Tab:
- Delete the default disk (click X on the disk)
- Click "Add" → "Hard Disk"
- Storage: local
- Import from: Select the uploaded
.imgfile from dropdown - Disk size: 20GB (minimum, will be resized per VM later)
- Click "Add"
- Click "Next"
-
CPU Tab:
- Cores: 2
- Click "Next"
-
Memory Tab:
- Memory: 2048 MB
- Click "Next"
-
Network Tab:
- Bridge: vmbr0
- Model: VirtIO
- Click "Next"
-
Confirm Tab:
- Review settings
- Click "Finish"
Step 4: Configure Cloud-Init
-
Select VM 9000 in the left panel
-
Go to "Options" tab
-
Click "Cloud-Init" (or "QEMU Guest Agent" if Cloud-Init not shown)
-
Configure:
- User:
ubuntu - Password: (leave empty - we'll use SSH keys)
- SSH Public Keys: Paste your public key:
Copy the output and paste into the SSH Public Keys field
cat ~/.ssh/id_rsa.pub - Click "OK"
- User:
Step 5: Convert to Template
-
Right-click on VM 9000 in the left panel
-
Select "Convert to Template"
-
Confirm the conversion
-
Wait for conversion to complete (1-2 minutes)
Done!
Template is now ready. You can proceed with:
./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