diff --git a/qemu/bin/linux b/qemu/bin/linux index 5a0cb13..89e5d6a 100755 --- a/qemu/bin/linux +++ b/qemu/bin/linux @@ -1,10 +1,7 @@ #!/bin/sh -ex -name="$(basename "$0")" qemu-system-x86_64 \ - -monitor stdio -enable-kvm \ + -enable-kvm \ -cpu host -smp "$(("$(nproc)" / 2))" \ - -m 8G \ - -hda "images/${name}.qcow2" \ + -m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \ -net nic \ - -name "$name" \ "$@"