qemu : modification de la base du script de lancement d'une VM Linux
This commit is contained in:
parent
e373995e1b
commit
d803c48ff1
1 changed files with 2 additions and 5 deletions
|
@ -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" \
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue