#!/bin/sh set -xe IMAGE="$1" shift qemu-system-x86_64 -boot d \ -enable-kvm \ -smp 2 \ -name linuz \ -device virtio-gpu-gl,xres=1280,yres=720 \ -cpu host \ -device AC97 \ -m 2048 \ -display gtk,gl=on \ -drive file="$IMAGE",if=virtio \ -object rng-random,id=rng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=rng0 \ -device virtio-keyboard \ -boot menu=off \ -device virtio-tablet \ -machine type=q35 \ -serial mon:stdio \ -net nic -net user,hostfwd=tcp::4444-:5555 \ -cdrom "$@"