Can anyone help solve this, please.
I have set up a PXE server using OPENWRT OpenWrt 18.06.4
on Linksys WRT 32X closely following these instructions:
https://openwrt.org/docs/guide-user/services/tftp.pxe-server
And it’s serving files.
But the process hangs and the screen is corrupted just displaying blue background and instead of normal installation process and incomplete output
Client machine is satellite P20 which is 32 bit & has nVIDIA GeForce FX Go5200 graphics controller. The distros are legacy/32 bit.
I have tftp on a 62Gb Kingston datatraveller attached to usb port formatted f2fs
Here are it’s contents:
root@OpenWrt:~# ls /mnt/sda1/tftp
images ldlinux.c32 libcom32.c32 libutil.c32 pxelinux.0 pxelinux.cfg vesamenu.c32
Here is default file:
root@OpenWrt:~# cat /mnt/sda1/tftp/pxelinux.cfg/default
DEFAULT vesamenu.c32
PROMPT 0
MENU TITLE OpenWrt PXE-Boot Menu
label lubuntu
MENU LABEL lubuntu
KERNEL images/lubuntu/casper/vmlinuz
APPEND boot=casper ide=nodma netboot=nfs nfsroot=192.168.0.1:/mnt/sda1/tftp/images/lubuntu initrd=images/lubuntu/casper/initrd.lz
TEXT HELP
Starts the Lubuntu 18.04 LTS i386
ENDTEXT
label bodhilinux
MENU LABEL bodhilinux
KERNEL images/bodhilinux/casper/vmlinuz
APPEND boot=casper ide=nodma netboot=nfs nfsroot=192.168.0.1:/mnt/sda1/tftp/images/bodhilinux initrd=images/bodhilinux/casper/initrd.lz
TEXT HELP
Starts the Bodhi Linux 5.0.0 Legacy
ENDTEXT
label fedora
MENU LABEL fedora
KERNEL images/Fedora-KDE-Live-31-1-9/images/pxeboot/vmlinuz
APPEND boot=pxeboot ide=nodma netboot=nfs nfsroot=192.168.0.1:/mnt/sda1/tftp/images/Fedora-KDE-Live-31-1-9/images/pxeboot/initrd.img
TEXT HELP
Starts the Fedora-KDE-Live-31-1-9
ENDTEXT
I cp -r the files to the /images directories from the isos
Because it wasn’t finding them in the subdirectories which had spaces in the names, corresponding to version
so images/lubuntu looks like this:
root@OpenWrt:~# ls /mnt/sda1/tftp/images/lubuntu
README.diskdefines casper install md5sum.txt pool ubuntu
boot dists isolinux pics preseed
root@OpenWrt:~# ls -l /mnt/sda1/tftp/images/lubuntu
-r--r--r-- 1 root root 229 Nov 14 16:42 README.diskdefines
dr-xr-xr-x 3 root root 3488 Nov 14 16:29 boot
dr-xr-xr-x 2 root root 3488 Nov 14 16:42 casper
dr-xr-xr-x 3 root root 3488 Nov 14 16:42 dists
dr-xr-xr-x 2 root root 3488 Nov 14 16:42 install
dr-xr-xr-x 2 root root 8192 Nov 14 16:42 isolinux
-r--r--r-- 1 root root 20664 Nov 14 16:50 md5sum.txt
dr-xr-xr-x 2 root root 3488 Nov 14 16:42 pics
dr-xr-xr-x 4 root root 3488 Nov 14 16:42 pool
dr-xr-xr-x 2 root root 3488 Nov 14 16:42 preseed
lrwxrwxrwx 1 root root 1 Nov 14 16:42 ubuntu -> .
I might have cp the ubuntu directory above in error but nothing is calling it and I get exactly the same hang with the bodhilinux distro, which looks like this:
root@OpenWrt:~# ls -l /mnt/sda1/tftp/images/bodhilinux
drwxr-xr-x 3 root root 3488 Nov 14 16:52 EFI
drwxr-xr-x 2 root root 3488 Nov 14 16:52 ISOLINUX
-rw-r--r-- 1 root root 205 Nov 14 16:52 README.diskdefines
drwxr-xr-x 3 root root 3488 Nov 14 16:52 boot
drwxr-xr-x 2 root root 3488 Nov 14 16:52 casper
drwxr-xr-x 3 root root 3488 Nov 14 16:52 dists
drwxr-xr-x 2 root root 3488 Nov 14 16:52 install
drwxr-xr-x 2 root root 3488 Nov 14 16:52 isolinux
-rw-r--r-- 1 root root 20664 Nov 14 16:52 md5sum.txt
drwxr-xr-x 2 root root 3488 Nov 14 16:52 preseed
-rw-r--r-- 1 root root 0 Nov 14 16:52 ubuntu
When I choose lubuntu the process loads with normal full screen output & unpacks initramfs
then screen goes blue
and appears to be showing quite a lot of partial output, some stretching off-screen and parts of the screen do not appear to be displaying.
Output including like this:
..premount done
no lock begin trying linux cdrom
connection refused
Then the process halts saying.
27.2-2ubuntu3) built-in shell (ash)
system on network
init done
Openwrt syslog looks like this:
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: failed sending /mnt/sda1/tftp/pxelinux.0 to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/pxelinux.0 to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/ldlinux.c32 to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/pxelinux.cfg/default to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/vesamenu.c32 to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/libcom32.c32 to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/libutil.c32 to 192.168.0.181
Fri Nov 15 13:08:27 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/pxelinux.cfg/default to 192.168.0.181
Fri Nov 15 13:08:32 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/images/bodhilinux/casper/vmlinuz to 192.168.0.181
Fri Nov 15 13:08:42 2019 daemon.info dnsmasq-tftp[3370]: sent /mnt/sda1/tftp/images/bodhilinux/casper/initrd.lz to 192.168.0.181
I am questioning:
Should I have used dd instead of cp?
Should I have copied the entire .iso file instead of burning it and cp ing individual the files within it?
Does PXE for some or no reason require a sub directory, not just /lubuntu?
But, as stated above, pxe can’t find the files if they have spaces in their names, it reads each section of the filename and says no such file or directory (when it is there)
And, PXE is working, it’s the booting of the distros that is hanging...
So is it something else?