| Summary: | No protocol specified Cannot open display: | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | gregrwm <rhbugzi> | ||||
| Component: | virt-viewer | Assignee: | Daniel Berrangé <berrange> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.4 | CC: | mzhan, rwu, yupzhang, zpeng | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-02-16 17:36:27 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
umm, so, is virt-viewer simply DOA in rhel6.2? is there anything i'm doing here that's out of the ordinary? > Cannot open display:
That means there is no DISPLAY environment variable set and thus virt-viewer cannot connect to the X server.
ok got it. bizarre. i can "su", and from there i can launch xterms, and those root xterms can launch other xterms ad infinitum, but as soon as the "su" process exits, none of the root xterms can launch anything anymore. well clearly that's not a virt-install bug, sorry. i've no idea which module, but clearly not well thought out behaviour. When you run 'su' it'll add an entry to your $HOME/.Xauthority file which gives the root applications the permission to connect the X server. When you exit 'su', I presume it is removeing the .Xauthority entry, which will prevent further apps from starting. |
Created attachment 561975 [details] package list Description of problem: No protocol specified Cannot open display: Version-Release number of selected component (if applicable): virt-viewer 0.4.1 7.el6 Steps to Reproduce: 0. install rhel-server-6.2-x86_64-dvd.iso 1. login (as g) 2. vncserver <args> 3. sudo xterm #run subsequent commands in the root xterm in Xvnc 4. rhn_register 5. alias vinst='virt-install -wbridge:br1 --accelerate' 6. lvcreate -L 5G VGpecan6 -n6a 7. vinst -r500 --disk path=/dev/VGpecan6/6a -n 6a -c/var/local/nfs/r6/rhel-server-6.2-x86_64-dvd.iso --os-variant=rhel6 8. virsh list #6a running 9. virt-viewer 6a 10. yum update 11. reboot 12. repeat steps 1-3 13. virsh list #6a running 14. virt-viewer 6a Actual results: virt-install and virt-viewer both complain No protocol specified Cannot open display: Expected results: a virt-viewer window Additional info: am i missing a needed package?