Compare commits

..

2 Commits

Author SHA1 Message Date
977d578d04 fix: Reduce VM RAM to 2GB and improve screen handling
Updates test-iso.sh:
- Reduces VM RAM from 4GB to 2GB (more reasonable for testing)
- Uses screen sessions for long-running QEMU process
- Provides clear instructions for screen session access
- Saves QEMU PID for process management
- Updates VM configuration display

Screen session: football-iso-test
Access: screen -r football-iso-test

💘 Generated with Crush

Assisted-by: Gemini 2.5 Flash via Crush <crush@charm.land>
2026-01-20 11:39:24 -05:00
ddda3640cf fix: Update ISO download to Debian 13.0.0 release
Updates ISO download URL to use:
- Primary: Debian 13.0.0 released ISO
- Fallback: Testing branch ISO
Removes daily builds which are too unstable

💘 Generated with Crush

Assisted-by: Gemini 2.5 Flash via Crush <crush@charm.land>
2026-01-20 11:37:26 -05:00
2 changed files with 14 additions and 17 deletions

View File

@@ -35,18 +35,14 @@ docker run --rm \
echo "Downloading Debian 13 Trixie Netboot ISO..." echo "Downloading Debian 13 Trixie Netboot ISO..."
cd /build/iso-tmp cd /build/iso-tmp
# Use daily builds for Debian 13 (trixie) since stable ISO not available yet # Download Debian 13 (trixie) released ISO
wget -q --show-progress \ wget -q --show-progress \
-O debian-trixie-amd64-netinst.iso \ -O debian-trixie-amd64-netinst.iso \
https://cdimage.debian.org/debian-cd/daily-builds/amd64/iso-cd/debian-daily-amd64-netinst.iso || \ https://cdimage.debian.org/debian-cd/13.0.0/amd64/iso-cd/debian-13.0.0-amd64-netinst.iso || \
# Fallback to testing # Fallback to testing if 13.0.0 not available
wget -q --show-progress \ wget -q --show-progress \
-O debian-trixie-amd64-netinst.iso \ -O debian-trixie-amd64-netinst.iso \
https://cdimage.debian.org/debian-cd/testing/amd64/iso-cd/debian-testing-amd64-netinst.iso || \ https://cdimage.debian.org/debian-cd/testing/amd64/iso-cd/debian-testing-amd64-netinst.iso
# Fallback to current stable (bookworm/sid)
wget -q --show-progress \
-O debian-trixie-amd64-netinst.iso \
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-sid-amd64-netinst.iso
echo "" echo ""
echo "✅ ISO downloaded" echo "✅ ISO downloaded"

View File

@@ -82,7 +82,7 @@ echo "[3/4] Booting VM from ISO..."
echo "" echo ""
echo "VM Configuration:" echo "VM Configuration:"
echo " CPU: 2 cores" echo " CPU: 2 cores"
echo " RAM: 4GB" echo " RAM: 2GB"
echo " Disk: 16GB" echo " Disk: 16GB"
echo " Boot: $ISO_PATH" echo " Boot: $ISO_PATH"
echo "" echo ""
@@ -91,20 +91,21 @@ echo "Console output will be saved to: $CONSOLE_LOG"
echo "To monitor console: tail -f $CONSOLE_LOG" echo "To monitor console: tail -f $CONSOLE_LOG"
echo "" echo ""
# Start VM with QEMU # Start VM with QEMU using screen session
# Using qemu-system from host for better performance # Using screen to manage long-running QEMU process
# But we could also use Docker if needed screen -dmS football-iso-test \
qemu-system-x86_64 \ qemu-system-x86_64 \
-m 4096 \ -m 2048 \
-smp 2 \ -smp 2 \
-drive file="$DISK_PATH",format=qcow2 \ -drive file="$DISK_PATH",format=qcow2 \
-drive file="$ISO_PATH",media=cdrom,readonly=on \ -drive file="$ISO_PATH",media=cdrom,readonly=on \
-boot d \ -boot d \
-nographic \ -nographic \
-serial file:"$CONSOLE_LOG" \ -serial file:"$CONSOLE_LOG" \
-display none \ -display none
-pidfile "$VM_PID_FILE" \
-daemonize # Save QEMU PID for later use
pgrep -f "qemu-system-x86_64.*$DISK_PATH" | head -1 > "$VM_PID_FILE"
echo "✅ VM started (PID: $(cat $VM_PID_FILE 2>/dev/null || echo 'unknown'))" echo "✅ VM started (PID: $(cat $VM_PID_FILE 2>/dev/null || echo 'unknown'))"
echo "" echo ""