[Libvir] Web Interface Question

Richard W.M. Jones rjones at redhat.com
Mon Apr 7 15:25:32 UTC 2008

On Mon, Apr 07, 2008 at 04:12:42PM +0100, Henri Cook wrote:
> Yes, the perl bindings with 0.4.0 at least often error - e.g. how do I
> check whether a domain is online? I could list all the domains or I
> could simply try and retrieve the domain by name, if error 42 (the
> 'unknown' error) comes back then the domain is not online.

Yes, you should try to retrieve the domain by name, and you'll either
get the domain object (if it exists) or a NULL + some sort of error.


Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.

More information about the libvir-list mailing list