WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Problem with the domain builder

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Problem with the domain builder
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;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
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

<Prev in Thread] Current Thread [Next in Thread>