9 lines
220 B
Bash
Executable file
9 lines
220 B
Bash
Executable file
#!/bin/sh -ex
|
|
qemu-system-x86_64 \
|
|
-enable-kvm \
|
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
|
-m "$(("$(free | grep '^Mem: ' | awk '{ print $NF }')" / 2))K" \
|
|
-net nic \
|
|
-device virtio-serial \
|
|
-usbdevice tablet \
|
|
"$@"
|