2024-03-12 11:57:26 +01:00
|
|
|
#!/usr/bin/env sh
|
2024-01-23 10:55:12 +01:00
|
|
|
export QEMUSH_RAM=4G
|
2024-03-12 11:58:03 +01:00
|
|
|
export QEMUSH_BASE=kvm
|
2024-03-08 23:48:58 +01:00
|
|
|
[ -z "$QEMUSH_NAME" ] && {
|
|
|
|
export QEMUSH_NAME
|
|
|
|
QEMUSH_NAME=$(basename "$0")
|
|
|
|
}
|
2024-01-21 00:20:51 +01:00
|
|
|
|
|
|
|
# Launch the virtual machine
|
2024-03-12 11:58:49 +01:00
|
|
|
set -- spice \
|
2024-01-25 16:13:58 +01:00
|
|
|
-drive file="$(pathof disk)",if=virtio \
|
2024-03-08 23:48:58 +01:00
|
|
|
-net nic -net user,hostname="${QEMUSH_NAME}" \
|
2023-12-13 12:41:28 +01:00
|
|
|
-usbdevice tablet \
|
2024-03-08 23:48:58 +01:00
|
|
|
-device intel-hda -device hda-duplex,audiodev=snd0 \
|
2023-12-13 12:41:28 +01:00
|
|
|
"$@"
|
2024-03-12 11:59:23 +01:00
|
|
|
|
|
|
|
# Execute the machine
|
2024-03-12 11:57:26 +01:00
|
|
|
set -x
|
2024-03-12 11:58:49 +01:00
|
|
|
exec "$@"
|