diff -durN tools.orig/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/XendDomainInfo.py --- tools.orig/python/xen/xend/XendDomainInfo.py 2005-01-27 01:06:28.840379840 +0100 +++ tools/python/xen/xend/XendDomainInfo.py 2005-01-25 16:20:44.000000000 +0100 @@ -449,9 +449,9 @@ self.init_domain() self.configure_console() + self.configure_backends() self.construct_image() self.configure_restart() - self.configure_backends() deferred = self.configure() def cberr(err): self.destroy() diff -durN tools.orig/python/xen/xend/server/netif.py tools/python/xen/xend/server/netif.py --- tools.orig/python/xen/xend/server/netif.py 2005-01-25 10:09:39.000000000 +0100 +++ tools/python/xen/xend/server/netif.py 2005-01-27 01:19:29.043770896 +0100 @@ -140,7 +140,8 @@ self.ipaddr = self._get_config_ipaddr(config) or [] try: - self.backendDomain = int(sxp.child_value(config, 'backend', '0')) + xd = get_component('xen.xend.XendDomain') + self.backendDomain = int(xd.domain_lookup(sxp.child_value(config, 'backend', '0')).id) except: raise XendError('invalid backend domain') @@ -161,7 +162,8 @@ bridge = sxp.child_value(config, 'bridge') script = sxp.child_value(config, 'script') ipaddr = self._get_config_ipaddr(config) - backendDomain = sxp.child_value(config, 'backend', '0') + xd = get_component('xen.xend.XendDomain') + backendDomain = str(xd.domain_lookup(sxp.child_value(config, 'backend', '0')).id) if (mac is not None) and (mac != self.mac): raise XendError("cannot change mac") if (backendDomain is not None) and (backendDomain != str(self.backendDomain)):