Prevent VM from starting #9684
Labels
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
R: duplicate
Resolution: Another issue exists that is very similar to or subsumes this one.
T: enhancement
Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.
The problem you're addressing (if any)
Some operations require a VM to be shutdown. (removing persistently attached devices, attaching private storage as drive to another VM, renaming, etc.)
Some qubes-internal requirements automatically start a VM, such as persistently attached storage, rpm-requests, ...
These requirements can therefore continuously start a VM and prohibit work that needs a shut-down VM, prohibiting such work.
Or in a malicious setting: A currently paused VM (because an attack might be happening that needs analysis) can be unpaused by
qvm-run
, which might be part of some rpc-services.The solution you'd like
I'm unsure. The most obvious solution seems to be a simple "prohibit this VM from (re)starting"-option. However, I landed in this situation due to some misconfiguration I had forgotten (semi-related: #9683 ) so adding another config that is rarely used only shifts the problem. I haven't given any thought to how a "don't unpause"-interface would look like.
So I suggest to introduce "inhibit restart for 30 minutes" in the UI and expose some kind of option to the CLI-tool that will be used to achieve this, e.g. "--prohibit-start-forever". A highlight in the QubeManager for such inhibited VMs should happen in both cases.
The value to a user, and who that user might be
Very little. Multiple things have to go wrong for such functionality to be of any use. Even when it is useful, I don't think it would be operation-critical, just alleviate some headache.
Completion criteria checklist
(This section is for developer use only. Please do not modify it.)
The text was updated successfully, but these errors were encountered: