Koozali.org: home of the SME Server

PXE boot to BARTPE

Offline wires

  • **
  • 62
  • +0/-0
PXE boot to BARTPE
« on: April 06, 2009, 12:59:06 AM »
after reading thru the forums i found out that the PXE boot to BARTPE tutorial in contribs.org is outdated, doesnt seem to have valid information on the guide.. i am trying to follow the guide and trying to bypass some info that isnt relevent anymore for the sme server but i still cant get this to work in linux, tftpd32 on windows works though. please correct any steps, i just typed what i did from the tutorial. http://wiki.contribs.org/PXE_booting_to_BARTPE

Assumptions
You are a network/server administrator and know what TFTP, BARTPE and PXE -a network boot- means. Your SME SERVER is your DHCP server.

my comment
somehow i have problems with DHCP server with the sme server and my computers, seems to me that only the computers are capable of the DHCP server. (i tried this tutorial on my windows pc with tftpd32 and the connections work perfect)

all the commands from the tutorial:

1. install tftp server ---> http://wiki.contribs.org/Tftp_server

2. download BARTPE on your local pc: http://www.nu2.nu/pebuilder


3. create a BARTPE disk using WINDOWS SERVER 2003 source OR use WINDOWS XP SP2 source replacing the following file with the newer version from the WINDOWS SERVER 2003 SP1
C:\pebuilder3110a\BartPE\I386\SYSTEM32\DRIVERS\ramdisk.sys download the WINDOW 2003 SERVER SP1: http://www.microsoft.com/downloads/details.aspx?FamilyId=22CFC239-337C-4D81-8354-72593B1C1F43&displaylang=en


4. you now have a BARTPE.ISO


5. extract only the following files from the WINDOWS SERVER 2003 SP1 (using winrar) and expend them using dos prompt. You only need the ramdisk.sys file if you don't have a WINDOWS 2003 SERVER source to build your BARTPE from. See above section
Quote
ntdetect.com
ramdisk.sy_
setupldr.ex_
startrom.n1_

Quote
expand ramdisk.sy_
expand setupldr.ex_
expand startrom.n1_


6. copy the following files to the SME SERVER in the "/tftpdboot" directory
Quote
ntdetect.com
setupldr.exe
startrom.n12
bartpe.iso


7. login to sme server with root access and rename the following files (the files are case-sensitive and need to be named exactly as follows)
Quote
ntdetect.com (lower-case)
NTLDR (rename the setupldr.exe to NTLDR, all caps)
startrom.0 (rename the startrom.n12 to startrom.0) (This is a ZERO)
BARTPE.ISO (all caps)


8. still in "/tftpdboot" directory create a winnt.sif file
Quote
nano -w winnt.sif
add the following to winnt.sif
Quote
[SetupData]
BootDevice = "ramdisk(0)"
BootPath = "\i386\System32\"
OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=bartpe.iso"


9. create a directory and name it pxelinux.cfg
Quote
mkdir pxelinux.cfg


10. move inside directory pxelinux.cfg and create a file named default
Quote
cd pxelinux.cfg
nano -w default
add the following to default
Quote
prompt 1
implicit 0
timeout 600
default foo
LABEL bartpe
   kernel startrom.0


11. Summary of contents of TFTPBOOT dir
[root@server tftpboot]# ls -la
Quote
total 941492
drwxr-xr-x   3 root root      4096 Dec  3 15:43 .
drwxr-xr-x  27 root root      4096 Nov 30 13:31 ..
-rw-r--r--   1 root root 159930368 Dec  3 14:18 BARTPE.ISO
-rw-r--r--   1 root root     47772 Mar 24  2005 ntdetect.com
-rw-r--r--   1 root root    278016 Mar 24  2005 NTLDR
-rw-r--r--   1 root root     13204 Sep  4  2006 pxelinux.0
drwxr-xr-x   2 root root      4096 Apr 18  2007 pxelinux.cfg
-rw-r--r--   1 root root     24466 Mar 24  2005 startrom.0
-rw-r--r--   1 root root   1473787 Apr  5  2006 vmlinuz
-rw-r--r--   1 root root       169 Dec  3 15:44 winnt.sif

NOW, only thing that you need to do is make sure you rebooted your sme7 system with "signal-event post-upgrade; signal-event reboot"

Boot client PC where you want to network isntall operating systems like windows xp. Client pc should detect sme7 server tftpd and show you a menu in monitor.
« Last Edit: April 06, 2009, 01:13:12 AM by wires »

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #1 on: April 06, 2009, 01:42:07 AM »
first my /tftpboot directory has the following:

Quote
total 100
-rw-r--r--  1 root admin  155 Apr  3 00:49 aastra.cfg
drwxr-xr-x  2 root root  4096 Mar 29 16:24 F1000
-rw-r--r--  1 root admin   12 Apr  3 00:49 OS79XX.TXT
-rw-r--r--  1 root admin 1188 Apr  3 00:49 polycom-locals.cfg
-rw-r--r--  1 root admin  110 Apr  3 00:49 RINGLIST.DAT
-rw-r--r--  1 root root    23 Apr  3 00:46 seldir
-rw-r--r--  1 root admin  188 Apr  3 00:49 SIPDefault.cnf
-rw-r--r--  1 root admin  690 Apr  3 00:49 snom300.htm
-rw-r--r--  1 root admin  729 Apr  3 00:49 snom320.htm
-rw-r--r--  1 root admin  729 Apr  3 00:49 snom360.htm
-rw-r--r--  1 root admin  729 Apr  3 00:49 snom370.htm
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa1000.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa2000.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa2002.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa2102.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa3102.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa841.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa901.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa921.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa922.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa941.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa942.cfg
-rw-r--r--  1 root admin  162 Apr  3 00:49 spa962.cfg
-rw-r--r--  1 root admin  161 Apr  3 00:49 spaPAP2T.cfg
-rw-r--r--  1 root admin 1064 Apr  3 00:49 XMLDefault.cnf.xml

i need to add the following files
Quote
ntdetect.com
NTLDR
startrom.0
BARTPE.ISO

create the following directory/files
Quote
winnt.sif
pxelinux.cfg
default

I am missing these files and i dont know where the author of the tutorial got them from.
Quote
vmlinuz
pxelinux.0

the problem might be that i dont have enough system memory to install windows xp from network using BARTPE.ISO

i later find out that i needed Thinclient installed in the server ---> http://wiki.contribs.org/Thinclient
« Last Edit: April 06, 2009, 02:13:49 AM by wires »

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #2 on: April 06, 2009, 03:35:07 AM »
with this configuration PXE Boot timeout all the time and cannot load any image...

anyone have this working and wants to share steps to make it work ?

thanks


edit: i recently installed smeserver-thinclient-ts-2.2-1.noarch.rpm which is giving i guess more possibilites to make this work!
« Last Edit: April 06, 2009, 04:48:35 AM by wires »

Offline FraunhoferIFF

  • *
  • 932
  • +0/-0
  • Widerstand ist Zwecklos !
    • http://www.magic-figo.de
Re: PXE boot to BARTPE
« Reply #3 on: April 06, 2009, 08:59:53 AM »
Do you have tftp_remap.conf ?

I use Thinclient for Remote Installation Service  RIS.

here my tftp_remap.conf

Code: [Select]
rg \\ / # Convert backslashes to slashes
#r       ^/winxp2/ /home/e-smith/files/ibays/ris/files/winxp/i386   # Convert relative paths to their absolute position
#r       ^/winxp/ /home/e-smith/files/ibays/ris/files/winxp/  # Convert relative paths to their absolute position
rg A a # lower case
rg B b # lower case
rg C c # lower case
rg D d # lower case
rg E e # lower case
rg F f # lower case
rg G g # lower case
rg H h # lower case
rg I i # lower case
rg J j # lower case
rg K k # lower case
rg L l # lower case
rg M m # lower case
rg N n # lower case
rg O o # lower case
rg P p # lower case
rg Q q # lower case
rg R r # lower case
rg S s # lower case
rg T t # lower case
rg U u # lower case
rg V v # lower case
rg W w # lower case
rg X x # lower case
rg Y y # lower case
rg Z z # lower case

sorry for my english .. i am German :)

Marcel

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #4 on: April 06, 2009, 06:06:54 PM »
i dont, but thanks i will try it when i get back home.

thanks

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #5 on: April 07, 2009, 06:51:54 AM »
mm where should i put the file though ?

with my current setup, the machine says:

CLIENT MAC ADDR: XX XX XX XX XX XX GUID: XXXXX XXXX XXXX XXXX XXXXXXXXXX
CLIENT IP: XXX.XXX.XXX.XXX MASK: XXX.XXX.XXX.XXX DHCP IP: XXX.XXX.XXX.XXX
GATEWAY IP: XXX.XXX.XXX.XXX
PXE-E11: ARP timeout
PXE-E11: ARP timeout
PXE-E38: TFTP cannot open connection
PXE-M0F: Exiting Intel Boot Agent.
Missing operating system
« Last Edit: April 07, 2009, 06:54:49 AM by wires »

Offline FraunhoferIFF

  • *
  • 932
  • +0/-0
  • Widerstand ist Zwecklos !
    • http://www.magic-figo.de
Re: PXE boot to BARTPE
« Reply #6 on: April 07, 2009, 07:17:09 AM »
Code: [Select]
[root@open-exchange ~]# config show tftpd
tftpd=service
    UDPPort=69
    access=private
    directory=/tftpboot
    log=normal
    privilege=r
    remap=/tftpboot/tftp_remap.conf
    status=enabled
    timeout=normal
    user=root
[root@open-exchange ~]# config show thinclient
thinclient=service
    defaultbase=Winxp
    status=enabled
    tftpserver=Self

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #7 on: April 07, 2009, 09:17:57 PM »
thanks i will try it when i get back home. :)

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #8 on: April 08, 2009, 08:46:45 AM »
a how-to is seriously needed, nothing is working here... i just want to mention that my sme server is running in serveronly mode, not sure if that might be the issue or not and my ASDL router is running DHCP. It's hard to understand why sme server has to release DHCP address to service the local network also.
« Last Edit: April 08, 2009, 08:49:05 AM by wires »

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #9 on: April 09, 2009, 03:27:12 AM »
i found the problem, i had to redirect connections to the sme server using my ADSL firewall settings. Now it's almost working !! lol...

this is my default file

Quote
prompt 10
default bartpe

LABEL bartpe
   kernel memtest
   append initrd=bartpe.iso


i get this error...

Quote
PXELINUX 3.36 2007-02-10 Copyright .........
.....

Trying to load: pxelinux.cfg/default
boot: 
Could not find kernel image:memtest
boot:

this is frustrating ... do i have to build my own images using the computer ?

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #10 on: April 09, 2009, 05:07:53 AM »
got it working with DSL (dam small linux)
http://cdprojekte.mattiasschlenker.de/Public/DSL-frominitrd/1.5-0.0/

but i still need to find out a grub like boot and how to install windows xp using a linux box... this is so much harder than i thought it would be :(

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #11 on: April 09, 2009, 04:31:36 PM »
i found the problem, i had to redirect connections to the sme server using my ADSL firewall settings. Now it's almost working !! lol...

this is my default file

Here is mine... lot of images working.
You do not have to create your images, use those provided by CD/DVDs .

Code: [Select]
[root@tigre ~]# cat /tftpboot/pxelinux.cfg/default
default memtest
prompt 10
timeout 120
display opcoes.msg

label thinstation
  kernel thinstation/vmlinuz
  append ramdisk_blocksize=4096 initrd=thinstation/initrd root=/dev/ram0 ramdisk_size=524288 console=ttyS3 vga=791
label memtest
  kernel memtest
label ubuntu
  kernel ubuntu/linux
  append vga=normal initrd=ubuntu/initrd.gz  --
label sme8
  kernel sme8/vmlinuz
  append initrd=sme8/initrd.img headless text selinux=0

label sme8.linux
  kernel sme8/vmlinuz
  append initrd=sme8/initrd.img
label sme8.text
  kernel sme8/vmlinuz
  append initrd=sme8/initrd.img text
label sme8.ks
  kernel sme8/vmlinuz
  append ks initrd=sme8/initrd.img

label freespire.install
  menu label ^Install Freespire
  kernel freespire/vmlinuz
  append boot=casper initrd=freespire/initrd.img live=install quiet splash --
label freespire.desktop
  menu label ^Run Freespire from CD
  kernel freespire/vmlinuz
  append boot=casper initrd=freespire/initrd.img live=desktop quiet splash --
label freespire.xforcevesa
  menu label Start Freespire in safe ^graphics mode
  kernel freespire/vmlinuz
  append boot=casper initrd=freespire/initrd.img live=desktop quiet splash xforcevesa --

label pmagic
  kernel pmagic30/grldr
  append initrd=pmagic30/pmagic/initrd root=/dev/ram0 init=/linuxrc ramdisk_size=200000

label nas.lite
  kernel memdisk
  append initrd=naslite-smb.img
label pmag7
  kernel memdisk
  append initrd=pmag7d2.img
label dos.rede
  kernel memdisk
  append initrd=new.corpnet.img

label dos.ndis
  kernel memdisk
  append keeppxe initrd=new.corpnet.img

label dos71
  kernel memdisk
  append keeppxe initrd=MSDOS710.IMG
label dos71B
  kernel memdisk
  append keeppxe initrd=MSDOS71B.IMG

label sme7
  kernel sme7/vmlinuz
  append initrd=sme7/initrd.img headless text selinux=0
label sme7.linux
  kernel sme7/vmlinuz
  append initrd=sme7/initrd.img
label sme7.text
  kernel sme7/vmlinuz
  append initrd=sme7/initrd.img text
label sme7.ks
  kernel sme7/vmlinuz
  append ks initrd=sme7/initrd.img

label drvimg-1
   kernel drvimg-1.img

label drvimg-2
  kernel drvimg-2.img
label easyrec51
  kernel easyrec51.img
label easyrec6
  kernel easyrec51.img
label g2k3
   kernel g2k3.img
label MSCLIENT
   kernel MSCLIENT.img
label RH71
   kernel RH71.img

label FreeNAS
   kernel freenas.img


All files without a path on this file are on /tftpboot (e.g. some .img files)

Good luck... PXE rules!

Jáder
« Last Edit: April 09, 2009, 04:34:54 PM by jader »
...

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #12 on: April 11, 2009, 06:23:26 AM »
ok, so u mean i have to download, for exemple freenas (FreeNAS-i386-LiveCD-0.69.4276.iso) then i have to create an image from it and upload it to sme server tftpboot/freenas and link to it from default file ?


ps.. i broke pxe hahaha, fresh sme7 install and trying to redo everything about pxe but i get TFTP open timeout , again!!. i think it has something to do with thinstation.conf.network, that file i huge.

enabled
self
default
« Last Edit: April 11, 2009, 07:09:57 AM by wires »

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #13 on: April 12, 2009, 01:28:08 AM »
ok, so u mean i have to download, for exemple freenas (FreeNAS-i386-LiveCD-0.69.4276.iso) then i have to create an image from it and upload it to sme server tftpboot/freenas and link to it from default file ?
No!
Means you need to download .iso of FREENAS, mount it a mnt directory of your SME server, copy files from it to /tftpboot diretory and change some lines on default file to include it  (and as info put it also on file show a list to you).

Let me try to redo my steps for SME7:
1) mount SME7 iso
mount /home/e-smith/files/ibays/iso/files/smeserver7.iso /mnt/pendrive/ -o loop

2) copy files below from /mnt/pendrive/isolinux to /tftpboot/sme7 dir of tftpboot

[root@tigre tftpboot]# ls -la sme7/
total 11376
drwxr-xr-x   3 root root    4096 Aug  2  2008 .
drwxr-xr-x  12 root root    4096 Apr  4 14:58 ..
-r--r--r--   1 root root 4251337 Nov 20 13:55 initi586.img
-r--r--r--   1 root root 4263559 Nov 20 13:54 initrd.img
drwxr-xr-x   2 root root    4096 Aug  2  2008 pxelinux.cfg
-r--r--r--   1 root root 1545983 Nov 20 13:54 vmlinuz
-r--r--r--   1 root root 1538625 Nov 20 13:55 vmlzi586

note that /mnt/pendrive/isolinux/isolinux.cfg is the source of info to your new entry on file called default .

3) Try it.

4) if you get on a page of SME7 server asking from where install... you're almost there. Just copy (or link) sme7 content to your web server and inform that path during install.
...

Offline wires

  • **
  • 62
  • +0/-0
Re: PXE boot to BARTPE
« Reply #14 on: April 23, 2009, 06:57:41 AM »
very helpfull thank you.

I found out about this website http://unattended.sourceforge.net/ which offers so many with doing a network windows installations. i am amazed and this works so perfectly that i wish a sme contrib existed for it.
« Last Edit: April 23, 2009, 07:21:27 PM by wires »

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:

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #30 on: September 27, 2010, 03:06:03 PM »
Bud

I´ll be glad to help you on your next step, as soon as you document everything as you promised.
The other way... I´ll spend time doing documentation myself instead to help you.

Sorry... this is a two way support forum.
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #31 on: September 27, 2010, 03:27:18 PM »
jader

i have made a document of everything so far and want to post it however i need to have a link for users to download the document and files so that it will be easier for them to follow.

i need to email you to make sure that what i have documented is relevant to the cause.

how about it buddy   :smile:

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: PXE boot to BARTPE
« Reply #32 on: September 27, 2010, 03:46:51 PM »
Bud

You can request
admin@contribs.org
to create a user contrib upload folder for yourself, see
ftp://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/
This will then be mirrored to the various contribs.org mirror servers.

You can request wiki editing access from your Forum account settings.
Then you can create a wiki article and categorise it probably as a Howto.
See existing Howtos for examples or use one of the existing templates to create your wiki page.
For all the steps involved see
http://wiki.contribs.org/Help:Contents

Other people can then edit, improve and add to your document.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #33 on: September 27, 2010, 03:59:26 PM »
mary

what can i say. you simply are the best!!

thanks for all your help  :smile:

will keep you posted

Offline Jeppe Fugl

  • *
  • 33
  • +0/-0
Re: PXE boot to BARTPE
« Reply #34 on: September 27, 2010, 05:26:42 PM »
This is the setup for puppy. No need to mount iso, but see description below.

label puppy
  menu label ^Puppy Linux
  kernel x86/puppy/vmlinuz
  initrd x86/puppy/initrd.gz 
  append boot=live pfix=copy nosmp


Found the description here: http://murga-linux.com/puppy/viewtopic.php?search_id=2090301486&t=56580

1. Create a temporary directory somewhere
2. Copy the initrd.gz and the pup.sfs you want to embed into this temporary directory.
3. Detach this script, gunzip, and chmod +x the script, in the same temporary directory where you have initrd.gz and pup.sfs (http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=29780
)
4. Open terminal, and then run the script
Code:
./embed_sfs.sh your-sfs-filename

5. Your original initrd.gz will be kept as initrd.gz.old, and the new initrd.gz will have pup.sfs in it.
There you go. BTW - the ramdisk parameter is unnecessary.


Best Regards,
Jeppe

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #35 on: September 27, 2010, 05:47:33 PM »
jader

i have made a document of everything so far and want to post it however i need to have a link for users to download the document and files so that it will be easier for them to follow.

i need to email you to make sure that what i have documented is relevant to the cause.

how about it buddy   :smile:

Bud

All is relevant... and the correct way is to create a wiki area... HowTo "Boot PXE" with all information.
If you have access, please start, if not, just send it to me jader DOT marasca AT gmail DOT com and I´ll start a post there.
You also can request an account there to update.

I don´t think you should put files anywhere, just information about what should be in what places and informations about how to have several tools working (puppy, ghost, SME7, SME8, ...)

Regards

Jáder
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #36 on: October 01, 2010, 11:19:51 PM »
Hi Bud

Do you have ANY doc to sent to me ?
I´d like to update wiki this weekend.

Jáder
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #37 on: October 02, 2010, 08:06:05 PM »
jader

sorry have had a hectic week.

i have completed 90% (added some more info) and will contact you this weekend
« Last Edit: October 03, 2010, 06:10:19 PM by Bud »

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #38 on: October 03, 2010, 06:09:35 PM »
jader

i have sent you the doc  :smile:

hope it helps

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #39 on: October 05, 2010, 01:01:45 AM »
jader

i have sent you the doc  :smile:

hope it helps

I got nothing! :(
My gmail account is jader DOT marasca

Or you can use e-mail from my profile (NOT SURE if it's visible to everyone).
I found no e-mail on spam neither on "my messages" too.
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #40 on: October 05, 2010, 06:30:07 AM »
jader

i sent the doc to admin@contribs.org as i did not have your email address

i have also now sent it to your gmail account

hope it helps  :-)
« Last Edit: October 06, 2010, 05:48:04 AM by Bud »

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #41 on: October 06, 2010, 02:50:36 AM »
jader

i sent the doc to admin@contribs.org as i did not have your email address

i have also now sent it to you (YOUR GMAIL ADDRESS)

hope it helps  :-)
Please edit your post and remove my e-mail address from there.
I did not put it explicitly just to avoid spam!


...

Offline Bud

  • *
  • 487
  • +0/-0
Re: PXE boot to BARTPE
« Reply #42 on: October 06, 2010, 05:49:29 AM »
There you go, done

Anything else sir?

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PXE boot to BARTPE
« Reply #43 on: October 06, 2010, 09:23:07 PM »
There you go, done

Anything else sir?

BUD

Thanks by your doc.
I just saw it and appears to be quite complete! Thank you.
I´ll post it to Wiki as soon as I recover my lost password :$.
Maybe tomorrow or friday (I hope!).

Thank you by remove my e-mail from post... I have enought spam without my e-mail in another list!

Regards

Jáder
...