[libvirt-users] Fwd: undefining and redefining a Domain from libvirt java bindings

Matthias Bolte matthias.bolte at googlemail.com
Tue Oct 12 14:31:33 UTC 2010


2010/10/12 Ravi Pawar <ravifc at gmail.com>:
> hi,
>
> i am trying to undefine a domain  by using dm.undefine();
> and then trying to create one with same name is giving me error saying
> 'Domain not found: no domain with matching uuid
> 'aeae9d4e-17cb-b661-a612-88ac677c28c1'
>
> i have attached my test program which reproduces the issue.
>
> please let me know where i am going wrong?
>
> configuration: libvirt : 0.6.3
>                     Java Bindings: 0.4.2

I didn't look into this problem in detail, but I think you need to
call free on the Domain object after you undefined it.

dm.undefine();
dm.free();
dm = null;

Matthias




More information about the libvirt-users mailing list