[libvirt-users] Pre-requisites to use Java bindings with QEMU

Eric Blake eblake at redhat.com
Wed May 15 16:10:56 UTC 2013


On 05/15/2013 09:57 AM, Lior Vernia wrote:
> Hello Eric,

[Please don't top-post on technical lists]

> 
> Thank you for your thorough answer. Of course if I don't have to run
> libvirtd as a privileged user, then I don't have any problem with
> interacting with QEMU through the standard mechanism.
> 
> So just to summarize, this is what I understand would suffice for my Java
> program to be able to manage VMs through the bindings:
> 1. Install QEMU, libvirt daemon and libvirt QEMU driver (no worries about
> the distribution-specific package names).

Correct.

> 2. Run libvirtd (probably with the -d flag?).

No need to do this manually; connecting to a qemu:///session URI will do
it automatically under the hood on your behalf.

> 3. Run Java program with same user that ran libvirtd, using the QEMU
> session (as opposed to system) URI.

Correct.

> 
> Please correct me if I got anything wrong or if I'm missing another
> dependency.

Nope, it sounds like you got it.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130515/c8080fe0/attachment.sig>


More information about the libvirt-users mailing list