diff options
Diffstat (limited to 'scriptlets/qemu-android.sh')
-rwxr-xr-x | scriptlets/qemu-android.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scriptlets/qemu-android.sh b/scriptlets/qemu-android.sh new file mode 100755 index 0000000..f71e303 --- /dev/null +++ b/scriptlets/qemu-android.sh @@ -0,0 +1,27 @@ +#!/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 "$@" |