#!/bin/sh sysctl vm.nr_hugepages=2048 modprobe kvm-hv modprobe dm_mirror vgchange -a y #MACHINE="-M pseries,accel=kvm,kvm-type=HV" #MACHINE="-M pseries" #MACHINE="-M pseries-3.0,cap-hpt-max-page-size=16M" MACHINE="-M pseries-3.0,cap-hpt-max-page-size=16M,accel=kvm,kvm-type=HV" #MACHINE="-M powernv" #SMP="" SMP="-smp cores=8,threads=4" #SMP="-smp cores=7,threads=4" GRAPHICS="-nographic -vga none" #GRAPHICS="-vnc :2" #RNG="-object rng-random,filename=/dev/urandom,id=rng0 -device spapr-rng,rng=rng0" #RNG="-device spapr-rng,use-kvm=true" COMMON="-cpu POWER9 $MACHINE $SMP $RNG $GRAPHICS \ -drive if=pflash,file=freebsd.nvram,format=raw \ -device spapr-vscsi -drive file=/dev/talos/freebsd,format=raw,index=0" RAM="-m 24G -object memory-backend-file,id=mem,merge=off,dump=off,share=off,prealloc=on,size=24G,mem-path=/mnt/hugepages -numa node,memdev=mem" #RAM="-m 4G" INSTALL="-drive file=./FreeBSD-12.0-ALPHA5-powerpc-powerpc64-20180907-r338518-disc1.iso,format=raw,media=cdrom,index=1 \ " SERIAL="" BOOT="-serial null -monitor null" #qemu-system-ppc64 $COMMON qemu-system-ppc64 $COMMON $INSTALL $RAM $SERIAL -machine usb=off