1
0
Fork 0
forked from ahurac/dotfiles

qemu : modification de la base du script de lancement d'une VM Linux

This commit is contained in:
Hippolyte Chauvin 2023-11-28 13:56:37 +01:00
parent e373995e1b
commit d803c48ff1

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