Bug 693969 - Failed to launch virt-manager as a non-root user
Summary: Failed to launch virt-manager as a non-root user
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-06 06:11 UTC by zhanghaiyan
Modified: 2011-06-10 03:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-06 12:38:51 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.