Hello,

while trying to script some basic tasks I found out that I am missing some 
small features in the qvm-* scripts, I have looked at the code of those script 
but it is to hard for me to understand exactly what needs to be done to chance 
that.
Here my ideas, maybe someone with more skills is able to do so:

*** qvm-shutdown ***
should have an option like "skip-if-not-running", so that the command will not 
throw out the message "ERROR: VM already stopped"
Another options should be "skip-if-not-exist"

*** qvm-restart ***
will shutdown and restart a VM.
should also have an option like "skip-if-not-running","start-if-not-running", 
"skip-if-not-exist" and "wait".
(the usecase of those options are clear I guess :-)
I've written a script and saved it to /usr/bin which is only shutting down and 
starting a VM, but not doing any error checking, nor does it offer further 
options:
#! /bin/bash
qvm-shutdown --force --wait $1
qvm-start $1

*** qvm-destroy ***
including options: "skip-if-not-exist" and "wait"
Will kill a running VM and remove it (basically qvm-kill and then qvm-remove)

*** qvm-check ***
should have two other options:
qvm-check shutdown <VM-Name>
qvm-check exists <VM-Name>

Another great feature would be if dom0 gets an information when a scripts has 
been finished in an AppVM if has been started via qvm-run:

currently I am forcing the user to monitor if a command has been finished:

qvm-run <APP-VM> 'xterm -e "<COMMAND 1> && <COMMAND 2>'"
echo "WARNING: Only continue if the former command has been finished (terminal 
windows has been closed)"
read -p "Press Enter to continue"

Something like "--wait" would be great. I know that this might not be that 
easy, but I guess there could be a way that the AppVM communicates back to dom0.

Maybe some of this is covered in Qubes 4.x, this would also be nice to know, 
still I think it would also be great if this is available in Qubes 3.2

I
[799]

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/U099ayZhHqpdAldGMfbBa8KeWkv_GQH2lxJCyJpXO9foVo25km7OkfxWbAeUMNKmuzKR34anWq0FC2gtSEMIVJq6I48zW5Rdpjr-TquOeV0%3D%40protonmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to