accel=kvm:tcg
cpu=
memory=768
+console=ttyS0
machine=
# Both libguestfs and virt-manager choose cpu=host when we think that
# using -m|--machine and --cpu options.
case "$canonical_arch" in
arm*)
+ console=ttyAMA0
machine=virt ;;
aarch*)
+ console=ttyAMA0
if [ "$cpu" = "" ]; then cpu=cortex-a57; fi
machine=virt ;;
+ s390*)
+ console=ttysclp0 ;;
esac
# Handle command line parsing.
argv[$((i++))]="-initrd"
argv[$((i++))]="$initrd"
argv[$((i++))]="-append"
-argv[$((i++))]="console=ttyS0 oops=panic panic=-1"
+argv[$((i++))]="console=$console oops=panic panic=-1"
if [ "$verbose" = "yes" ]; then
echo "${argv[@]}"