Re: [libvirt] [BUG?] "no domain with matching uuid" error, when vm restarts

2010-01-13 Thread su disheng
On Wed, Jan 13, 2010 at 2:39 AM, Daniel P. Berrange wrote: > On Tue, Jan 12, 2010 at 04:06:32PM -0800, su disheng wrote: > > Hi, > > In the following libvirt API calling sequence, I always get an error > "no > > domain with matching uuid" > > Connect _conn = new Connect("qemu:///system

Re: [libvirt] [BUG?] "no domain with matching uuid" error, when vm restarts

2010-01-13 Thread Daniel P. Berrange
On Tue, Jan 12, 2010 at 04:06:32PM -0800, su disheng wrote: > Hi, > In the following libvirt API calling sequence, I always get an error "no > domain with matching uuid" > Connect _conn = new Connect("qemu:///system", false); > _conn.domainDefineXML(kvm_guest_xml); > D

[libvirt] [BUG?] "no domain with matching uuid" error, when vm restarts

2010-01-12 Thread su disheng
Hi, In the following libvirt API calling sequence, I always get an error "no domain with matching uuid" Connect _conn = new Connect("qemu:///system", false); _conn.domainDefineXML(kvm_guest_xml); Domain dm = _conn.domainLookupByName(kvm_guest_name); dm.create(