From: David Becker Subject: xc_domain_create problem Date: Fri, 13 Feb 2004 16:15:55 -0500 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20040213211555.GY8763@cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org I pulled the latest xeno-1.2.bk this morning and am getting a glitch in xc.domain_create The domain ID it returns is a large bogus 64 bit number This prints 'created 4613842385142171136 (4007a934400a4600)' id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name ) output ('created %d (%x) ' % (id, id)) A sane domain id appears from 'xc_dom_control.py list', but the domain scripts fail because they use the bogus id returned from xc.domain_create If I know the next ID that will get created (eg. 13), I can successfully start up a new ID with something like this in xc_dom_create.py: id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name ) id = 13 The sources actually look OK. xc_domain_create says u64 *pdomid *pdomid = (u64)op.u.createdomain.domain; and pyxc_domain_create says u64 dom; xc_domain_create(xc->xc_handle, mem_kb, name, &dom) return PyLong_FromUnsignedLongLong(dom); so I would expect xc.domain_create to return the right number. This is all with xen, xenolinux and the utils built from the current 1.2 tree with gcc version 3.3.2 (Debian) and Python 2.3.2 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click