1
0
Fork 0
forked from ahurac/dotfiles

qemu : script Linux

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

View file

@ -1,11 +1,10 @@
#!/bin/sh -ex
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}" \
-name "$name" \
"$@"
-monitor stdio -enable-kvm \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m 8G \
-hda "images/${name}.qcow2" \
-net nic \
-name "$name" \
"$@"