WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PXE Boot  (Read 577 times)

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 252
Re: PXE Boot
« Reply #15 on: June 20, 2022, 03:16:21 AM »
Quote
By default it is saved in /etc/sysconfig/tcedir and will be restored on boot.

i did a reboot as a test i had to to do every thin again from the beginning nothing was restored and the  file /mnt/nfs/ws1/tce/mydata.tgz  disappear :-\

and i don't understand how should it be restored if it not saved on the bootserver somewhere ?
« Last Edit: June 20, 2022, 03:32:23 AM by Rabie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13853
Re: PXE Boot
« Reply #16 on: June 20, 2022, 03:40:15 AM »
isn't nfs.lst just the nfs list for listing the extensions i need on boot like the file "onboot.lst" take just the tcz files ?

And in the directory optional are all extensions with all  *tcz.dep and *tcz.md5.txt ?

Ah - I misunderstood, yes, onboot.lst only needs the extension name

Offline tacpilot

  • Newbie
  • *
  • Posts: 28
Re: PXE Boot
« Reply #17 on: June 20, 2022, 08:09:20 AM »
Quote
i did a reboot as a test i had to to do every thin again from the beginning nothing was restored and the  file /mnt/nfs/ws1/tce/mydata.tgz  disappear :-\
There is a lot going on at your end after boot. Take a step back and lets make sure
every thing is correct at square one before making any changes.

first and foremost .. ensure that /mnt/nfs is a sustained mount  from
the worker nodes to the server and not just a directory thats been populated post boot.

the worker nodes must maintain this mount point to the server in
order for node related changes to be persistent across boots

if the node to server network mount point is not maintained you
need to work on the nfs side of things before doing any thing else.
Never limit your creativity by the imagination of others.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10217
Re: PXE Boot
« Reply #18 on: June 20, 2022, 08:41:21 AM »
Hi Rabie
OK, after rereading the Wiki multiple times, I think I'm starting to see what's going on.

nfs/ws1: ws1 is the directory workstation #1 will use. Other workstations will need their own directories.

Note - Unlabeled quotes are from:
https://web.archive.org/web/20200209190220/http://wiki.tinycorelinux.net/wiki:netbooting#putting_it_all_together
Quote
Note: If you are running Core 5.2 or newer, nfs-utils depends on rpcbind,tcz and libtirpc.tcz. These will need to be added to the nfs.list.
That is because TFTP loads only what is in the list. I don't think it uses  tce-load  so it does not resolve dependencies.

Make sure the  nfs/ws1/  directory includes  nfs-utils.tcz, rpcbind,tcz and libtirpc.tcz.
Make sure the  nfs/ws1/nfs.list  file contains only:
Code: [Select]
nfs/ws1/nfs-utils.tcz
nfs/ws1/rpcbind,tcz
nfs/ws1/libtirpc.tcz.
I'm not sure whether leading slashes belong there or not. The Wiki shows it both ways depending on where you look.

Create a  nfs/ws1/tce/onboot.lst  containing:
Code: [Select]
graphics-KERNEL.tcz
xf86-video-intel.tcz
Xorg-7.7.tcz
wireless_tools.tcz
firmware-iwl9000.tcz
firmware-iwlax20x.tcz
firmware-iwlwifi.tcz
firmware-rtl_nic.tcz
openbox-config.tcz
aterm.tcz
wbar.tcz
nano.tcz
conky.tcz
openssh.tcz
That should be enough to get you to a desktop. When  tc-config (part of  core.gz ) runs, it should call  tce-load  to
load the contents of  onboot.lst.

The goal here is to get you to a desktop automatically, not load all of your apps. Once that is working, you should
be able to use the  Maintenance  mode of the  Apps  utility to  Add/Remove  items from  onboot.lst.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 252
Re: PXE Boot
« Reply #19 on: June 23, 2022, 06:36:29 AM »
Hi Rich,

Quote
#nfs/ws1: #ws1 is the directory workstation #1 will use Other workstations will need their own directories
that is what i thought too

Quote
#Make sure the  nfs/ws1/  directory includes  nfs-utils.tcz, rpcbind,tcz and libtirpc.tcz.
Code: [Select]
#ls -al nfs/ws1/
#drwxr-xr-x 3 root root     4096 23. Jun 15:09 .
#drwxrwxrwx 3 root root     4096 17. Jun 13:49 ..
#-rw-r--r-- 1 root root    65536 23. Jun 15:04 libtirpc.tcz
#-rw-r--r-- 1 root root       63 23. Jun 15:08 nfs.lst
#-rw-r--r-- 1 root root   180224 14. Jun 13:49 nfs-utils.tcz
#-rw-r--r-- 1 root root    28672 23. Jun 15:04 rpcbind.tcz
#drwxr-xr-x 5 root root     4096 23. Jun 15:12 tce

Quote
#Make sure the  nfs/ws1/nfs.list  file contains only:
Code: [Select]
#nfs/ws1/nfs-utils.tcz
#nfs/ws1/rpcbind,tcz
#nfs/ws1/libtirpc.tcz.
i did that but now those are only the extensions are loaded after boot
Code: [Select]
cat nfs/ws1/nfs.lst
nfs/ws1/nfs-utils.tcz
nfs/ws1/libtirpc.tcz
nfs/ws1/rpcbind.tcz
Code: [Select]
#ls /tmp/tce/optional/
#nfs-utils.tcz  libtirpc.tcz  rpcbind.tcz


Quote
Create a  nfs/ws1/tce/onboot.lst  containing:
Code: [Select]
graphics-KERNEL.tcz
xf86-video-intel.tcz
Xorg-7.7.tcz
wireless_tools.tcz
firmware-iwl9000.tcz
firmware-iwlax20x.tcz
firmware-iwlwifi.tcz
firmware-rtl_nic.tcz
openbox-config.tcz
aterm.tcz
wbar.tcz
nano.tcz
conky.tcz
openssh.tcz
i also did that but those were not loaded

Edit:
and i get the error that it couldn't open the Framebuffer:
Code: [Select]
open /dev/fb0: no such device
« Last Edit: June 23, 2022, 06:44:06 AM by Rabie »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10217
Re: PXE Boot
« Reply #20 on: June 23, 2022, 07:25:37 AM »
Hi Rabie
... i did that but now those are only the extensions are loaded after boot
Code: [Select]
cat nfs/ws1/nfs.lst
nfs/ws1/nfs-utils.tcz
nfs/ws1/libtirpc.tcz
nfs/ws1/rpcbind.tcz
Code: [Select]
#ls /tmp/tce/optional/
#nfs-utils.tcz  libtirpc.tcz  rpcbind.tcz
...
What do you find here:
Code: [Select]
ls -l /tmp/tcloop

If you enter  tce-load -i bash  does it load or give an error?
If it loads, run:
Code: [Select]
hash -r
bash
help
Does print out a help screen or say  command not found ?


Quote
... Edit:
and i get the error that it couldn't open the Framebuffer:
Code: [Select]
open /dev/fb0: no such device
Maybe you need to add  fbv.tcz  to  onboot.lst.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 252
Re: PXE Boot
« Reply #21 on: June 24, 2022, 02:05:12 AM »
Quote
What do you find here:
ls -l /tmp/tcloop

Code: [Select]
ls -l /tmp/tcloop/
drwxr-xr-x    3 tc       staff           26 Jan 18  2021 libtirpc/
drwxr-xr-x    3 tc       staff           26 Apr 11  2016 nfs-utils/

Quote
If you enter  tce-load -i bash  does it load or give an error?
it gives that bash.tcz not found

if i downdload bash from internet with tce-load -wi and run hash -r i get nothing  :-\

Quote
open /dev/fb0: no such device
Maybe you need to add  fbv.tcz  to  onboot.lst.
that did't help too, but i think just because that the System doesn't load the List nfs/ws1/tce/onboot.lst on boot

i need to know how to make it load the file mydata.tgz and save to it when i run filetool.sh -b, i think that would solve the problem

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10217
Re: PXE Boot
« Reply #22 on: June 24, 2022, 05:04:34 AM »
Hi Rabie
...
Quote
If you enter  tce-load -i bash  does it load or give an error?
it gives that bash.tcz not found ...
That should not be. In a previous post you stated:
Code: [Select]
readlink /etc/sysconfig/tcedir
/mnt/nfs/ws1/tce
So  tce-load  should know where to find it.
What do these 3 commands return:
Code: [Select]
ls -l /etc/sysconfig/tcedir
ls -l /etc/sysconfig/tcedir/
ls -l /etc/sysconfig/tcedir/optional

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 252
Re: PXE Boot
« Reply #23 on: June 24, 2022, 06:22:27 AM »
Hi Rich,

Quote
That should not be. In a previous post you stated:
Quote from: Rabie on June 20, 2022, 02:47:21 AM
Code: [Select]
readlink /etc/sysconfig/tcedir
/mnt/nfs/ws1/tce
yes that was when i have listed all extensions in nfs.lst and they where loaded to that path (/mnt/nfs/ws1/tce)

but now if i typ readlink /etc/sysconfig/tcedir i get nothing

Quote
What do these 3 commands return:
Code: [Select]
#ls -l /etc/sysconfig/tcedir
#lrwxrwxrwx    1 root     root            16 Jan  1 19:31 /etc/sysconfig/tcedir -> /mnt/nfs/ws1/tce/
Code: [Select]
#ls -l /etc/sysconfig/tcedir/
#total 0
#-rw-rw-r--    1 tc       staff           0 Jan  1 23:56 onboot.lst
#drwxrwsr-x    2 tc       staff           40 Jan  1 19:31 ondemand/
#drwxrwsr-x    2 tc       staff          40 Jan  1 23:56 optional/
Code: [Select]
#ls -l /etc/sysconfig/tcedir/optional/
#total 0

Edit:

if i installe ssh after booting and typ per ssh this command : readlink /etc/sysconfig/tcedir i get an Answer --> /mnt/nfs/ws1/tce

if i typed on the Client without ssh on the client direct, then i get no Answer readlink /etc/sysconfig/tcedir i get  --> nothing
« Last Edit: June 24, 2022, 06:28:17 AM by Rabie »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10217
Re: PXE Boot
« Reply #24 on: June 24, 2022, 10:11:20 AM »
Hi Rabie
Quote
What do you find here:
ls -l /tmp/tcloop

Code: [Select]
ls -l /tmp/tcloop/
drwxr-xr-x    3 tc       staff           26 Jan 18  2021 libtirpc/
drwxr-xr-x    3 tc       staff           26 Apr 11  2016 nfs-utils/
...
rpcbind didn't load.

... i did that but now those are only the extensions are loaded after boot
Code: [Select]
cat nfs/ws1/nfs.lst
nfs/ws1/nfs-utils.tcz
nfs/ws1/libtirpc.tcz
nfs/ws1/rpcbind.tcz
...
Don't know if it matters, but try reversing the order of that list so dependencies load first:
Code: [Select]
nfs/ws1/rpcbind.tcz
nfs/ws1/libtirpc.tcz
nfs/ws1/nfs-utils.tcz

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 252
Re: PXE Boot
« Reply #25 on: June 27, 2022, 06:52:53 AM »
Hi Rich,
it was my bad, i had rpcbind.tcz in nfs.lst with comma like that: nfs/ws1/rpcbind,tcz

now it does load, but i don't really know what the next step is :/
Code: [Select]
#ls -l /tmp/tcloop/
drwxr-xr-x    3 tc       staff           26 Jan 18  2021 libtirpc/
drwxr-xr-x    3 tc       staff           26 Apr 11  2016 nfs-utils/
drwxr-xr-x    3 tc       staff           26 Jan 18  2021 rpcbind/