[libvirt-users] Problems connecting to Virtualbox hypervisor using libvirt java binding

Matthias Bolte matthias.bolte at googlemail.com
Wed May 11 19:37:52 UTC 2011


2011/5/11 Tarciso Oliveira <tarcisocomp at gmail.com>:
> I am trying to connect to the virtualbox hypervisor through libvirt java
> binding.
>
> I am on Ubuntu 10.04 and I have installed libvirt-0.85, libvirt-java-0.4.6
> and virtualbox-ose-dkms. I have configured libvirt project and its java
> binding at Eclipse and the default test of the binding runs properly. When I
> try to run a simple test in java with the connection:
>
> conn = new Connect("vbox:///session", false)
>
> I get the following exception: "exception caught:org.libvirt.
>
> LibvirtException: Failed to start the nwfilter driver: Is the daemon running
> ?"

This is actually a warning, but the Java bindings report it as an
exception. This is fixed in libvirt-java 0.4.7

> If I try to do the same thing, but instead of using the java biding I  use
> virsh, it works. I am able to connect and start the virtual machine
> successfully, although none of the nwfilter commands work in virsh.

That's expected because virConnectOpen doesn't actually fail and
therefore virsh ignores the warning.

Actually, recent libvirt stopped reporting this warning at all.

Matthias




More information about the libvirt-users mailing list