Compare commits

...

3 commits

Author SHA1 Message Date
Hippolyte Chauvin
165ff284e2 qemu : ajout des scripts de lancement de VM via Spice 2023-11-28 13:57:29 +01:00
Hippolyte Chauvin
fb8615bab2 qemu : ajout de la base du script de lancement d'une VM Redox 2023-11-28 13:57:08 +01:00
Hippolyte Chauvin
d803c48ff1 qemu : modification de la base du script de lancement d'une VM Linux 2023-11-28 13:56:37 +01:00
4 changed files with 20 additions and 5 deletions

View file

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

4
qemu/bin/linux-spice Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh -ex
exec linux \
-vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \
"$@"

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

4
qemu/bin/redox-spice Executable file
View file

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