[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Problem with the domain builder


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 26 Apr 2007 13:21:18 +0200
  • Delivery-date: Thu, 26 Apr 2007 04:20:00 -0700
  • Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=yfEqUd7ixlDCsVZrqbb5rNxzuR3ZDE/beTMwa8+Erg2MX3bHfQnmaSODCfwbyUEt4gy81Q51MzEh7+MHKMADCD6bn+7h7d9ET2luM+TW2UxpCdbCHZdAi3cAo9AKmTnh;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I tried to start a rudimentary domU but got the following failure:
Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n')
In /var/log/xen/domain-builder-ng.log I found the line:
xc_dom_check_gzip: size (zip 4575, unzip 41219) looks insane, skip gunzip
I looked at the code in libxc/xc_dom_core.c and found the following check in 
the xc_dom_check_gzip() function:
if ( (unziplen < ziplen) || (unziplen > (ziplen * 8)) )
{
        xc_dom_printf
            ("%s: size (zip %zd, unzip %zd) looks insane, skip gunzip\n",
             __FUNCTION__, ziplen, unziplen);
        return 0;
}
So my question is, where is the factor 8 came from?
In my case the image is 41219 bytes and the zipped image is 4575 bytes and 
therewith the factor is 9 and the image got not started.
I removed the second check and all went fine.

Is there a real reason for this?
Thanks.

Dietmar

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.