Compare commits
2 Commits
91fc4138a3
...
977d578d04
| Author | SHA1 | Date | |
|---|---|---|---|
| 977d578d04 | |||
| ddda3640cf |
12
build-iso.sh
12
build-iso.sh
@@ -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"
|
||||||
|
|||||||
17
test-iso.sh
17
test-iso.sh
@@ -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 ""
|
||||||
|
|||||||
Reference in New Issue
Block a user