|
|
@ -10,11 +10,14 @@ for vm in output/*/; do
|
|
|
|
'stop')
|
|
|
|
'stop')
|
|
|
|
echo system_powerdown | ncat -U "$vm/monitor.sock"
|
|
|
|
echo system_powerdown | ncat -U "$vm/monitor.sock"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
'force-stop')
|
|
|
|
|
|
|
|
echo quit | ncat -U "$vm/monitor.sock"
|
|
|
|
|
|
|
|
;;
|
|
|
|
'attach')
|
|
|
|
'attach')
|
|
|
|
remote-viewer "spice+unix://./$vm/spice.sock" &
|
|
|
|
remote-viewer "spice+unix://./$vm/spice.sock" &
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
echo >&2 "Usage: $0 (start | stop | attach)"
|
|
|
|
echo >&2 'Usage: $0 (start | [force-]stop | attach)'
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|