[Pkg-libvirt-maintainers] Bug#593365: Bug#593365: Virt-manager with libvirt 0.8.2-1 can't connect to server running Lenny anymore

Guido Günther agx at sigxcpu.org
Fri Oct 1 08:00:45 UTC 2010


Hi Jeroen,
thanks for reporting back.

On Fri, Oct 01, 2010 at 02:22:40AM +0200, Jeroen Dekkers wrote:
> It's strange that you can't reproduce the bug, because I just
> installed 2 virtual machines in virtualbox, one lenny with libvirtd
> and one squeeze with virt-manager and I see the problem there.
It still can't reproduce this as is but I have an idea. That's the
function on Lenny's libvirtd that seems to be failing since you upgraded
virt-manager on Squeeze:

int qemudExtractVersion(virConnectPtr conn,
                        struct qemud_driver *driver) {
    const char *binary;
    struct stat sb;

    if (driver->qemuVersion > 0)
        return 0;

    if ((binary = virCapabilitiesDefaultGuestEmulator(driver->caps,
                                                      "hvm",
                                                      "i686",
                                                      "qemu")) == NULL)
        return -1;

    if (stat(binary, &sb) < 0) {
        qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
                         _("Cannot find QEMU binary %s: %s"), binary,
                         strerror(errno));
        return -1;
    }

    if (qemudExtractVersionInfo(binary, &driver->qemuVersion, NULL) < 0) {
        return -1;
    }

    return 0;
}

It checks three error conditions but only sets an error message for one
of them. Can I ask you to try the attached patch against 0.4.6 and see
if it changes the error message? This should get us closer to the cause.

What version of kvm are you running on the Lenny system? I assume the
one from Lenny? Could you also check if deinstalling it and running qemu
instead does any difference?

Cheers,
 -- Guido
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-handling.diff
Type: text/x-diff
Size: 1120 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20101001/2b4adecf/attachment.diff>


More information about the Pkg-libvirt-maintainers mailing list