dotfiles/qemu/bin/linux
2023-11-16 10:13:02 +01:00

10 lines
204 B
Bash
Executable file

#!/bin/sh -ex
name="$(basename "$0")"
qemu-system-x86_64 \
-monitor stdio -enable-kvm \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m 8G \
-hda "images/${name}.qcow2" \
-net nic \
-name "$name" \
"$@"