dotfiles/qemu/bin/linux

8 lines
172 B
Text
Raw Normal View History

#!/bin/sh -ex
qemu-system-x86_64 \
-enable-kvm \
2023-11-16 10:13:02 +01:00
-cpu host -smp "$(("$(nproc)" / 2))" \
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
2023-11-16 10:13:02 +01:00
-net nic \
"$@"