Bug 564507 - When run as non-root user, virt-viewer doesn't work
Summary: When run as non-root user, virt-viewer doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-viewer
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-12 22:22 UTC by James Laska
Modified: 2013-09-02 06:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-15 10:22:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Laska 2010-02-12 22:22:44 UTC
Description of problem:

Running `virt-viewer GUEST` as a non-root user, doesn't appear to work.  

Version-Release number of selected component (if applicable):
* virt-viewer-0.2.0-1.fc12.x86_64

How reproducible:
* Seems like every attempt fails. 

Steps to Reproduce:
1. As a non-root user, type: virt-viewer <GUESTNAME>
  
Actual results:

virt-viewer returns to the shell and has an exit code of 255.  Not virt-viewer window appears and the user is not prompted for access information

Expected results:

Some password prompt to connect to the local qemu:///system libvirtd?

Additional info:

* Running the same command as the root user works fine
* The guest I am attempting to connect to is running ...

# su -c 'virsh list'
 Id Name                 State
----------------------------------
  2 vguest1              running

Comment 1 James Laska 2010-02-12 22:28:23 UTC
Maybe this is a dumb operator thing.  I swear I tried the -c argument before filing this.

But as non-root, the following seems to work

$ virt-viewer -c qemu:///system GUEST

Comment 2 Daniel Berrangé 2010-02-15 10:22:29 UTC
Yes, as non-root you need to supply the connection, otherwise it will be connecting to qemu://session instead


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