| Author |
Message |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Thu 31 Mar 2011, 22:29 Post subject:
Beyond PXE, cloud PXE --- SOLVED |
|
after taking pxe lesson in
http://www.murga-linux.com/puppy/viewtopic.php?p=488348#488348
I thought about cloud pxe and remember that tecnosaurus said that we need site or ftp that give us connection without password...
one way to do that is by portforwarding our computer as server...
i have one howto down here for ftp, but if we ned web server it is similiar:
http://www.murga-linux.com/puppy/viewtopic.php?p=342153#342153
ok, what next
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Last edited by Master_wrong on Sat 24 Sep 2011, 13:32; edited 2 times in total
|
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 2686 Location: Earth
|
Posted: Fri 01 Apr 2011, 01:32 Post subject:
|
|
Seems I remember 2 tools that already do that. You may want to look over their work. "Emerge" and "Netboot Me"
I'm sure there are other web PXE tools that do this. But, I'm not sure how they accomplish it. I willing to help if I can.
Hope this helps
_________________ Get ACTIVE; Create Circles; Do those good things which benefit the people's needs!
We are all related ... Its time to show that we know this!
Google's Puppy Search Engine
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Fri 01 Apr 2011, 05:58 Post subject:
|
|
ok, there some info at least...
http://www.netboot.me/
thank you for your tip gcmartin.
** http://www.murga-linux.com/puppy/viewtopic.php?t=64107
*** but I still need to know what to portforward ? -----> its web at port 80
let me try write a rough idea :
1. create humoungous initrd.gz and vmlinuz, using jamesbond's script see **
2 boot Puppy @192.168.2.130 local ----> as web server, put above files accordingly
3. portforward 192.168.2.130 -----> xxx.xxx.xxx.xxx internet address (see *** above)
4. using DynDNS.org or similiar (no-ip.com), lock internet address into ------> boot-puppy.webpages.net
5. create netboot.me cd which point to boot-puppy.webpages.net
6. boot client with netboot.me cd.
ok, please inform me if i makes mistake here
this project is possible
---------------------
Bravo for jamesbond giving more info:
http://www.murga-linux.com/puppy/viewtopic.php?t=65379
| Quote: |
If you want to boot from a website (as your debian links alluded), it's very easy. All you need is the gpxe *) boot disk (cd/usb/floppy - choose whatever you want), and boot from it. When the computer boots, press Ctrl-B, and type:
Code:
dhcp net0
chain http://your-web-server/your-single-file-puppy
The webserver obviously can be anything, it can be ibiblio (if someone uploads the single-file-puppy there), or it can be local webserver as in my screenshot. Your single-file-puppy can be created in this way:
1. Use mknetboot.sh to get the humoungous initrd.gz and vmlinuz.
2. Use wraplinux to combine this humoungous initrd.gz and vmlinuz together.
There you have it!
*) I used gpxe because ipxe, at the time of writing, doesn't work for me. And it only provides iso download for CD, other media is not supported (ie you have to compile it yourself).
**) those mknbi tools referred in the debian links is now known as "wraplinux", which is what I use.
***) you don't even need to use wraplinux really. Only the mknetboot.sh step is required, because you can do this in gpxe as well
Code:
dhcp net0
kernel http://your-web-server/vmlinuz
initrd http://your-web-server/initrd.gz
boot
|
so it's webserver which need to be portforwarded ----> port 80
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Last edited by Master_wrong on Mon 18 Apr 2011, 13:23; edited 5 times in total
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Fri 08 Apr 2011, 08:26 Post subject:
|
|
hi,
I just tested the gpxe and its working, my test was :
gpxe from http://rom-o-matic.net/gpxe/gpxe-1.0.1/contrib/rom-o-matic/build.php
after boot the gpxe cd from the iso, press ctrl-b and type:
dhcp net0
kernel http://192.168.2.130/vmlinuz
initrd http://192.168.2.130/initrd.gz
boot
as i already set up webserver at my linux mint so the location of the
files at linux-mint is at ---> /var/www
its working and puppy, btw we need to set permission so we can download the files.
also we need to press ctrl-b rather quick.
i hope we can edit the iso or something
*************************
i also test using
dhcp net0
kernel http://your-web-server/vmlinuz
as the setting in the http://www.dyndns.com/
it also work,
i didnt check
initrd http://your-web-server/initrd.gz
btw because i believe it will work too and i didnt want to download
100mb+ of my own files .
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1573 Location: The Blue Marble
|
Posted: Fri 08 Apr 2011, 10:06 Post subject:
|
|
| Master_wrong wrote: | | i hope we can edit the iso or something | If you compile gpxe / ipxe from source, you can specify the script that you want to include and automatically gets executed during boot.
gpxe scripting http://www.etherboot.org/wiki/scripting
ipxe scripting http://ipxe.org/scripting
| Code: | | make bin/gpxe.iso EMBEDDED_SCRIPT=/path/to/your/script |
Change gpxe.iso with ipxe.iso if you're using ipxe. Good luck.
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Sun 10 Apr 2011, 11:06 Post subject:
|
|
UPDATE : 12-april-2011
After i think about how silly to download my own files, i think about how cool to actually boot from internet....
so, today I successfully boot from web using iso i obtained from
http://rom-o-matic.net/gpxe/gpxe-1.0.1/contrib/rom-o-matic/build.php
----> below is sample embedded script add this text, see picture for test result
#begin sample
#!gpxe
dhcp net0
kernel http://myserver.dyndns.net/cloud/vmlinuz
initrd http://myserver.dyndns.net/cloud/initrd.gz
boot
#end of sample
#-----------------------
so thats great...
this great for computer that has no network pxe booting capability. i think.
because we can even use vbox
and put embedded script something like... (see screenshot-3)
#!gpxe
dhcp net0
kernel http://192.168.2.130/vmlinuz
initrd http://192.168.2.130/initrd.gz
boot
other than that its just cool to have ability to boot from internet.
thanks jamesbond
| Description |
|
| Filesize |
6.79 KB |
| Viewed |
983 Time(s) |

|
| Description |
|
| Filesize |
15.14 KB |
| Viewed |
659 Time(s) |

|
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
Last edited by Master_wrong on Sat 24 Sep 2011, 13:24; edited 4 times in total
|
|
Back to top
|
|
 |
cyberdam
Joined: 03 Dec 2010 Posts: 19
|
Posted: Sun 17 Apr 2011, 13:37 Post subject:
|
|
hello
I tested that and it works well (I included it. sfs in the initrd.gz).
By cons to operate pxe, I have not found a way to load or save the file on a server file_save.2fs nfs or tftp.
Have you any idea?
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Mon 18 Apr 2011, 13:01 Post subject:
|
|
Thank for the feedback
| Quote: | | I have not found a way to load or save the file on a server file_save.2fs nfs or tftp. |
try
http://www.murga-linux.com/puppy/viewtopic.php?t=65232&start=15
http://www.murga-linux.com/puppy/viewtopic.php?t=65232
ask jamesbond...
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
cyberdam
Joined: 03 Dec 2010 Posts: 19
|
Posted: Tue 19 Apr 2011, 07:10 Post subject:
|
|
I have already seen, but it does not work or I do not understand
but I finally managed to run with a save in the initrd.
I see init changed.
| Description |
|

Download |
| Filename |
init.rar |
| Filesize |
20.93 KB |
| Downloaded |
250 Time(s) |
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Wed 20 Apr 2011, 12:31 Post subject:
|
|
@cyberdam...
so did you solve your problem ?
how did you solve it ?
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
dlou99
Joined: 20 Apr 2011 Posts: 3
|
Posted: Mon 25 Apr 2011, 01:46 Post subject:
What do you guys think of using memdisk to PXE boot? |
|
What do you guys think about using memdisk to simulate a CDROM from an ISO image in order to PXE boot Puppy Linux?
We'd have to push the maintainers to add a couple of 6kB kernel modules and then run the 4kB 'memdiskfind' binary from the syslinux package at http://ftp.debian.org/pool/main/s/syslinux but after that, it would just be a simple matter of putting this in pxelinux.cfg
| Code: |
LINUX memdisk
INITRD lupu-525.iso
APPEND iso
|
and it should PXE boot pretty much as if there were a Puppy CD in a physical CDROM drive.
Do you guys think that people would balk at adding 17kB (7kB compressed) to the initrd.gz?
More details here: http://www.murga-linux.com/puppy/viewtopic.php?t=67053[/code]
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Mon 25 Apr 2011, 05:55 Post subject:
|
|
| Quote: | | Do you guys think that people would balk at adding 17kB (7kB compressed) to the initrd.gz? |
is it possible ?
even if it possible and didnt disturb anything...
I dont know howto
| Quote: | | push the maintainers |
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1573 Location: The Blue Marble
|
Posted: Thu 28 Apr 2011, 01:04 Post subject:
|
|
| cyberdam wrote: | I have already seen, but it does not work or I do not understand
but I finally managed to run with a save in the initrd.
I see init changed. |
1. A pupsave inside initrd is gone once the computer is rebooted. Might as well run from RAM then.
2. The idea of loading pup.sfs from NBD/CIFS/SSHFS/whatever is so that you don't have to load the entire pup.sfs into RAM (which is the case if pup.sfs is embedded into initrd). Thus, more RAM available for the apps with trade-off that apps launch becomes slower (because it has to access the network share).
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1573 Location: The Blue Marble
|
Posted: Thu 28 Apr 2011, 01:11 Post subject:
Re: What do you guys think of using memdisk to PXE boot? |
|
| dlou99 wrote: | What do you guys think about using memdisk to simulate a CDROM from an ISO image in order to PXE boot Puppy Linux?
We'd have to push the maintainers to add a couple of 6kB kernel modules and then run the 4kB 'memdiskfind' binary from the syslinux package at http://ftp.debian.org/pool/main/s/syslinux but after that, it would just be a simple matter of putting this in pxelinux.cfg
| Code: |
LINUX memdisk
INITRD lupu-525.iso
APPEND iso
|
and it should PXE boot pretty much as if there were a Puppy CD in a physical CDROM drive.
Do you guys think that people would balk at adding 17kB (7kB compressed) to the initrd.gz?
More details here: http://www.murga-linux.com/puppy/viewtopic.php?t=67053[/code] |
Sounds interesting. Fatdog64 already has the required modules, all that is needed is to move these modules from pup.sfs to initrd. Fatdog also has memdiskfind, but currently it's a dynamically linked, so it has to be recompiled with klibc or dietlibc to make it standalone so that it can be put into initrd (or if a static memdiskfind is already available, just use it). Then all we need is to patch /init with code to load the iso from MTD device instead of /dev/sr0.
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
dlou99
Joined: 20 Apr 2011 Posts: 3
|
Posted: Sun 01 May 2011, 00:33 Post subject:
|
|
[quote="jamesbond"] | cyberdam wrote: |
2. The idea of loading pup.sfs from NBD/CIFS/SSHFS/whatever is so that you don't have to load the entire pup.sfs into RAM (which is the case if pup.sfs is embedded into initrd). Thus, more RAM available for the apps with trade-off that apps launch becomes slower (because it has to access the network share). |
The downside is that you have to have a bloatload of network drivers in the initrd and either figure out which to load or go and load all of them.
|
|
Back to top
|
|
 |
|