Koozali.org: home of the SME Server

PXE boot to BARTPE

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #15 on: August 16, 2010, 01:03:25 PM »
jader hope you can help

this is very confusing as i'm not sure if i have to use the tftpdboot or tftpboot folder

all i'm trying to do is get the following iso's as a menu option available to use in pxe: sme7iso, bartpeiso, puppyiso

how do you get this done?

any help greatly appreciated


Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #16 on: August 16, 2010, 02:53:09 PM »
Hi Bud

Edit the /tftpboot/pxelinux.cfg/default and add this:

Code: [Select]
LABEL sme7
  kernel sme7/vmlinuz
  append initrd=sme7/initrd.img headless text selinux=0
now mount SME7.ISO on somewhere (let´s use /tmp/iso on this example)
Code: [Select]
mount sme7.iso /tmp/iso -o loopand copy these sme7 files to /tftpboot/sme7 :
Code: [Select]
[root@lobo tftpboot]# ls -la /tftpboot/sme7/
total 11376
drwxr-xr-x   3 root root    4096 Aug  2  2008 .
drwxr-xr-x  12 root root    4096 Aug 16 09:47 ..
-r--r--r--   1 root root 4263559 Nov 20  2008 initrd.img
-r--r--r--   1 root root 1545983 Nov 20  2008 vmlinuz


After this, try  "sme7" on PXE boot prompt!
If anything do not work, please post LOTS of information... debug PXE is already hard seen it :D

Jáder
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #17 on: August 17, 2010, 06:13:32 AM »
jader thanks for the info

Just so that i have it right:

Installed " tftp " server contrib
Installed " thinclient " contrib

In my tftpboot directory i have the following files ( Which I Copied from and is located in /usr/lib/syslinux/pxelinux.0 )

initrd.img
init586.img
vmlinuz
vmlz586


I then create a directory called pxelinux.cfg inside the tftpboot directory and created a file called default with the following contents:

prompt 0
implicit 0
timeout 0
default install

label install
  kernel vmlinuz
  append initrd=initrd.img ramdisk_size=8192


Now my tptpboot Directory has the following contents

initrd.img = File
init586.img = File
vmlinuz = File
vmlz586 = File
pxelinux.cfg = Directory with a File Called default inside

I then created an ibay called iso and copied the sme7 iso to /home/e-smith/files/ibays/iso/files/smeserver7.iso
I then created a directory in /mnt/ called sme7iso - ( /mnt/sme7iso )
I then issued a shell command " mount /home/e-smith/files/ibays/iso/files/smeserver7.iso /mnt/sme7iso/ -o loop "
I then created a folder in tptpboot called " sme7 " - ( /tptpboot/sme7 )

Here are my questions:
1. Must I only copy the two fiiles from the mounted smeserver7.iso ( being at /mnt/sme7iso ) you mentioned being: initrd.img and vmlinuz and copy them to the /tptpboot/sm7/ directory or are there more files I need to copy ?

2. Must I create another directory inside /tptpboot/sme7/ called pxelinux.cfg and also create a default file inside it. If so what contents do I place inside the default file?

3. If say my smeserver Reboots then the smeserver7.iso will NOT be mounted. Do I need to Remount the smeserver.iso File everytime the SME Server has rebooted or do I not need it to be mounted again in order for me to use PXE ?

4. I now want to also include puppy as an option in my PXE Menu. How do I go about doing that?

Any help greatly appreciated




Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #18 on: August 17, 2010, 03:08:15 PM »
Installed " thinclient " contrib

not sure if you need thinclient contrib... anyways... let it there for now.
Quote
In my tftpboot directory i have the following files ( Which I Copied from and is located in /usr/lib/syslinux/pxelinux.0 )

initrd.img
init586.img
vmlinuz
vmlz586


Do you have this for what ?
It´s for thinclient ?

Quote
I then create a directory called pxelinux.cfg inside the tftpboot directory and created a file called default with the following contents:

prompt 0
implicit 0
timeout 0
default install

label install
  kernel vmlinuz
  append initrd=initrd.img ramdisk_size=8192


That´s correct... from now on... you´ll create a new label entry for each option on PXE boot.

(...)

Quote
I then created an ibay called iso and copied the sme7 iso to /home/e-smith/files/ibays/iso/files/smeserver7.iso
I then created a directory in /mnt/ called sme7iso - ( /mnt/sme7iso )
I then issued a shell command " mount /home/e-smith/files/ibays/iso/files/smeserver7.iso /mnt/sme7iso/ -o loop "

I then created a folder in tptpboot called " sme7 " - ( /tptpboot/sme7 )

Here are my questions:
1. Must I only copy the two fiiles from the mounted smeserver7.iso ( being at /mnt/sme7iso ) you mentioned being: initrd.img and vmlinuz and copy them to the /tptpboot/sm7/ directory or are there more files I need to copy ?

Everything above is correct... I prefer create a new directory for each option on PXE menu.
You could create an option to boot memtest+ ... search for image on web and create an entry like this:
Code: [Select]
LABEL memtest
  kernel tools/memtest
Please note I created a new directory "tools" inside /tftpboot to hold several tools I can use on PXE.

Quote
2. Must I create another directory inside /tptpboot/sme7/ called pxelinux.cfg and also create a default file inside it. If so what contents do I place inside the default file?
NO! default inside pxelinux.cfg is unique for all your PXE environment.

Quote
3. If say my smeserver Reboots then the smeserver7.iso will NOT be mounted. Do I need to Remount the smeserver.iso File everytime the SME Server has rebooted or do I not need it to be mounted again in order for me to use PXE ?
YES, if you wanna to avoid to copy all content to another directory you must keep .iso file mounted on somewhere you can access using HTTP protocol. That´s because during install you´ll choose to use HTTP and must point to your own server so SME can continue install.
So you´ll choose HTTP method, and use your SME server name or IP address and point to directory shared by ibay.  I prefer that way... create an ibay named "iso" with web access and create a a new directory for each ISO.  inside HTML to mount .ISO inside.

So you would end with something like:
/home/e-smith/files/ibays/iso
containing:
Code: [Select]
files
cgi-bin
html

inside "html" you should to have these directories:
Code: [Select]
sme7
sme8
puppy

mount .iso in this directories using:
Code: [Select]
mount /home/e-smith/files/ibays/iso/files/smeserver7.iso /home/e-smith/files/ibays/iso/html/sme7/ -o loop

and when your PXE works, you start SME install and choose HTTP install, and point to your server at first field and to /iso/sme7 as path.


Quote
4. I now want to also include puppy as an option in my PXE Menu. How do I go about doing that?
You do the exact same thing as for SME.

I hope you can it working... it´s wonderful to use PXE.
I now have PXE working with graphical background and menus... even nicer! :)
But this is advanced PXE :) Get basic working for now.

...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #19 on: August 18, 2010, 09:22:36 AM »
jader thanks for your help but now i am really confused

Lets try that again

I Uninstalled " thinclient " contrib
The " smeserver-tftp-server " contrib is installed as per http://wiki.contribs.org/Tftp_server

In my " tftpboot Directory " i have the following files and directories

NO Files inside tptpboot Directory
pxelinux.cfg = Directory ( /tftpboot/pxelinux.cfg/ )
tools = Directory (/tftpboot/tools/ ) I have Two Files " BOOT.CAT and MEMTEST.IMG "

Inside the " /tftpboot/pxelinux.cfg/ " directory I have a file called default with the following contents:

prompt 0
implicit 0
timeout 600
default puppy
LABEL install
   kernel vmlinuz
   append initrd=initr,img ramdisk_size=8192

LABEL memtest
  kernel tools/memtest


I have the following ISO Files in /home/e-smith/files/ibays/iso/files/
smeserver7.iso = File
puppy.iso = File

I then created directories in /home/e-smith/files/ibays/iso/html/
sme7 = Directory = /home/e-smith/files/ibays/iso/html/sme7/
puppy = Directory = /home/e-smith/files/ibays/iso/html/puppy/

I then issued a shell command " mount /home/e-smith/files/ibays/iso/files/puppy.iso /home/e-smith/files/ibays/iso/html/puppy/ -o loop "

Question: When I try to use my PC PXE Lan Controller Option my Lan Controller does not see my SME DHCP Sever and will not Boot PXE. Please HELP  :sad:
« Last Edit: August 18, 2010, 09:57:57 AM by Bud »

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #20 on: August 18, 2010, 02:57:58 PM »
Let ´s try again:

(...)
NO Files inside tptpboot Directory
(...)

that´s too bad... you should to have at least
Code: [Select]
-rw-r--r--   1 root   root     16794 May 16 09:39 pxelinux.0
because this is the file you DHCP file will tell PXE code on NIC to load at boot.
find it somewhere and put it back. (maybe you need to force reinstall of tftpboot to get it back, AFIR it --replacefiles as rpm parameter)

and verify your DHCP and TFTP daemon are running, these are mine:

Code: [Select]
[root@lobo ~]# service tftpboot status
'tftpboot' is not a valid service name
[root@lobo ~]# service tftpd status
run: /service/tftpd: (pid 4582) 1949199s; run: log: (pid 3111) 1949286s
[root@lobo ~]# service dhcpd status
run: /service/dhcpd: (pid 5088) 1949185s, normally down; run: log: (pid 3067) 1949293s

Quote
I then issued a shell command " mount /home/e-smith/files/ibays/iso/files/puppy.iso /home/e-smith/files/ibays/iso/html/puppy/ -o loop "

not really necessary right now, but verify that command ( AND an equivalent for sme7 iso ) it´s ok: "mount"  should mount both of them.
Later verify you can read the files inside that folder using any computer on LAN to access that directory using a internet browser.

Quote
Question: When I try to use my PC PXE Lan Controller Option my Lan Controller does not see my SME DHCP Sever and will not Boot PXE. Please HELP  :sad:

What do you see on your screen... do you see the PXE banner from NIC and an error message or nothing at all ?
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #21 on: August 20, 2010, 06:12:37 AM »
jader thanks for all your help, much appreciated

PXE Server is working Great with Full Graphical background and Great Menus  :smile:

long live sme

thanks again

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #22 on: August 20, 2010, 05:07:09 PM »
You´re welcome

I´d like to ask you to write an howto about this... to publish on SME site.
This is a complicate subject... with lot of gray areas and everyone could benefit of a howto write by someone just configurated it a few hours ago and had all problems fresh in memory.

I´ll help you if you submit the post to wiki... or put info on wiki if you like.

Regards

Jáder
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #23 on: August 20, 2010, 07:01:15 PM »
jader no problem

i am busy compiling what i want to place on wiki :smile:

long live sme

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #24 on: August 25, 2010, 12:48:03 PM »
jader i need help on puppy and bartpe

In my " tftpboot Directory " i have created the following directories
puppy = Directory ( /tftpboot/puppy/ )
bartpe = Directory (/tftpboot/bartpe/ )

I have the following ISO Files in " /home/e-smith/files/ibays/iso/files/ "
puppy.iso = File
bartpe.iso = File

I then created directories in " /home/e-smith/files/ibays/iso/html/ "
puppy = Directory = /home/e-smith/files/ibays/iso/html/puppy/
bartpe = Directory = /home/e-smith/files/ibays/iso/html/bartpe/

I then issued shell commands for both Puppy and BartPE
" mount /home/e-smith/files/ibays/iso/files/puppy.iso /home/e-smith/files/ibays/iso/html/puppy/ -o loop "
" mount /home/e-smith/files/ibays/iso/files/bartpe.iso /home/e-smith/files/ibays/iso/html/bartpe/ -o loop "
Questions:
1. What Files must I copy from both:
" /home/e-smith/files/ibays/iso/html/puppy/ " to " /tftpboot/puppy/ "
" /home/e-smith/files/ibays/iso/html/bartpe/ " to " /tftpboot/bartpe/ "

2. What entries must I put in my " pxelinux.cfg/default " file to get both Puppy and BartPE to Boot using the PXE Menu Option

Please Help  :smile:

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #25 on: August 25, 2010, 03:33:50 PM »
Bud

I´m not sure I can help you... I see no wiki information yet...
.
.
.
.
.
.
.
.
.
.
.
.
.
(just kidding... a little at least)
You must find the information in puppy  CD used to boot... it´s a vmlinux and a initrd file (most of time).
search on puppy cd/mount point for a isolinux.cfg file... inside will exist a structure very similar to pxe you can use as "inspiration".
look up , watch and learn about how to move from iso to pxe using it.
.... and please create a wiki about this. :) thanks
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #26 on: September 09, 2010, 05:58:32 PM »
jader please help

i need to know how do i go about the following for pxe booting

i am trying to get clonezilla working but i am having a problem with the " filesystem.squashfs " file

this is my menu example for clonezilla

label clonezilla
  menu label Clonezilla
  kernel images/clonezilla/vmlinuz
  append boot=live union=aufs noswap vga=788 fetch=tftp://192.168.1.1/images/clonezilla/filesystem.squashfs
  initrd images/clonezilla/initrd.img

for some reason it does not " find " the " filesystem.squashfs " file


this is my menu example for system rescue

label systemrescue
  menu label System Rescue
  kernel images/systemrescue/rescuecd
  append setkmap=us netboot=tftp://192.168.1.1:/usr/tftpboot/images/systemrescue/sysrcd.dat
  initrd images/systemrescue/initram.igz

for some reason it does not " find " the " sysrcd.dat " file

am i using the tftp command correctly in both examples?

i am also havng problems in getting to use pxe to install windows xp
what netboot disk can i use and what files do i need etc. on sme for windows xp

please help
« Last Edit: September 09, 2010, 06:02:23 PM by Bud »

Offline Jeppe Fugl

  • *
  • 33
  • +0/-0
Re: PXE boot to BARTPE
« Reply #27 on: September 14, 2010, 05:58:21 PM »
I have it running with the following pxelinux.cfg setup

I use http as my box don't support tftp. "Images" is an i-bay. Files contains iso's and html contains mount of iso's. Just like your setup.

I have a copy of vmlinuz, rescuecd etc. in the /tftpboot/xx folder.

Remember that paths inside pxelinux.cfg are relative to /tftpboot/ and not you i-bay.



   LABEL rescuecd
   MENU LABEL System Rescue Cd
     kernel tools/rescuecd/rescuecd
     INITRD tools/rescuecd/initram.igz
   append setkmap=us netboot=http://server_IP/images/systemrescuecd/sysrcd.dat

   label clonezilla
     menu label Clonezilla
     kernel tools/clonezilla/vmlinuz
     append boot=live union=aufs noswap vga=788 fetch=http://server_IP/images/clonezilla/live/filesystem.squashfs
     initrd tools/clonezilla/initrd.img


Have you tried to setup ubuntu?
I cannot figure out how to start sme8 without having to manually set http in the setup. Any clues?

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #28 on: September 16, 2010, 06:14:46 AM »
Jeppe Fugl

thanks for your help.

dang this pxe is great on sme.

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #29 on: September 27, 2010, 01:33:33 PM »
Jeppe Fugl please help

i am trying to get Puppy Linux and DSL (Damn Small Linux) to work with SME PXE

this is my setup for Puppy

label puppy
  menu label ^Puppy Linux
  menu passwd paint
  kernel images/puppy/vmlinuz
  append setkmap=us netboot=http://192.168.0.10/iso/puppy/lupu-501.sfs
  initrd images/puppy/initrd.gz

It does try to boot however i get an error: Lupu-501.sfs Not Found. Not sure what to do as the file is there for it to load however it does not seem to load it?

this is my setup for DSL

label dsl
  menu label ^Damn Small Linux
  kernel images/dsl/linux24
  initrd images/dsl/minirt24.gz
  append boot=live union=aufs noswap noprompt vga=791 fetch=http://192.168.0.10/iso/dsl/KNOPPIX

when it starts DSL i get an error: Can't Find KNOPPIX FileSystem.

any ideas what i must do?  :smile: