qemush/qemu/launchers/windows10

18 lines
525 B
Bash
Executable file

#!/bin/sh -x
# Store VM name in environment variable
export QEMUSH_NAME
export QEMUSH_RAM=4G
[ -z "$QEMUSH_NAME" ] && QEMUSH_NAME=$(basename "$0")
# Launch the virtual machine
exec kvm-spice \
-drive file="$(diskpath)",if=virtio \
-net user,hostname="${QEMUSH_NAME}" \
-usbdevice tablet \
-name "$QEMUSH_NAME" \
-chardev socket,id=char0,path=/run/virtiofsd.sock \
-device vhost-user-fs-pci,chardev=char0,tag=shared \
-object memory-backend-memfd,id=mem,size="${QEMUSH_RAM}",share=on \
-numa node,memdev=mem \
"$@"