qemu : script Linux

This commit is contained in:
Hippolyte Chauvin 2023-11-16 10:13:02 +01:00
parent fd6c5b5261
commit 360a75b594

View file

@ -2,10 +2,9 @@
name="$(basename "$0")"
qemu-system-x86_64 \
-monitor stdio -enable-kvm \
-cpu host -smp "$(nproc)" \
-m 4G \
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
-net nic -net "user,hostname=${name}" \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m 8G \
-hda "images/${name}.qcow2" \
-net nic \
-name "$name" \
"$@"