virt-manager / kvm

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

virt-manager / kvm

Postby tralalas » Thu Feb 07, 2013 20:35

Hi,

I recently changed to sabayon and am trying to get all my needed software to run. Unluckily I am struggeling with virt-manager.

I got the kvm to work (tested as user via qemu-kvm --boot d) but I don't get virt-manager to work. So I tested libvirtd via

$ sudo virsh sysinfo

and it works fine (answer: <sysinfo type='smbios'>....). But when I try is as a normal user I get this:

$ virsh sysinfo
Fehler: failed to get sysinfo
Fehler: unsupported configuration: Host SMBIOS information is not available
$ virsh -c qemu:///system sysinfo
Fehler: Verbindung zum Hypervisor scheiterte
Fehler: Authentifikation gescheitert: polkit\56retains_authorization_after_challenge=1
Authorization requires authentication but no agent is available.

This is my /etc/group
kvm:x:78:qemu,tralalas
qemu:x:77:tralalas
libvirt:x:1020:tralalas

and this my /etc/passwd
qemu:x:77:77:added by portage for libvirt:/dev/null:/sbin/nologin

this is my added
$ cat /etc/udev/rules.d/80-kvm.rules
KERNEL=="kvm", GROUP="kvm", MODE="0666"

and this the added
$ sudo nano /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla
[libvirt Management Access]
Identity=unix-group:libvirt
Action=org.libvirt.unix.manage
ResultAny=yes
ResultInactive=yes
ResultActive=yes

(I my desperation I tried from: http://www.howtoforge.com/how-to-instal ... networking and adjusted it to sabayon)

If I start virt-manager as root it works.. but staying all time root is obviously not a good idea.

Did anyone got virsh or virt-manager to run properly? I would be grateful for any hint! :-)
tralalas
Baby Hen
 
Posts: 1
Joined: Thu Feb 07, 2013 20:01

Re: virt-manager / kvm

Postby inktvis75 » Sun Mar 17, 2013 13:02

I created a KVM article in the wiki: https://wiki.sabayon.org/index.php?titl ... _Using_KVM
I hope that this article provides the solution for your problem.
inktvis75
Baby Hen
 
Posts: 7
Joined: Sun Mar 10, 2013 18:46


Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 1 guest