2023-12-01 22:22:00 +01:00
|
|
|
#!/bin/sh -x
|
2023-10-15 11:57:01 +02:00
|
|
|
qemu-system-x86_64 \
|
2023-11-28 13:56:37 +01:00
|
|
|
-enable-kvm \
|
2023-12-01 22:22:00 +01:00
|
|
|
-M q35 \
|
2023-11-16 10:13:02 +01:00
|
|
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
2023-11-28 13:56:37 +01:00
|
|
|
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
|
2023-11-16 10:13:02 +01:00
|
|
|
-net nic \
|
|
|
|
"$@"
|