Networking - kanotix-terminalserver problem

chipwich - 28.04.2006, 18:17 Uhr
Titel: kanotix-terminalserver problem
Can someone please confirm the behavior of the knoppix-terminalserver program?

I'm having a problem getting client machines to boot using PXE via the kanotix-terminalserver script.

The client which is booting, gets an address via DHCP, but then just sits waiting for the TFTP boot to occur which never happens.

I believe that there is a problem that the script runs out of space when it writes the boot files, but I'm not familiar enough with the operations of the script to debug it further. Here's what I get when I start the terminalserver script from a freshly booted kanotix-easter-rc2 liveCD:

(Note that I the only configuration I performed vie the GUI was adding the 100.ko ethernet driver, and unselecting secure and masq options.)

knoppix@0[knoppix]$ kanotix-terminalserver
Making Mini Rootdisk.
1+0 records in
1+0 records out
16777216 bytes (17 MB) copied, 0.097973 seconds, 171 MB/s
cp: cannot stat `(0xffffe000)': No such file or directory
cp: cannot stat `(0xffffe000)': No such file or directory
cp: cannot stat `/lib/modules/*/*/cloop.*o': No such file or directory
1+0 records in
1+0 records out
16777216 bytes (17 MB) copied, 9.61884 seconds, 1.7 MB/s
Disk full

mkelf-dos is preferred in future instead of mknbi-dos
Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Starting DHCP server: dhcpd3.
Starting portmap daemon....
Starting NFS common utilities: statd.
Exporting directories for NFS kernel daemon...done.
Starting NFS kernel daemon: nfsd mountd.

It looks to me like the script runs out of space when writing a file to 85%. I've gotten terminalservers from other distributions working fine and they don't report this error. I've also verified this behavior using a few different machines to serve the boot (e.g. machines running the liveCD), and several different machines trying to boot via PXE.

Thanks for any help with this issue. Kanotix is (by far!) my favorite distribution.
slh - 28.04.2006, 22:06 Uhr
Titel: kanotix-terminalserver problem
Maybe you should update that package, but no it won't become functional that way either (just problem/ blame shifting).

Patches (very) welcome.
chipwich - 06.05.2006, 09:34 Uhr
Titel: Isolating the problem
I haven't solved my problem, but I'm posting some new info in case anyone else is struggling with the same problem.

The kanotix-terminalserver script looks like it's straight from the knoppix-terminalserver script. I've tracked the problem down to the mketherboot() function, which seems to construct a virtual MSDOS disk (an MSDOS disk residing in the file /tmp/net-boot.img) using the mformat and mcopy commands. The script creates the virtual disk and copies the necessary files for boot via the command:

mformat -C -t 160 -s 36 -h 2 x:
mcopy /tftpboot/pxelinux.cfg/default x:syslinux.cfg
mcopy /tftpboot/vmlinuz /tftpboot/miniroot.gz \
/usr/share/kanotix-terminalserver/templates/tftpboot/* x:

which seems to fail because the virtual MSDOS disk is tool. The sizes of the files are:

-rw-r--r-- 1 root root 1156 May 6 03:59 /tftpboot/pxelinux.cfg/default
-rw-r--r-- 1 root root 2353317 May 6 03:59 /tftpboot/vmlinuz
-rw-r--r-- 1 root root 2456839 May 6 03:59 /tftpboot/miniroot.gz
-rw-r--r-- 1 root root 77 Aug 23 2005 /usr/share/kanotix-terminalserver/templates/tftpboot/boot.msg
-rw-r--r-- 1 root root 256 Aug 23 2005 /usr/share/kanotix-terminalserver/templates/tftpboot/german.kbd

which is probably why it fails, because the MSDOS disk appears to be 2.3 MB from the following:



I can get the error to disappear by doubling the MSDOS disk size:

mformat -C -t 160 -s 36 -h 2 x:

unfortunately, I still can't get the client to boot via PXE. I know nothing about the PXE boot process. It looks like the server constructs a bootable disk and then exports it via TFTP. Perhaps there is a limitation on the size of the bootable size.

So, I'm well beyond my expertise here, but it looks like the options are:

1) Reduce the size of the vmlinuz and miniroot.gz images until they fit on the exported disk (unlikely)
2) Increase the size of the bootable disk (done, but without knowledge of PXE seems unlikely to work)
3) Check latest KNOPPIX to see if/how the terminalserver script works

Seems like option 3 is the only realistic chance of getting this to work.

Of course, there could be 2 separate problems: The MSDOS disk is too small and something else is preventing my system from booting via PXE, but I hope this isn't the case...
slh - 06.05.2006, 14:58 Uhr
Titel: Isolating the problem
Like I already said, the size issues are fixed for quite some time (if you just update kanotix-terminalserver)... But there are other issues remaining.
chipwich - 06.05.2006, 15:56 Uhr
Titel: Re: Isolating the problem
slh hat folgendes geschrieben::
Like I already said, the size issues are fixed for quite some time (if you just update kanotix-terminalserver)... But there are other issues remaining.

Sorry. I didn't initially understand what you meant about updating the package. Since the terminalserver problem has existed on the last few kanotix liveCDs, I assumed that the problem wasn't related to an old version, but rather something which hadn't yet been fixed.

So now I've tried updating the package, but it looks like the debian sources are misconfigured.

apt-get update



which both work from my older kanotix hd-install and from the latest Knoppix liveCD fail on my kanotix-easter-rc2 liveCD. I reset the root password so that I can use kpackage, but it doesn't seem to go to the net to update the package list and at the end fails with an error that it is unable to write to /var/cache/apt.

I'll search for a fix for this, but I'm starting to feel like I'm unwrapping an onion and each layer takes a while to get through...
panticz - 18.05.2006, 15:14 Uhr
here is a patch for the terminalserver:

Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007