#!/usr/bin/env bash # Boot the Guix prototype in qemu-system-aarch64 (-M virt, UEFI via AAVMF). # Host is x86_64, so this runs under TCG. SSH: ssh -p 2222 root@localhost (pw: guix) set -euo pipefail cd "$(dirname "$0")" IMG="${1:-$(pwd)/guix-mt6000.img}" [ -e "$IMG" ] || { echo "no image $IMG — run ./build-image.sh first"; exit 1; } exec qemu-system-aarch64 \ -M virt -cpu max -m 1024 -smp 4 -nographic \ -bios /usr/share/AAVMF/AAVMF_CODE.fd \ -drive if=none,id=root,file="$IMG",format=raw \ -device virtio-blk-pci,drive=root \ -netdev user,id=net0,hostfwd=tcp::2222-:22 \ -device virtio-net-pci,netdev=net0