Red Hat Bugzilla – Bug 564507
When run as non-root user, virt-viewer doesn't work
Last modified: 2013-09-02 02:43:39 EDT
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):
* Seems like every attempt fails.
Steps to Reproduce:
1. As a non-root user, type: virt-viewer <GUESTNAME>
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
Some password prompt to connect to the local qemu:///system libvirtd?
* 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
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
Yes, as non-root you need to supply the connection, otherwise it will be connecting to qemu://session instead