pxe atftp blocksize error

599 views
Skip to first unread message

Pavol Domin

unread,
Aug 16, 2013, 12:07:22 PM8/16/13
to kiwi-...@googlegroups.com
Hello,

I am trying to deploy OEM kiwi image over PXE


Just before image dump phase, deployment fails with the error:

"Maximum blocksize for atftp protocol exceeded"

config.xml has just
                <type image="oem"
                      installpxe="true"
                      boot="oemboot/suse-SLES11"
                      installiso="true"
                      ...

Image md5 file lists

a5095ff0c1c3de9f060ef39496e42420   562688 8192

and worth remarking that gzipped image size is 1GB

What am I doing wrong?


Kind regards

Pavol

Marcus Schäfer

unread,
Aug 16, 2013, 2:37:28 PM8/16/13
to kiwi-...@googlegroups.com
Hi,

> Hello,
> I am trying to deploy OEM kiwi image over PXE
> Just before image dump phase, deployment fails with the error:
> "Maximum blocksize for atftp protocol exceeded"

the atftp protocol has a limit for blocksize and number of blocks
you can transfer only 65535 * 65464 = 4290183240 bytes ~ 4G
according to the md5 information 562688 * 8192 = 4609540096 is more
than the maximum.

> config.xml has just
> <type image="oem"
> installpxe="true"
> boot="oemboot/suse-SLES11"
> installiso="true"

I'm missing the

compressed="true"

attribute if the image should be compressed and transfered
compressed. Only that attribute causes additional blocks and
blocksize information for the transfer of the compressed
version stored in the md5 file

> ...
> Image md5 file lists
> a5095ff0c1c3de9f060ef39496e42420 562688 8192
> and worth remarking that gzipped image size is 1GB
> What am I doing wrong?

question is how did you compress the image ? by a manual gzip call ?
if so you should add the compressed attribute and let kiwi rebuild
the image with the needed compressed block/blocksize data

Hope that helps

Regards,
Marcus
--
Public Key available
gpg --keyserver gpg-keyserver.de --recv-keys 0xCCE3C6A2
-------------------------------------------------------
Marcus Schäfer (Res. & Dev.) SUSE LINUX Products GmbH
Tel: 0911-740 53 0 Maxfeldstrasse 5
FAX: 0911-740 53 479 D-90409 Nürnberg
GF: Jeff Hawn,Jennifer Guild, Felix Imendörffer
HRB: 21284 (AG Nürnberg) Germany
http://www.suse.de
-------------------------------------------------------

Pavol Domin

unread,
Aug 16, 2013, 5:54:23 PM8/16/13
to kiwi-...@googlegroups.com
Hi,


question is how did you compress the image ? by a manual gzip call ?
if so you should add the compressed attribute and let kiwi rebuild
the image with the needed compressed block/blocksize data
 
No manual gzip call. I just followed section 14.3.5 of kiwi doc: extracted the tarball created by kiwi build, which contains PXE kernel, initrd, menu append file, gziped image and md5 file. I moved those files to the proper subdirs in tftp root.

I now tried also explicit specification of the 'compressed=true' image with the same result. Is there a way to tell kiwi dump process to negotiate on the larger blocksize with the atftpd server? If no, the only other chance would be kiwiserver boot option, right?



kind regards

Pavol

Marcus Schäfer

unread,
Aug 17, 2013, 4:06:44 PM8/17/13
to kiwi-...@googlegroups.com
Oh yes you are so right, the zblock/zblocksize information is missing
in the data created with installpxe="true". I fixed this. Please find
attached a patch which should solve it

Thanks for the report
kiwi.patch

Pavol Domin

unread,
Aug 22, 2013, 6:33:21 AM8/22/13
to kiwi-...@googlegroups.com
Hi Marcus,

I finally get to test the patch, its still fails at same point, now on tftp server side error:
Aug 22 12:24:43 XXXXXXX atftpd[6708]: Serving /image/xxxxxxxxxxxxxxxxxxxxxx.gz to xxx.xxx.xxx.xxx:38182
Aug 22 12:24:43 XXXXXXX atftpd[6708]: received RRQ <filename: /image/xxxxxxxxxxxxxxxxxxxxxxx.gz, mode: octet, >
Aug 22 12:24:43 XXXXXXX atftpd[6708]: Requested file too big, increase BLKSIZE
Aug 22 12:24:43 XXXXXXX atftpd[6708]: Only 500000 blocks of 516 bytes can be served.
Aug 22 12:24:43 XXXXXXX atftpd[6708]: sent ERROR <code: 0, msg: Undefined error code>

The md5 file now gets blocksize like:
#cat image/*md5
02eb182a9778d9dd8e06676664d6bc19   562688 8192 2106259 494

Kind regards

Pavol



--
You received this message because you are subscribed to the Google Groups "kiwi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kiwi-images...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Pavol Domin

unread,
Aug 22, 2013, 8:40:54 AM8/22/13
to kiwi-...@googlegroups.com
Hi,

Sorry, ignore the previous mail, my atftpd server has been running with blocksize negotiation disabled.
Everything is fine, i am dumping now from tftp server.


Kind regards

Pavol

Reply all
Reply to author
Forward
0 new messages