14 lines
342 B
Bash
Executable file
14 lines
342 B
Bash
Executable file
#!/bin/sh -x
|
|
|
|
# Store VM name in environment variable
|
|
export QEMUSH_NAME
|
|
[ -z "$QEMUSH_NAME" ] && QEMUSH_NAME=$(basename "$0")
|
|
|
|
# Launch the virtual machine
|
|
exec kvm-spice \
|
|
-monitor "unix:$(pathof socket)" \
|
|
-drive file="$(pathof disk)",if=virtio \
|
|
-net user,hostname="${QEMUSH_NAME}" \
|
|
-usbdevice tablet \
|
|
-name "$QEMUSH_NAME" \
|
|
"$@"
|