blob: f71e3038cd396e87752b5879da2d6232c7cbebaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 "$@"
|