Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I run virt-viewer as a regular user?

150 views
Skip to first unread message

T

unread,
Dec 18, 2017, 8:17:37 PM12/18/17
to
Hi All,

I could not take Scientific Linux 7.4 (RHEL clone based on CentOS)
anymore. It is just too gash darned buggy and so terribly out-of-date
that it drove me insane. And nothing gets fixed as it is too
out-of-date to get fixed. Anyway I wiped and re-installed Fedora Core
27. Oh my goodness what a change to have everything working well! And
stable finally too! (RHEL is NOT more stable.)

Anyway, I use to communicate with my virtual machines (VM's) as a user
with qemu-kvm as follows:
$ remote-viewer spice://127.0.0.1:5900 --title "KVM-WinXP"

Now I must be root to view my VM's:
$ beesu "/usr/bin/virt-viewer KVM-W7"

Is there a way to do this without being "root" like I use to?

Many thanks,
-T

Grant Taylor

unread,
Dec 18, 2017, 10:30:03 PM12/18/17
to
On 12/18/2017 06:17 PM, T wrote:
> Is there a way to do this without being "root" like I use to?

Check KVM / libvirt documentation.

I have been able to tweak libvirt (et al) to allow members of a specific
group to access things as the normal unprivileged user.

Then it's a matter of making sure that your user is a member of that group.

Sorry, I don't have anything more specific handy.



--
Grant. . . .
unix || die

T

unread,
Dec 19, 2017, 1:04:56 AM12/19/17
to
Figured it out.

In virt mamager, you select a unique port for Spice and then simply run
$ remote-viewer spice://127.0.0.1:5903

I was trying to select a TLS port too, which tripped me up.
0 new messages