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

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@rr018 ~]# virsh capabilities|grep kvm [root@rr018 ~]# su - roadrunner [roadrunner@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@rr018 ~]$ virsh capabilities|grep kvm <domain type='kvm'> <emulator>/usr/bin/kvm</emulator> <domain type='kvm'> [roadrunner@rr018 ~]$ exit logout [root@rr018 ~]# virsh capabilities|grep kvm [root@rr018 ~]# /etc/init.d/libvirtd restart libvirtd-Daemon beenden: [ OK ] libvirtd-Daemon starten: [ OK ] [root@rr018 ~]# virsh capabilities|grep kvm <domain type='kvm'> <emulator>/usr/bin/kvm</emulator> <domain type='kvm'> [root@rr018 ~]#

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@rr018 ~]# virsh capabilities|grep kvm [root@rr018 ~]# su - roadrunner [roadrunner@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@rr018 ~]$ virsh capabilities|grep kvm <domain type='kvm'> <emulator>/usr/bin/kvm</emulator> <domain type='kvm'> [roadrunner@rr018 ~]$ exit logout [root@rr018 ~]# virsh capabilities|grep kvm [root@rr018 ~]# /etc/init.d/libvirtd restart libvirtd-Daemon beenden: [ OK ] libvirtd-Daemon starten: [ OK ] [root@rr018 ~]# virsh capabilities|grep kvm <domain type='kvm'> <emulator>/usr/bin/kvm</emulator> <domain type='kvm'> [root@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).
participants (1)
-
Gerrit Slomma