dotfiles/qemu/bin/linux

7 lines
172 B
Bash
Executable file

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