Bug 693969

Summary: Failed to launch virt-manager as a non-root user
Product: Red Hat Enterprise Linux 6 Reporter: zhanghaiyan <yoyzhang>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: dyuan, llim, mshao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-06 12:38:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description zhanghaiyan 2011-04-06 06:11:54 UTC
Description of problem:
Failed to launch virt-manager as a non-root user

Version-Release number of selected component (if applicable):
- Build: snapshot2 (RHEL6.1-20110330.2)
- 2.6.32-128.el6.x86_64
- virt-manager-0.8.6-3.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Default install the snapshot2 build except selecting 'Desktop' and 'X window' 2 package groups
2. After finishing the installation and log in as root to the system, yum install virtualization packages including qemu-kvm, libvirt, virt-manager
3. Change to non-root user
[root@localhost ~]# su - test
[test@localhost ~]$ virt-manager 
No protocol specified
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 455, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 341, in main
    import gtk
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
    _init()
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display
  
Actual results:
3. Failed to start virt-manager

Expected results:
3. Could start virt-manager

Additional info:
Can reproduce this bug on the 2nd host - both of them yum install qemu-kvm, libvirt, virt-manager after finishing guest installation.
Cannot reproduce this bug on the 3rd host - on the 3rd host, full install all the packages including virt-manager, libvirt, qemu-kvm during installation.

Comment 2 RHEL Program Management 2011-04-06 06:23:52 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Cole Robinson 2011-04-06 12:38:51 UTC
Your nonroot user can not access root's display. You'll see the same issue launching other gtk apps like system-config-firewall. Closing NOTABUG