[libvirt] Re: [PATCH 0/3] A small example program
Dave Allan
dallan at redhat.com
Fri Jan 30 16:23:29 UTC 2009
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
More information about the libvir-list
mailing list