qemush : mise à jour les scripts de lancement de machines virtuelles

This commit is contained in:
Hippolyte Chauvin 2023-12-01 22:22:00 +01:00
parent 347782d594
commit 89ac27367f
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#!/bin/sh -ex
#!/bin/sh -x
qemu-system-x86_64 \
-enable-kvm \
-M q35 \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
-net nic \

View file

@ -4,7 +4,7 @@ exec qemu-system-x86_64 \
-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 e1000,netdev=net0 \
-device nec-usb-xhci,id=xhci \
-device ich9-intel-hda -device hda-duplex \
"$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh -ex
exec redox \
-vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \
-vga qxl -spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \
"$@"