[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Move ImageHandler.create call to initDomain, after the call to xc.domain_create.
# HG changeset patch # User emellor@ewan # Node ID b2c9acd6fdfc8d8ef6c58664dca109d8b18be8b1 # Parent 5805b47583ba651e5778c4964bbc319f9b88deb5 Move ImageHandler.create call to initDomain, after the call to xc.domain_create. This ensures that ImageHandler has the correct domain ID available to it, which seems sensible in general, and is necessary for the VMX VNC support in particular. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 5805b47583ba -r b2c9acd6fdfc tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Fri Sep 23 15:05:37 2005 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Sep 23 15:50:02 2005 @@ -614,7 +614,7 @@ sxpr.append(['maxmem', self.info['maxmem_KiB'] / 1024]) if self.infoIsSet('device'): - for (n, c) in self.info['device']: + for (_, c) in self.info['device']: sxpr.append(['device', c]) def stateChar(name): @@ -706,13 +706,6 @@ """ # todo - add support for scheduling params? try: - if 'image' not in self.info: - raise VmError('Missing image in configuration') - - self.image = ImageHandler.create(self, - self.info['image'], - self.info['device']) - self.initDomain() # Create domain devices. @@ -737,6 +730,14 @@ self.domid = xc.domain_create(dom = self.domid or 0, ssidref = self.info['ssidref']) + + if 'image' not in self.info: + raise VmError('Missing image in configuration') + + self.image = ImageHandler.create(self, + self.info['image'], + self.info['device']) + if self.domid <= 0: raise VmError('Creating domain failed: name=%s' % self.info['name']) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |