From fb8615bab2f064fe02b3fd60aa1ea4d54d804e71 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Tue, 28 Nov 2023 13:57:08 +0100 Subject: [PATCH] qemu : ajout de la base du script de lancement d'une VM Redox --- qemu/bin/redox | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 qemu/bin/redox diff --git a/qemu/bin/redox b/qemu/bin/redox new file mode 100755 index 0000000..ba22d10 --- /dev/null +++ b/qemu/bin/redox @@ -0,0 +1,10 @@ +#!/bin/sh -ex +exec qemu-system-x86_64 \ + -enable-kvm \ + -M q35 \ + -cpu host -smp "$(("$(nproc)" / 2))" \ + -m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \ + -device ich9-intel-hda -device hda-duplex \ + -netdev user,id=net0 -device e1000,netdev=net0 \ + -device nec-usb-xhci,id=xhci \ + "$@"