-
-
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
Attempting to open more than ~40 terminal windows results in qvm-run error "command failed with code: 1" #5969
Comments
This seems to be related to #5343 |
This seems to be working quite fine, thank you. Is that something that should be done for qubes-i3-sensible-terminal ? I am happy to send a patch if it helps. -Lukas |
Yes, that could be helpful. |
AFAICT it is only useful for situations when there is already a vm window avaliable, so the vm must be running. On the other hand I can imagine the situation where I run a program (lets say Firefox) in DispVM, then open a terminal using qubes-i3-sensible-terminal and then close the Firefox later on. Based on your comment I assume the vm will be destroed at that point, regardless of opened terminal. Not sure if that matters much ? |
Yes, that's right. In this case, it doesn't matter whether |
Currently qvm-run is used to start a terminal in a vm. However this will keep stdin/stdout connected depleting inter-VM shared memory which is a limited resource (as pointed out by Marek Marczykowski-Górecki). To avoid this use qrexec-client directly with "-e" option to avoid connecting stdin/stdout. This should be fine since a running vm is already required to be able to use qubes-i3-sensible-terminal. QubesOS/qubes-issues#5969 Signed-off-by: Lukas Czerner <[email protected]>
Sorry for the delay due to my holiday. I did send a PR that solves this issue for me by using qrexec-client directly. Let me know what you think. Thanks! |
Currently qvm-run is used to start a terminal in a vm. However this will keep stdin/stdout connected depleting inter-VM shared memory which is a limited resource (as pointed out by Marek Marczykowski-Górecki). To avoid this use qrexec-client directly with "-e" option to avoid connecting stdin/stdout. This should be fine since a running vm is already required to be able to use qubes-i3-sensible-terminal. QubesOS/qubes-issues#5969 Signed-off-by: Lukas Czerner <[email protected]>
Currently qvm-run is used to start a terminal in a vm. However this will keep stdin/stdout connected depleting inter-VM shared memory which is a limited resource (as pointed out by Marek Marczykowski-Górecki). To avoid this, use qrexec-client directly with "-e" option to avoid connecting stdin/stdout. Note that qvm-run does not support this option at the moment, but it could be worked around by pointing stdin/stdout to /dev/null. However using qrexec-cliend seems like a more efficient solution in this case. This should be fine since a running vm is already required to be able to use qubes-i3-sensible-terminal. QubesOS/qubes-issues#5969 Signed-off-by: Lukas Czerner <[email protected]>
This issue is being closed because:
If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment. |
Qubes OS version
R4.0
Affected component(s) or functionality
qvm-run fails with code 1. After some time using the system or enough open windows I can't open any more using qvm-run
Brief summary
I am using i3 and a lots of urxvt terminals among other things spread though 6 VMs. When I open enough windows (nothing crazy maybe 40 or so) I can't open any more regardless of the vm I am using.
Most of the time, closing some of the terminals helps and I can open something else again.
To Reproduce
Keep opening terminal windows in VM until you can't open any more - for me it varies, but at the moment the limit is around 40 after which qvm-run fails with code 1.
I can still open more windows from the VM terminal (urxvt& for example) without any problem. By my shortcut (alt+enter) does not work anymore.
Expected behavior
Being able to open "unlimited" amount of windows, or at least as much as my system memory allows. I have 32GB of RAM in the system and I still have enough free memory in the VM.
Actual behavior
qvm-run fails with code 1
The text was updated successfully, but these errors were encountered: