34 lines
847 B
Bash
34 lines
847 B
Bash
|
|
#!/bin/bash
|
||
|
|
# Test Archipelago ISO in QEMU
|
||
|
|
|
||
|
|
ISO="${1:-/Users/dorian/Projects/archy/image-recipe/results/archipelago-3.19-hp-prodesk-uefi-x86_64.iso}"
|
||
|
|
|
||
|
|
if [ ! -f "$ISO" ]; then
|
||
|
|
echo "❌ ISO not found: $ISO"
|
||
|
|
echo "Usage: $0 [path-to-iso]"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "🧪 Testing Archipelago ISO in QEMU"
|
||
|
|
echo "📀 ISO: $ISO"
|
||
|
|
echo "💾 RAM: 4GB"
|
||
|
|
echo "🖥️ CPU: 4 cores"
|
||
|
|
echo ""
|
||
|
|
echo "Press Ctrl+Alt+G to release mouse/keyboard from VM"
|
||
|
|
echo "Press Ctrl+C in this terminal to stop VM"
|
||
|
|
echo ""
|
||
|
|
echo "Starting VM in 3 seconds..."
|
||
|
|
sleep 3
|
||
|
|
|
||
|
|
# Run QEMU with Legacy BIOS (simpler, more compatible)
|
||
|
|
qemu-system-x86_64 \
|
||
|
|
-machine pc \
|
||
|
|
-m 2G \
|
||
|
|
-smp 2 \
|
||
|
|
-boot d \
|
||
|
|
-cdrom "$ISO" \
|
||
|
|
-drive if=virtio,format=qcow2,file=/tmp/archipelago-test-disk.qcow2 \
|
||
|
|
-net nic,model=virtio -net user \
|
||
|
|
-vga virtio \
|
||
|
|
-display default
|