Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 08:20
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
5-steps - Netboot a Puppy over the LAN with NO Media (PXE)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 7 [100 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Author Message
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Thu 20 Jan 2011, 15:10    Post subject:  5-steps - Netboot a Puppy over the LAN with NO Media (PXE)
Subject description: Netboot = PXE (with Save file for your settings!)
 

Want to have PC booting on your network from a central PC? Yes, you heard that right; "5 simple steps". And your PUPPY will allow other machines on your LAN to boot Puppy without your having to walk over and install something on them.

Here’s how you setup for either 32bit and 64bit Puppies:
Open this document; Swing down to “implementation Basic”
Follow the 4 steps on your server, (the 5th one is your LAN PC booting up)

If you have LightHouse version 601+, it is built-in for your use: A guide, made specific to Lighthouse, covers this.Click here.

No changes to your LAN; no changes to PUPPY’s desktop; no impacts on PUPPY; you just drop it in and forget it. That’s it. It has become so simple, even my "dogged" brain can do it. It has been tested with PCs booting
  • Lighthouse 5
  • MacPup 5
  • Puppy5.1.1
  • Puppy5.2 (see Note 3)
  • QuickSET
from the LAN using NO MEDIA ON THE PC.

I think everyone sees benefit here.
This is just one more service on your PUPPY, you can Enjoy.

Hope this helps
Edited: This Puppy's services have been changed to run in ALL PUPPIES!

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile

Last edited by gcmartin on Fri 20 Dec 2013, 21:24; edited 11 times in total
Back to top
View user's profile Send private message 
Master_wrong

Joined: 19 Mar 2008
Posts: 456

PostPosted: Thu 03 Feb 2011, 04:56    Post subject:    

Thank gcmartin for clarifying the pxe maze...

I have try all other tutorial and fail, feel like chasing my own tail.

I will try again with your tutorial

_________________
Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Thu 03 Feb 2011, 10:20    Post subject:  

Master,

That guide will work for other puppies too. The netboot-server.pet is just a bunch of shell-scripts, it will work on any puppy. You just need to get a 32-bit binary dnsmasq for other puppies. jrb has created one on other forum of this thread, or you can use the one attached here (gunzip and drop it to /usr/bin). Too lazy to make it into a pet Twisted Evil
dnsmasq.gz
Description  gunzip, chmod to +x, and then move to somewhere in your path (e.g. /usr/bin).
gz

 Download 
Filename  dnsmasq.gz 
Filesize  101.33 KB 
Downloaded  1064 Time(s) 

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
Master_wrong

Joined: 19 Mar 2008
Posts: 456

PostPosted: Fri 04 Feb 2011, 06:08    Post subject:  

Very Happy Very Happy Very Happy

Thank you jamesbond, its success !!!!

I can boot to server via pxe already...

btw i cannot connect to network ?

http://www.murga-linux.com/puppy/viewtopic.php?p=492640#492640
post by mhanifpriatama already solve that.

btw i change mknetboot.sh at /usr/sbin because my iso is big iso and eating all my memory.
edit the bolded text if you want to save @ other place, sdc2 is linux partition (ext3) btw

Quote:

#!/bin/sh
#jamesbond 2011
# convert a puppy iso into netboot-compatible vmlinuz and humongous initrd.gz
# Edited by Master_wrong so can save to other media not just temp

Xdialog --title "mknetboot" --msgbox "This script will create a set of files suitable for puppy netbooting.
The input is a puppy ISO file. The output will be located in /tmp/netboot - one vmlinuz and one huge initrd.gz.
If /root/tftpboot/pxelinux.cfg exist, the output files will be symlinked to this directory as well,
so you can use netboot-server to server them straight away." 0 0

ISO=$(Xdialog --title "Choose puppy ISO" -fselect "" 0 0 2>&1 | tail -n 1)
tmp="mnt/sdc2"
tmp2="mnt/sdc2"

if [ -n "$ISO" ]; then
rm -rf /$tmp2/netboot /$tmp/netboot_iso
mkdir -p /$tmp2/netboot/x /$tmp/netboot_iso
if mount -o loop "$ISO" /$tmp/netboot_iso; then
if [ -f /$tmp/netboot_iso/vmlinuz -a -f /$tmp/netboot_iso/initrd.gz ]; then
Xdialog --title "mknetboot" --no-buttons --infobox "This will take a while. Please wait ..." 0 0 60000 &
PID=$!
cp /$tmp/netboot_iso/vmlinuz /$tmp2/netboot
cd /$tmp2/netboot/x
zcat /$tmp/netboot_iso/initrd.gz | cpio -i
cp /$tmp/netboot_iso/*.sfs .
find . | cpio -o -H newc | gzip -9 > ../initrd.gz
cd /$tmp2/netboot
rm -rf x
if [ -d /root/tftpboot/pxelinux.cfg ]; then
rm /root/tftpboot/pxelinux.cfg/vmlinuz /root/tftpboot/pxelinux.cfg/initrd.gz
ln -s /$tmp2/netboot/vmlinuz /root/tftpboot/pxelinux.cfg
ln -s /$tmp2/netboot/initrd.gz /root/tftpboot/pxelinux.cfg
fi
kill $PID
Xdialog --title "mknetboot" --infobox "Done. Output is in /$tmp/netboot." 0 0 10000
else
Xdialog --title "mknetboot" --msgbox "Invalid ISO - cannot find vmlinuz and initrd.gz" 0 0
rm -rf /$tmp2/netboot
fi
umount /$tmp/netboot_iso
rm -rf /$tmp/netboot_iso
else
Xdialog --title "mknetboot" --msgbox "Failed to mount $ISO" 0 0
fi
fi



for cloud pxe goto here :
http://www.murga-linux.com/puppy/viewtopic.php?t=66435

other pxe discussion by jamesbond here:
http://www.murga-linux.com/puppy/viewtopic.php?t=65232

_________________
Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Back to top
View user's profile Send private message 
PupGeek

Joined: 06 Sep 2009
Posts: 388

PostPosted: Sun 24 Apr 2011, 11:55    Post subject:  

I tried using the howto in the OP of this thread, I successfully made the humongous initrd file, it already symlinked it to the specified directory (I forget exactly what it is at the moment) and I symlinked it to a tftpboot directory (or something like that) and started the tftp server.

Upon powering up my client, it successfully connected to the pxe server, booted the kernel, loaded the initrd.gz file (the humongous one, I assume), loaded the modules to access disk drives and began searching for puppy files on computer drives, which is where I started having problems.

It seems the init script cannot find the .sfs file in the humongous initrd.gz file. I have extracted the initrd.gz file created by mknetboot.sh and confirmed that the .sfs (stud_330.sfs) is there. I have used the PDEV1=rootfs workaround, but still to no avail. I attempted this with Puppy Studio 3.3 rt with the above results.

I am assuming that the problem lies within the init script or maybe with the .sfs' filename. I will continue trying to edit that script, but what should I be looking for? I will also try using straight Lupu 5.2 tonight and see if I can get any better results.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Sun 24 Apr 2011, 12:42    Post subject: Problem using Netboot Functions  

PupGeek wrote:
I tried using the howto in the OP of this thread, I successfully made the humongous initrd file, it already symlinked it to the specified directory (I forget exactly what it is at the moment) and I symlinked it to a tftpboot directory (or something like that) and started the tftp server.
As you describe here, seems that the problem you are having relates to a manual operation you may have done.

Question:
Did you do the symlinks manually for some reason?
The install process AND the Netboot script should have setup (automatically, without ANY manual manipulation) everything you would need for all to work smoothly. Assuming you did NOT change anything: There was an issue with system such that older versions of Puppy had a "built-in" bug which disrupted certain versions of PUPs from booting. AND, there is an alternate "default" file that you would need so that the LAN PC will successfully navigate to a desktop. That "default" file is found at /root/tftpboot/pxelinux.cfg/default.

I am attaching 2 default files for you to replace in that location. I'm not sure which should work, but, if one doesn't try the other, please. Either way, let us know if this resolves the condition. My advice is rename your current "default" take the most logical one I present to you and save it in your tftpboot folder on your server as "default". Then reboot your LAN PC.

Hope this helps.
P,S, In the document, posted in this thread, you are made aware of an addition which will allow you to setup you server such that your LAN PCs are presented with a menu of several PUPs that the LAN PC can select for booting. (This is an extension that you can try after you get your 1st PUP to boot over the LAN.)
Replacement DEFAULT files.tar.gz
Description 
gz

 Download 
Filename  Replacement DEFAULT files.tar.gz 
Filesize  245 Bytes 
Downloaded  845 Time(s) 

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
PupGeek

Joined: 06 Sep 2009
Posts: 388

PostPosted: Sun 24 Apr 2011, 13:34    Post subject:  

The scripts automatically placed those links in the directory you specified. I placed symlinks to those in another directory (/root/netboot or something like that.) after trying to boot and ending up with an error of not being able to find vmlinuz in that directory. That was not a big deal, however. It's the crash during init that puzzles me.. I am aware of the option to include multiple puppies and intend to do that if I can get this one running. Thank you for the new default files, I will try them out tonight. I believe my puppy(based on Lupu5.2) falls into that category of those with that bug.

P.S. I tried editing the default file to use the PDEV1 cheat but did not include the loglevel=7 one

Update: 04/25/11 pupgeek wrote:
Tried using the new default files from gcmartin, but still got the same result. After looking at the init script in geany, I didn't see any reference to 'rootfs', but saw plenty of references to 'tmpfs'. I replaced 'rootfs' with 'tmpfs' to see if it would work and it did.

Also, I found out that I downloaded a different version of dnsmasq (2.55, or something), which created a directory /root/netboot. That is the directory where my pxe client was trying to read from (Your client should specify where it is trying to read from on the server). I had to make sure all the necessary files or symlinks were in there for it to work

To anyone still having trouble even when using "PDEV1=rootfs", try changing it to "PDEV1=tmpfs". It might work for you.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Mon 25 Apr 2011, 22:41    Post subject: The Publication is still accurate  

Update: 04/25/11 pupgeek wrote:
... Also, I found out that I downloaded a different version of dnsmasq (2.55, or something), which created a directory /root/netboot. ... .
Hi Pupgeek.
Glad to see that there is an answer. I worked very closely with JamesBond to generate the directions that you see in this thread. It was tested by me, over and over again, to insure its accuracy.

When you alerted your problem in this thread, I "re-tested" the documentation, last night ahead of you, to insure that those directions were accurate for the PUP525 ISO that you're using. It worked perfectly without the alternate DEFAULT file that I made available.

I found that the documentation is consistent and it instructs correctly where to find the DNSMASQ and NETBOOT PETS needed for a start to finish implementation. And was awaiting your attempts with some logs, if needed.

If you have time, and are willing, would you try the documentation to insure that it is consistent. I would welcome ANY advice or concerns you would raise on that information. The document has been referenced over 2000 times, but we had not receive any critiques or corrections, thus far. Your insights would be appreciated.

Thanks in advance.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
PupGeek

Joined: 06 Sep 2009
Posts: 388

PostPosted: Thu 28 Apr 2011, 17:03    Post subject:  

The documentation, for the most part is very accurate. I did experience some trouble with the links. Dnsmasq seems to go to a forum page saying that I am unauthorized to view or download the file (meaning I had to look elsewhere for it, so I probably picked up a different version). The netboot link works ok, but it doesn't contain the mkmulti script for some reason. The MultiPup link takes you to a porn gateway site, so that might need to be edited Cool .

As for the "PDEV1=rootfs", I'm sure that some versions use that, but I found that LuPu 5.2 uses "PDEV1=tmpfs" successfully.

What I specified in my update worked well for me. I'm fully satisfied with it for now. I still cannot seem to locate the mkmulti.sh script, however, as I do intend to boot multiple puppies this way. I am currently looking to find a version of netboot with one, but I learned how to work with puppy by trying different things out..... beginning with using .deb packages for puppy 2.15. I like to share my experiences and fixes so that others can benefit from them as well.

Also, I tried manually to make a menu by trying to get pxelinux.0 to load grub, but it didn't work. Sad

Update 04/30/11 pupgeek wrote:

I was able to manually make a menu giving the choice of more than one puppy to boot from. This saves the trouble of making a multi-ISO image as well. With it, you can now just make a pxe-bootable image of your new puppy and add the new entry to the menu and it should work.

I downloaded a .deb of syslinux to get an additional file and referred to a faq page about pxelinux to figure out how to do it.

The page includes examples to really make pxelinux.0 sophisticated with multiple menus and all. I took bits and pieces of it and used the syntax to make one simple menu. You can click here for more information on this. To make use of the information contained in the page, you need the file "menu.c32" to be placed in your tftpboot/pxelinux.cfg directory. You can download that file below or you can get the syslinux package from the ubuntu repo for all associated files.
menu.c32.tar.gz
Description 
gz

 Download 
Filename  menu.c32.tar.gz 
Filesize  28.35 KB 
Downloaded  799 Time(s) 
Back to top
View user's profile Send private message 
c7jaff

Joined: 07 Feb 2011
Posts: 13

PostPosted: Thu 19 May 2011, 23:12    Post subject:  

Using the script from the above Master_wrong Fri 04 Feb 2011, 06:08 post, I place the 2 resulting files on the server (along with lupu-511.sfs) and this config:

label netboot
menu label netboot ()
kernel netboot/vmlinuz
append initrd=netboot/initrd.gz PDEV1=tmpfs

...and can successfully net boot puppy 5.11. I'm using Ubuntu with tftp and dnsmasq as the server. I can also PXE boot minipup, ploplinux(uses Samba), thinstation, and ubuntu. Also LTSP. I can duplicate these setups. However, none of them are persistent (except LTSP but I don't want to go that direction yet) and I can't save anything back to the source location on the server. I can save a lupusave.3fs back to a USB drive but I want save back to the server only. I'm getting closer to the DisklessUbuntuHowto that can save back over NFS. It boots but with lots of errors and the desktop only shows the bottom panel with the clock and restart/shutdown options. I'd like to try this with puppy.

The point/questions I'm getting at it: Can puppy netboot and save the session lupusave.3fs back to the server? If so, how is that done, with NFS or Samba?

I think I've read every PXE related post on here more than once and either I'm still not seeing something or the they point to dead links. Others are just not clear about whether the session is saved. Help/links appreciated.
Back to top
View user's profile Send private message 
puppyluvr


Joined: 06 Jan 2008
Posts: 3212
Location: Chickasha Oklahoma

PostPosted: Thu 19 May 2011, 23:56    Post subject:  

Quote:
The MultiPup link takes you to a porn gateway site, so that might need to be edited


LOL.... Cool Cool

_________________
Close the Windows, and open your eyes, to a whole new world
http://puppylinuxstuff.meownplanet.net/puppyluvr/
Puppy Linux Users Group on Facebook

Puppy since 2.15CE...
Back to top
View user's profile Send private message Visit poster's website 
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Fri 20 May 2011, 13:01    Post subject: Bad webpage redirect.  

[quote="puppyluvr"]
Quote:
The MultiPup link takes you to a porn gateway site, so that might need to be edited
I am not getting that. Can you give me the line of text in the document that takes us to the bad site?

I will correct it? But, right now, for me, its going to the MultiPup forum thread.

Thanks in advance

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
c7jaff

Joined: 07 Feb 2011
Posts: 13

PostPosted: Fri 20 May 2011, 19:33    Post subject:  

Here's my Ubuntu svr dir path w/Puppy files. It didn't work until I put lupu-511.sfs there:

/tftpboot/netboot/initrd.gz (126.4 MB made w/mknetboot.sh script)
/tftpboot/netboot/lupu-511.sfs (177.9 MB - copied from CD)
/tftpboot/netboot/vmlinuz (2.1 MB made w/mknetboot.sh script)

vmlinuz didn't appear like the script affected it though.

I recall getting a gateway last month from a PXE link but I don't think it's there now. It may have been a *.asia link. I just went through the links. While checking the links below...I found the below MultiPup thread which I'll try to figure out and whittle down to some usable steps - if it applies to a netbootable puppy with non-local save file:
12 pages [174 Posts]
http://murga-linux.com/puppy/viewtopic.php?p=491486#491486

---
This page had the below links, my comments in double parens:
https://docs.google.com/document/d/1bkMJ-2wjAAC8HVZZTZBFxBELbojoGctLMg27KazqvRw/edit?hl=en&pli=1#
---

Procedure 1 - Implementation Steps/Instructions [you can use this or Procedure 2, below]

1. Go and install dnsmasq PET (you only need to do this once)


For 64bit Puppies - get it from [here] ((http://www.google.com/url?q=http%3A%2F%2Fdistro.ibiblio.org%2Fpub%2Flinux%2Fdistributions%2Ffatdog%2Fpets%2F500%2Fdnsmasq-2.55-x86_64.pet&sa=D&sntz=1&usg=AFQjCNFvzRgGO7bSlDtuJ3ZCrjkP86MVpg I didn't try it))

For 32bit Puppies - get it from [here] ((http://www.google.com/url?q=http%3A%2F%2Fwww.murga-linux.com%2Fpuppy%2Fviewtopic.php%3Fmode%3Dattach%26id%3D37850&sa=D&sntz=1&usg=AFQjCNEErPmZhr4WAqSeZLBvNoZUTZZIMg goes to not authorized page))

---

4. Run mknetboot.sh ((http://www.google.com/url?q=http%3A%2F%2Fmknetboot.sh&sa=D&sntz=1&usg=AFQjCNG6UzGnzmctIincUjrJO2t2CNvUcg goes to not found page but I got the script elsewhere))
1. From console - open console/terminal, then type “mknetboot.sh” followed by Enter. Follow the prompts.
2. From menu - open Menu, choose Utility, Gexec (Execute a Command). When a dialog opens, type “mknetboot.sh” and click “OK”. Then follow the prompts.

---

1. Install the appropriate DNSMASQ.PET

* For FATDOG users, download from here (64bit dnsmasq.pet)
* For other PUPPY users, download from here (32bit dnsmasq.pet) ((http://www.google.com/url?q=http%3A%2F%2Fwww.murga-linux.com%2Fpuppy%2Fviewtopic.php%3Fmode%3Dattach%26id%3D37850&sa=D&sntz=1&usg=AFQjCNEErPmZhr4WAqSeZLBvNoZUTZZIMg goes to not authorized page))

---

For now my question is still open: Can puppy netboot and save the session lupusave.3fs back to the server? If so I'd like to know how.
Back to top
View user's profile Send private message 
Master_wrong

Joined: 19 Mar 2008
Posts: 456

PostPosted: Tue 24 May 2011, 00:12    Post subject:  

I have been thinking...

what if...

we use gpxe as i use here
http://www.murga-linux.com/puppy/viewtopic.php?t=66435

then just for the pxe puppy, we change the routine :

1 always seek load savefile via nfs/unfs* ?
2 change the saving state place... ? maybe via nfs/unfs* ?

* because all connected client will load/save its better to mount folder on server something like :
/mnt/save/192.168.2.115/savefile.sfs
/mnt/save/192.168.2.114/savefile.sfs
etc
so client can automatically load/save to their savefile...
Question

_________________
Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Thu 26 May 2011, 10:44    Post subject: Can NETBOOTed PXE PC save the session at Shutdown/Reboot  

c7jaff wrote:
... For now my question is still open: Can puppy netboot and save the session lupusave.3fs back to the server? If so I'd like to know how.
@c7jaff Thanks for your comments. I have tried to address issues with the links in that document. Seems to be butting up against some Google security issues; ..., now, getting to your questions:

Currently the Netboot+DNSMASQ faciliity allows a PC without any peripheral except a LAN card to boot from the PXE server. But, today, there has not been any save-session feature provided to this service. We need that AND I believe that someone will address that in this facility's future.

JamesBond has attempted to "inspire" us on how to do this, but, participation and maybe understanding is lacking on an approach to do this.

I seem to remember that I had success by saving to a local HDD/USB such that it is there on reboot. But, this starts to get a little out of hand when I work on multiple PUP distros as in some cases one distro when booting thought a saved-session file on the HDD from another distro was to be used by it during boot.

If you do decide that this is a requirement you may want to search for JamaesBond's threads and comments on this, overy past 3 months. Master_Wrong and he also have discussed this very thing as well.

Hope this helps

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 7 [100 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1291s ][ Queries: 13 (0.0081s) ][ GZIP on ]