2023-12-13 12:41:28 +01:00
|
|
|
#!/bin/sh -x
|
2024-01-21 00:20:51 +01:00
|
|
|
|
|
|
|
# Store VM name in environment variable
|
|
|
|
export QEMUSH_NAME
|
2024-01-23 10:55:12 +01:00
|
|
|
export QEMUSH_RAM=4G
|
2024-01-21 00:20:51 +01:00
|
|
|
[ -z "$QEMUSH_NAME" ] && QEMUSH_NAME=$(basename "$0")
|
|
|
|
|
|
|
|
# Launch the virtual machine
|
2023-12-13 12:41:28 +01:00
|
|
|
exec kvm-spice \
|
2024-01-21 01:40:45 +01:00
|
|
|
-drive file="$(diskpath)",if=virtio \
|
2024-01-21 00:20:51 +01:00
|
|
|
-net user,hostname="${QEMUSH_NAME}" \
|
2023-12-13 12:41:28 +01:00
|
|
|
-usbdevice tablet \
|
2024-01-21 00:20:51 +01:00
|
|
|
-name "$QEMUSH_NAME" \
|
2023-12-13 12:41:28 +01:00
|
|
|
"$@"
|