qemu : ajout de la base du script de lancement d'une VM Redox

This commit is contained in:
Hippolyte Chauvin 2023-11-28 13:57:08 +01:00
parent d803c48ff1
commit fb8615bab2

10
qemu/bin/redox Executable file
View file

@ -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 \
"$@"