From 360a75b594d3e325cc20b77012be6d92ef28aff9 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Thu, 16 Nov 2023 10:13:02 +0100 Subject: [PATCH] qemu : script Linux --- qemu/bin/linux | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/qemu/bin/linux b/qemu/bin/linux index 1cc1d29..5a0cb13 100755 --- a/qemu/bin/linux +++ b/qemu/bin/linux @@ -1,11 +1,10 @@ #!/bin/sh -ex name="$(basename "$0")" qemu-system-x86_64 \ - -monitor stdio -enable-kvm \ - -cpu host -smp "$(nproc)" \ - -m 4G \ - -drive "file=images/$(basename "$0").qcow2,if=virtio" \ - -net nic -net "user,hostname=${name}" \ - -name "$name" \ - "$@" - + -monitor stdio -enable-kvm \ + -cpu host -smp "$(("$(nproc)" / 2))" \ + -m 8G \ + -hda "images/${name}.qcow2" \ + -net nic \ + -name "$name" \ + "$@"