Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdating a standalone VM should not shut it down #2555
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jan 6, 2017
Member
While the request to shut down a template is appreciated and makes sense, my understanding is that standalone VMs "ping" for updates only when in use.
More specifically, when the StandaloneVM is running (not necessarily in use).
Perhaps a way forward could be to remove the prompt to shutdown altogether for standalone VMs.
The feature was originally intended for TemplateVMs. It's up to @marmarek to decide whether its application to StandaloneVM is over-broad or intended.
For reference, this is feature #2431.
More specifically, when the StandaloneVM is running (not necessarily in use).
The feature was originally intended for TemplateVMs. It's up to @marmarek to decide whether its application to StandaloneVM is over-broad or intended. For reference, this is feature #2431. |
andrewdavidwong
added
C: core
task
labels
Jan 6, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Jan 6, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 7, 2017
Member
I'd say it depends - if you started the StandaloneVM just to update it, automatic shutdown would be desired. Maybe the criteria should not be a VM type, but if the VM was just started?
Anyway, for now, you can simply press Ctrl-C, as the message told you.
|
I'd say it depends - if you started the StandaloneVM just to update it, automatic shutdown would be desired. Maybe the criteria should not be a VM type, but if the VM was just started? Anyway, for now, you can simply press Ctrl-C, as the message told you. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jan 7, 2017
Member
Maybe the criteria should not be a VM type, but if the VM was just started?
I think there would still be users (like @lorenzog?) who intend to:
- Start the StandaloneVM.
- Update the StandaloneVM.
- Continue working in the StandaloneVM (without rebooting it).
I think there would still be users (like @lorenzog?) who intend to:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jan 9, 2017
@marmarek I think the VM type would make more sense. As @andrewdavidwong was saying, a StandaloneVM checks for updates only when it's on; so a user would never know it needs to update one unless it was already on, in which case turning it off 'by default' seems counter-productive.
It's a minor issue in the end. If you could kindly point me at the utility that does it I can try to give it a go.
lorenzog
commented
Jan 9, 2017
|
@marmarek I think the VM type would make more sense. As @andrewdavidwong was saying, a StandaloneVM checks for updates only when it's on; so a user would never know it needs to update one unless it was already on, in which case turning it off 'by default' seems counter-productive. It's a minor issue in the end. If you could kindly point me at the utility that does it I can try to give it a go. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 9, 2017
Member
It's a minor issue in the end. If you could kindly point me at the utility that does it I can try to give it a go.
The script for /etc/qubes-rpc/qubes.InstallUpdatesGUI is here.
You can check you're in standalone VM by combining existence of /var/run/qubes/this-is-appvm (template vm will have /var/run/qubes/this-is-templatevm instead).
The script for |
andrewdavidwong
added
the
P: minor
label
Jan 10, 2017
added a commit
to lorenzog/qubes-core-agent-linux
that referenced
this issue
Jan 14, 2017
lorenzog
referenced this issue
in QubesOS/qubes-core-agent-linux
Jan 14, 2017
Closed
Shut down after update only if it's a template. #33
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
commented
Jan 14, 2017
|
@marmarek It's a one liner, see if you like it :) |
lorenzog commentedJan 6, 2017
Qubes OS version (e.g.,
R3.2):3.2
Affected TemplateVMs (e.g.,
fedora-23, if applicable):N/A
Expected behavior:
If a standalone VM was running, updating it from Qubes VM Manager should not offer to shut it down
Actual behavior:
At the end of a standalone VM update from Qubes VM Manager, the prompt on the terminal window offers to "Press Enter to shut down the template, or Ctrl-C to just close this window"
Steps to reproduce the behavior:
General notes:
While the request to shut down a template is appreciated and makes sense, my understanding is that standalone VMs "ping" for updates only when in use. In this case, shutting them down makes little sense (I was Doing Stuff!).
Perhaps a way forward could be to remove the prompt to shutdown altogether for standalone VMs.
Related issues: