[libvirt-users] How to tell if a hypervisor connection has died?

Guido Winkelmann guido-libvi at unknownsite.de
Fri Apr 26 17:22:02 UTC 2013


Am Donnerstag, 25. April 2013, 12:04:21 schrieb Eric Blake:
> On 04/25/2013 11:49 AM, Guido Winkelmann wrote:
> > Hi,
> > 
> > What's the best way to tell if a virConnect object is not good to use
> > anymore? (For example because the libvirtd on the other side crashed/has
> > been stopped or because of some network failure)
> 
> Try using virConnectIsAlive().

That did the trick, thanks!

	Guido




More information about the libvirt-users mailing list