diff -rup xen-3.1-testing.hg/tools/python/xen/xend/XendDomainInfo.py xen-3.1-testing-15432/tools/python/xen/xend/XendDomainInfo.py --- xen-3.1-testing.hg/tools/python/xen/xend/XendDomainInfo.py 2007-09-27 11:54:38.000000000 -0400 +++ xen-3.1-testing-15432/tools/python/xen/xend/XendDomainInfo.py 2007-09-27 12:43:20.000000000 -0400 @@ -2150,7 +2150,7 @@ class XendDomainInfo: raise VmError('Invalid VM Name') dom = XendDomain.instance().domain_lookup_nr(name) - if dom and dom.domid != self.domid: + if dom and dom.info['uuid'] != self.info['uuid']: raise VmError("VM name '%s' already exists%s" % (name, dom.domid is not None and