diff options
Diffstat (limited to 'scriptlets/qemu-run.sh')
-rwxr-xr-x | scriptlets/qemu-run.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scriptlets/qemu-run.sh b/scriptlets/qemu-run.sh new file mode 100755 index 0000000..b972140 --- /dev/null +++ b/scriptlets/qemu-run.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +set -xe + +IMAGE="$1" + +shift + +qemu-system-x86_64 \ +-accel kvm \ +-M q35 \ +-m 4096 -smp 4 -cpu host \ +-bios /usr/share/ovmf/x64/OVMF.fd \ +-drive file="$IMAGE",if=virtio \ +-usb \ +-device virtio-tablet \ +-device virtio-keyboard \ +-device qemu-xhci,id=xhci \ +-machine vmport=off \ +-device virtio-vga-gl,xres=1280,yres=720 -display sdl,gl=on \ +-audiodev pa,id=snd0 -device AC97,audiodev=snd0 \ +-net nic,model=virtio-net-pci -net user,hostfwd=tcp::4444-:5555 \ +-cdrom "$@" \ + |