#!/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