-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qvm-prefs --set vmname qrexec_timeout does not allow value 0, and has misleading error message #5005
Comments
/cc @linse |
If your VM do not have qrexec installed, to avoid killing it on qrexec timet you can disable |
Ah, OK. So what I want is instead |
I guess this should be a doc improvement issue. |
I think the result of |
Previously we printed a 'no such property' error for all exceptions that are an instance of AttributeError which includes QubesPropertyAccessError and therefore generated confusing error messages. Print them only in case of QubesNoSuchPropertyError. Fixes QubesOS/qubes-issues#8666 Related to QubesOS/qubes-issues#5005
Previously we printed a 'no such property' error for all exceptions that are an instance of AttributeError which includes QubesPropertyAccessError and therefore generated confusing error messages. Print them only in case of QubesNoSuchPropertyError. Fixes QubesOS/qubes-issues#8666 Related to QubesOS/qubes-issues#5005
The property setter helpers for (non-zero) positive integer values previously raised a ValueError for out of range values, which is interpreted later as internal error. But in such cases the user supplied an invalid value so raise a QubesPropertyValueError. The message will then be displayed by qvm-prefs. Related to QubesOS/qubes-issues#5005
The technical part should be fixed by QubesOS/qubes-core-admin-client#268 and QubesOS/qubes-core-admin#570. Leaving this open for the documentation part. |
Previously we printed a 'no such property' error for all exceptions that are an instance of AttributeError which includes QubesPropertyAccessError and therefore generated confusing error messages. Print them only in case of QubesNoSuchPropertyError. Fixes QubesOS/qubes-issues#8666 Related to QubesOS/qubes-issues#5005
The property setter helpers for (non-zero) positive integer values previously raised a ValueError for out of range values, which is interpreted later as internal error. But in such cases the user supplied an invalid value so raise a QubesPropertyValueError. The message will then be displayed by qvm-prefs. Related to QubesOS/qubes-issues#5005 (cherry picked from commit d1c740a)
This appears the be fixed. |
Closing as completed. If anyone believes this issue is not yet completed, or if anyone is still affected by this issue, please leave a comment saying so, and we'll be happy to reopen it. Thank you. |
Qubes OS version
R4.0
Affected component(s) or functionality
qvm-prefs
command in dom0Brief summary
I want to disable the behavior of QubesOS where VMs will be terminated if they do not respond to qrexec within a certain amount of time. I can't figure out how to do this.
To Reproduce
Steps to reproduce the behavior:
_1. in dom0, attempt to set the qrexec_timeout parameter of a vm to 0 with
qvm-prefs --set vmname qrexec_timeout 0
. __2. Result is usage information for qvm-prefs and the error message
qvm-prefs: error: no such property: 'qrexec_timeout'
. This is inconsistent as I can seeqrexec_timeout
withqvm-prefs --get
and can set it to a positive nonzero value.Expected behavior
Successful update of the qrexec_timeout parameter to 0, disabling the shutdown of VMs that don't respond within
n
seconds.Actual behavior
qrexec_timeout
remains at the original value.The text was updated successfully, but these errors were encountered: