| Summary: | virt-manager silently fails when no X display available | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rolf Fokkens <rolf> |
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED DEFERRED | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | berrange, crobinso, gscrivan, jsiero, virt-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-17 22:11:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Rolf Fokkens
2013-10-21 11:38:53 UTC
virt-manager by default forks to background, so you are not able to get its stdout/stderr output. I am not sure if it is possible to move the Gtk/Gdk initialization before virt-manager is forked (or by using the initial stdout/stderr files) and be able to get this kind of errors. For now, you can troubleshoot such kind of problems with the --no-fork argument to virt-manager, or even get a more verbose log with --debug (which internally implies --no-fork). As a suggestion: make the default "--no-fork" and add an option "--fork" to have virt-manager fork to the background. In this case users will get X-errors by default, and silent failure when they request "--fork". This may be less confusing. --no-fork is needed to force ssh to actually show us the askpass dialog, if people are connecting to a remote libvirt using ssh without keys (the default). it sucks but we are stuck with it.
I've pushed a patch upstream now that fixes things for me:
commit 395a20edd82f1072d23e80ecbb25dbeed9359304
Author: Cole Robinson <crobinso>
Date: Fri Nov 1 09:44:14 2013 -0400
virt-manager: Yet more fixes for DISPLAY unset error
This is in F20 now, F19 will get it on the next bugfix update when there are more impactful bugs that make it worth pushing an update. Deferring till then |