[libvirt-users] "failed to connect to the hypervisor"

Martin Kletzander mkletzan at redhat.com
Wed Oct 21 12:55:26 UTC 2015

On Wed, Oct 21, 2015 at 08:41:20AM +0200, Martin Kletzander wrote:
>On Tue, Oct 20, 2015 at 11:59:03AM -0400, Ken D'Ambrosio wrote:
>>On 2015-10-20 05:33, Martin Kletzander wrote:
>>>On Mon, Oct 19, 2015 at 03:57:39PM -0400, Ken D'Ambrosio wrote:
>>>>Hi, all.  Ubuntu host, attempting to get virsh working with
>>>>VirtualBox... and failing.  Here's what happens:
>>>>root at foobox:~# virsh -c vbox:///session list
>>>>error: failed to connect to the hypervisor
>>>>error: internal error: unable to initialize VirtualBox driver API
>>>What version of VirtualBox do you have installed?  The logging in that
>>>driver is not particularly loud, so this won't tell you much more than
>>>the fact that the initialization just failed.  It's most probably
>>>something missing in your system or you have to new version installed.
>>You're on the money: I do have the latest and greatest (5.0.6) from
>>Oracle installed.  Despite some of its nifty features, I'm not wedded
>>to it, if downgrading will fix my underlying issue.  Is that the
>>recommended course of action?  Or is there something else I could do?
>Well, of course the best thing would be adding support for it into
>libvirt =)  If it is backwards compatible with the latest version that
>has support in libvirt, then it shouldn't be a problem, I think, but I
>have very limited experience with the vbox driver in libvirt.  Feel
>free to have a look at the code and let me know, I'm sure we'll come
>up with something.  In the meantime I'll compile the 5.0.8 version (so
>I don't have to agree with the PUEL license) and see what I can do.

So I went ahead, compiled the 5.0.8, installed it, modified libvirt to
use the 5.0.8 the same way as it already does use 4.3.4 and, of
course, they are not compatible.  I then spent some time looking at
the code and trying to find out what needs to be changed, but it
turned out the code is not easy to follow for someone who hadn't
looked at it.  I don't have enough time to work on that, but it might
be a good idea for someone to implement.  And the patches would be
very welcome, I believe =)

Have a nice day,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20151021/b35a0198/attachment.sig>

More information about the libvirt-users mailing list