forked from ahurac/dotfiles
qemush : mise à jour les scripts de lancement de machines virtuelles
This commit is contained in:
parent
347782d594
commit
89ac27367f
3 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -x
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-enable-kvm \
|
-enable-kvm \
|
||||||
|
-M q35 \
|
||||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||||
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
|
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
|
||||||
-net nic \
|
-net nic \
|
||||||
|
|
|
@ -4,7 +4,7 @@ exec qemu-system-x86_64 \
|
||||||
-M q35 \
|
-M q35 \
|
||||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||||
-m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \
|
-m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \
|
||||||
-device ich9-intel-hda -device hda-duplex \
|
-device e1000,netdev=net0 \
|
||||||
-netdev user,id=net0 -device e1000,netdev=net0 \
|
|
||||||
-device nec-usb-xhci,id=xhci \
|
-device nec-usb-xhci,id=xhci \
|
||||||
|
-device ich9-intel-hda -device hda-duplex \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
exec redox \
|
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 \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
Loading…
Reference in a new issue