On Mon, 2010-04-12 at 15:21 +0100, Daniel P. Berrange wrote: > It is a subtle issue crossing several layers. libvirt internally > caches > virDomainPtr instances based on name. You created a object in the perl > layer '$dom' with the name, and then you create a new instance with > the > same name, but assign to a diferent perl object '$newdom'. This means > that the old virDomainPtr associated with $dom still exists. If you > explicitly set '$dom = undef' before creating the second domain you > should release the old handle & make it all work as expected thanks for the explanation .. my script now works as expected. BTW, additional test cases for libvirt-TCK should be send as patches to this list, correct? -- Best regards, Gerhard Stenzel, ----------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list