#! /bin/sh
#
# run-fedora-rawhide-kvm.sh
# Copyright (C) 2025 Shlomi Fish < https://www.shlomifish.org/ >
#
# Distributed under the terms of the MIT license.
#

set -e -x

# qemu-kvm -m 8G -smp 1 -cdrom "Fedora-Workstation-Live-Rawhide-20250308.n.1.x86_64.iso"
iso_fn="./FreeBSD-14.3-RELEASE-amd64-disc1.iso"
harddisk_fn=freebsd-hd1.dat
if ! test -e "${harddisk_fn}"
then
    dd bs=1M count="$((60 * 1024))" if=/dev/zero of="${harddisk_fn}"
fi
qemu-kvm -m 4G -smp 1 -hda "${harddisk_fn}" -cdrom "${iso_fn}"
