[libvirt-users] Start of libvirtd fails with error "undefined symbol: __virAlloc"

Hello List like described in the topic I have a problem with starting the libvirtd. I'm a complete newbie with libvirtd, today I heard the first time that such a daemon exists after I get the message that our webserver isn't running (a former colleague has installed this system). We have the following configuration: A Ubuntu based host on which our webserver runs within a qemu virtual machine. The following happens: Yesterday the host restarted (at the moment we don't know the reason) and since this restart libvirtd did not start up. How I found that out: When I try to start the virtual machine with "virsh start z-web" I get the error: "Connecting to uri: qemu:///session libvir: Remote error : unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory error: failed to connect to the hypervisor" As explained, I'm a total Newbie with libvirtd. So as far as I know, the libvirt-sock is generated by libvirtd when it's running. I don't know the right way how to start libvirtd. I tried it by just typing "libvirtd", but that generates this error: "libvirtd: symbol lookup error: libvirtd: undefined symbol: __virAlloc". I can't find any log-entry that gives me more information about this error. Does anybody can help me with this problem? In which logfiles does libvirtd normaly writes such errormessages? Or what can the problem be? If you need more information about the configuration or something else, I can find that out, if you tell me where ;) Thanks alot for your help! Kind regards, Steffen ________________________________ Steffen Langenbach IT-Administration Tel: +49 6151 50031-66 Fax: +49 6151 50031-40 Steffen.Langenbach@mechatronic.de [http://www.mechatronic.de/fileadmin/gfx/mechatronic_mail.jpg] ________________________________ Mechatronic AG • Wittichstraße 2, 64295 Darmstadt; DE • Tel +49 6151 50031-66 • Fax +49 6151 50031-40 ________________________________ Diese E-Mail enthält vertrauliche Informationen. Wenn Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Die Anfertigung unerlaubter Kopien, die Weitergabe der Information sowie die unbefugte Weitersendung der E-Mail ist nicht gestattet. This e-mail contains confidential information. If you wrongly received this e-mail, please inform the sender immediately and delete this e-mail. Unauthorised copying, disclosure or distribution of this e-mail is strictly forbidden. Amtsgericht: Darmstadt, Sitz: Darmstadt, HRB 9437 Vorstand: Thomas Ullmann (Vors./CEO) Vorsitzender des Aufsichtsrats: Dr. Alexander Geilert

On 10/24/2011 10:02 AM, Langenbach, Steffen wrote:
Hello List
like described in the topic I have a problem with starting the libvirtd. I'm a complete newbie with libvirtd, today I heard the first time that such a daemon exists after I get the message that our webserver isn't running (a former colleague has installed this system). We have the following configuration: A Ubuntu based host on which our webserver runs within a qemu virtual machine. The following happens: Yesterday the host restarted (at the moment we don't know the reason) and since this restart libvirtd did not start up. How I found that out: When I try to start the virtual machine with "virsh start z-web" I get the error: "Connecting to uri: qemu:///session libvir: Remote error : unable to connect to '/var/run/libvirt/libvirt-sock': No such file or directory error: failed to connect to the hypervisor" As explained, I'm a total Newbie with libvirtd. So as far as I know, the libvirt-sock is generated by libvirtd when it's running. I don't know the right way how to start libvirtd. I tried it by just typing "libvirtd", but that generates this error: "libvirtd: symbol lookup error: libvirtd: undefined symbol: __virAlloc".
Generally, you would start libvirtd via your system's service management utilities, such as 'service libvirtd start', rather than directly invoking the binary. That way, it gets started with the right privileges and daemonization patterns. Your particular error makes it sound like you have a botched installation; generally, a symbol not found message is an indication that the libvirtd binary depends on libvirt.so, but that your ld.so can't find the proper version of libvirt.so in any of the usual places. Are you using a distro build (if so, reinstall the libvirt package) or a self-built binary (if so, double-check your configuration and installation parameters).
I can't find any log-entry that gives me more information about this error.
For an entry point not found error, there won't be any log message - your libvirtd (actually, ld.so) was dying even before it gets to main(). -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Langenbach, Steffen