On Fri, Jan 30, 2009 at 02:32:00PM +0100, Jim Meyering wrote:
Jim Meyering <jim(a)meyering.net> wrote:
> I've just applied your 3 patches and built the example.
> That went fine. Then I tried to run it like this:
...
> $ kill $pid
> $ LIBVIRT_DEBUG=1 ../../qemud/libvirtd 2> log &
> $ ./hellolibvirt
> Attempting to connect to hypervisor
> Connected to hypervisor at "qemu:///session"
> ? -> libvir: error : Unknown failure
> Failed to get hypervisor version
> Disconnected from hypervisor
> [Exit 1]
>
> This is on F10 x86_64.
FYI, I poked around in the server to see what was going wrong.
qemudGetVersion calls qemudExtractVersion, which calls
virCapabilitiesDefaultGuestEmulator, which compares the
single guest cap and gets an arch mismatch:
Hmm, it should use the native arch - virExtractVersionInfo needs
fixing to call uname, and extract the native arch. Hardcoding
i386 was sufficient, when we mandated that 'qemu' was always
present, but now we allow either qemu or KVM, so we need to
always use native. NB, i3/4/586 should be mapped to i686.
Daniel
--
|: Red Hat, Engineering, London -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://ovirt.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|