Re: [libvirt] Re: [PATCH 0/3] A small example program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange wrote:
On Fri, Jan 30, 2009 at 02:10:58PM +0100, Jim Meyering wrote:
Hi David,

I've just applied your 3 patches and built the example.
That went fine.  Then I tried to run it like this:

     $ LIBVIRT_DEBUG=1 libvirtd 2> log & pid=$!
     $ ./hellolibvirt
     Attempting to connect to hypervisor
     Connected to hypervisor at "qemu:///session"
? -> Failed to get hypervisor version

This shows a place where the example program could use the libvirt error information - it should have received error message to the effect of

  'Cannot find QEMU binary /usr/bin/qemu'

when qemudExtractVersion failed to find the binary it wanted

I should illustrate getting the error messages in the example. I'll put it in. Did you deliberately break your system to provoke the failure? I had to rename /usr/bin/qemu to get it.

Dave

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]