SliTaz SliTaz Forum

You are not logged in.

#1 2011-11-01 11:52:17

reetp
Member
Registered: 2011-11-01
Posts: 3

Boot from PXE server with NFS

Hi,

Just trying this distro. I already have a PXE server serving various distros using nfs.

I wanted to be able to boot Slitaz using the same setup but having read the wiki etc I can't see a way to do it.

A typical example of my current config :

Debian Mint

in /tftpboot/images/debian_mint/

initrd.lz

vmlinuz

in /tftpboot/pxelinux.cfg I have a menu entry 'linux_boot_disks' with the following lines :

label Debian Mint

menu label ^Debian Mint

kernel images/debian_mint/vmlinuz

append boot=casper netboot=nfs nfsroot=my_local_ip:/home/files/shares/computer/files/debian_mint initrd=images/debian_mint/initrd.lz

The client grabs vmlinuz & initrd.lz to initiate the boot and then gets the rest of the files from the nfs share.

I can't see a way to do this with slitaz. I can see that I could boot with gPXE and http but I don't want to do this as I already have an environment that works !

Any help would be gratefully appreciated.

B. Rgds

John

Offline

#2 2011-11-01 15:30:54

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Boot from PXE server with NFS

Loop mounted slitaz iso:

kernel is /boot/bzImage

initrd is /boot/rootfs.gz

initrd + root filesystem = rootfs.gz

Offline

#3 2011-11-01 16:25:57

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Boot from PXE server with NFS

See SliTaz web boot configuration ( starting from http://mirror.slitaz.org/pxe/pxelinux.cfg/default )

Exemple: http://mirror.slitaz.org/pxe/cooking/core/default

Offline

#4 2011-11-01 17:35:38

reetp
Member
Registered: 2011-11-01
Posts: 3

Re: Boot from PXE server with NFS

Thanks for the replies.

OK, I got it to boot thanks.

I didn't really want to loop mount the iso. On other OSs I have just extracted the ISO contents and gone from there. I also had a working setup and didn't want to use http methods etc. Speed isn't an issue.

It would be good to have the option of nfsmounting a folder at boot which is what you can do on Tiny Core

Looks like I need to hack rootfs.gz to change the default username and add a nfs mount as the home folder at boot unless anyone has any other ideas ?

B. Rgds

John

For info pxe config as follows :

label Slitaz Std

menu label Slita^z

kernel images/slitaz_3_0/bzImage

append initrd=images/slitaz_3_0/rootfs.gz vga=792 lang=uk kmap=uk

label Tiny

menu label ^Tiny Multi

kernel images/multicore_current/vmlinuz

append initrd=images/multicore_current/tinycore.gz nfsmount=my_local_ip:/home/files/shares/computer/files

Offline

#5 2011-11-01 18:52:34

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Boot from PXE server with NFS

I never suggested you loop mount the iso to boot it,but to show the path to the kernel and initrd

B.Rgds

mojo

Offline

#6 2011-11-01 23:13:43

reetp
Member
Registered: 2011-11-01
Posts: 3

Re: Boot from PXE server with NFS

Mojo,

my apologies. I misinterpreted your comment !

B. Rgds

John

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 9 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]