15 lines
318 B
Bash
Executable file
15 lines
318 B
Bash
Executable file
#!/usr/bin/env sh
|
|
export QEMUSH_RAM=4G
|
|
export QEMUSH_BASE=kvm
|
|
|
|
# Launch the virtual machine
|
|
set -- spice \
|
|
-drive file="$(pathof disk)",if=virtio \
|
|
-net nic -net user,hostname="${QEMUSH_NAME}" \
|
|
-usbdevice tablet \
|
|
-device intel-hda -device hda-duplex,audiodev=snd0 \
|
|
"$@"
|
|
|
|
# Execute the machine
|
|
set -x
|
|
exec "$@"
|