[libvirt] discrepancies in issuing virsh capabilities with different user-accounts

Gerrit Slomma roadrunner_gs at web.de
Wed May 6 19:09:58 UTC 2009


Gerrit Slomma schrieb:
> Hello
>
> When doing a virsh capabilities with root i get a different output 
> than when issuing the command with my own unprivileged account 
> roadrunner.
> Furthermore the first issuing of the command as roadrunner throws a 
> error-message.
> Restarting of the libvirt-daemon gives the correct output.
> Sample:
>
> Last login: Wed May  6 21:00:56 2009 from 192.168.1.120
> [root at rr018 ~]# virsh capabilities|grep kvm
> [root at rr018 ~]# su - roadrunner
> [roadrunner at rr018 ~]$ virsh capabilities|grep kvm
> libvir: Remote Fehler : unable to connect to 
> '@/home/roadrunner/.libvirt/libvirt-sock': Verbindungsaufbau abgelehnt
> Fehler: Verbindung zum Hypervisor scheiterte
> Failed to bind socket to '@/home/roadrunner/.libvirt/libvirt-sock': 
> Address already in use
> Failed to bind socket to '@/home/roadrunner/.libvirt/libvirt-sock': 
> Address already in use
> Failed to bind socket to '@/home/roadrunner/.libvirt/libvirt-sock': 
> Address already in use
> Failed to bind socket to '@/home/roadrunner/.libvirt/libvirt-sock': 
> Address already in use
> ^C
> [roadrunner at rr018 ~]$ virsh capabilities|grep kvm
>      <domain type='kvm'>
>        <emulator>/usr/bin/kvm</emulator>
>      <domain type='kvm'>
> [roadrunner at rr018 ~]$ exit
> logout
> [root at rr018 ~]# virsh capabilities|grep kvm
> [root at rr018 ~]# /etc/init.d/libvirtd restart
> libvirtd-Daemon beenden:                                   [  OK  ]
> libvirtd-Daemon starten:                                   [  OK  ]
> [root at rr018 ~]# virsh capabilities|grep kvm
>      <domain type='kvm'>
>        <emulator>/usr/bin/kvm</emulator>
>      <domain type='kvm'>
> [root at rr018 ~]#

I forgot to mention: The sample is from a Fedora 10 with kvm-84 (built 
from sourceforge-repo) and libvirt-0.5.1-2.fc10 but this applies also to 
RHEL 5.3 with kvm-85 (built from sourceforge-repo) and libvirt-0.6.3 
(built from libvirt.org sources).




More information about the libvir-list mailing list