2023-07-12 17:59:41 +02:00
|
|
|
#!/bin/sh -ex
|
|
|
|
name="$(basename "$0")"
|
2023-10-15 11:57:01 +02:00
|
|
|
qemu-system-x86_64 \
|
2023-07-18 09:59:21 +02:00
|
|
|
-monitor stdio -enable-kvm \
|
2023-07-12 17:59:41 +02:00
|
|
|
-cpu host -smp "$(nproc)" \
|
|
|
|
-m 4G \
|
|
|
|
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
|
|
|
-net nic -net "user,hostname=${name}" \
|
|
|
|
-name "$name" \
|
|
|
|
"$@"
|
|
|
|
|