[SOLVED] PXE dracut nfs boot

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] PXE dracut nfs boot

Postby medintux » Sep 10th, '12, 10:12

Hi ,

sorry for my poor english...

I hope that is the correct place for this post, and apologize me if not.
I try to boot Mageia2 on PXE diskless client from lan nfs serveur : (192.168.0.10 in this exemple)

To create testinitrd with nfs support , i run dracut with :

Code: Select all
dracut -f   -d nfs -d network  /home/urg/mageiaOnNfs/mageia2/boot/testinitrd 


(where /home/urg/mageiaOnNfs/mageia2/boot/ point to correct tftp boot place)
and generate directly testinitrd in correct tftp folder.

192.168.0.10:/tftpboot/mageia2/boot/loopbacks is a nfs shared export folder in wich i have copied the mageia file system.

create a new entry in : tftpboot/pxelinux.cfg/default

Code: Select all
LABEL Mageiatest
KERNEL mageia2/boot/vmlinuz-3.3.6-server-2.mga2
APPEND initrd=/mageia2/boot/testinitrd rd.neednet=1 rd.driver.pre=nfs rootfstype=nfs root=nfs:192.168.0.10:/tftpboot/mageia2/boot/loopbacks:-t rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 vga=788


note that some another tftpboot folders entries runs perfectly with other linux distribution (SliTaz, ubuntu) on this server.

when client boot with this entrie i get this error :

Code: Select all
dracut : FATAL: don't know how to handle 'root=nfs:192.168.0.10:/tftpboot/mageia2/boot/loopbacks'


nfs seems not run. I try with a recompiled kernel with nfs direct support and i get the same error.

on fedora forum i see that dractcut-network package must be installed. On Mageia i don't found this package.
some people says me that Mageia2 dracut package contains dractcut-network...

is there some charitable man to help me to boot Mageia2 clients from my nfs server.

By avance many thanks for your help.

Roland
http://medintux.org
Last edited by isadora on Sep 23rd, '12, 20:03, edited 2 times in total.
Reason: added code tags, to improve on clarity, added some markup, fixed some typos
medintux
 
Posts: 8
Joined: Sep 10th, '12, 09:02

Re: PXE dracut nfs boot

Postby tom_ » Sep 10th, '12, 15:37

this could be your problem, but it is still opened on the fedora side.

https://bugzilla.redhat.com/show_bug.cgi?id=537969

I don't think you'll find some help here in the forum,
it could be better if you open a bug report for that:

https://wiki.mageia.org/en/How_to_report_a_bug_properly
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: PXE dracut nfs boot

Postby doktor5000 » Sep 11th, '12, 21:22

You may want to take a look at: http://colin.guthr.ie/2011/06/network-b ... -goodness/

Please next time use code tags as explained in ftp://ftp.mandrivauser.de/rpm/rpm/extra ... e_tags.ogv
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PXE dracut nfs boot

Postby medintux » Sep 17th, '12, 20:28

Thanks very much for your help

The problem is not resolved, now



May be here is the solution.

Thanks.

Roland.
medintux
 
Posts: 8
Joined: Sep 10th, '12, 09:02

Re: PXE dracut nfs boot

Postby linuxero » Sep 17th, '12, 23:05

Execuse me; but I don't understand why do you need to use dracut to boot Mageia through PXE!

I did that a while ago with Mandriva, NFS, HTTP and FTP, and there has been no need to recreate initrd!

If you configure the dhcp and tftp to pick up the right file on the right server you can use Mageia's default initrd and kernel..remember that you can install Mageia on the network so maybe I am missing something in your problem!

I'll try it on the week-end and update again.

Good luck!
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: PXE dracut nfs boot

Postby medintux » Sep 18th, '12, 08:49

Thanks fot your reply,

Execuse me; but I don't understand why do you need to use dracut to boot Mageia through PXE!


I have to deploy OS + specifics applications on fanless diskless clients, from a pxe (ipxe) tftp nfs server. it's work with SliTaz, Ubuntu, but i want mageia kde because it is the best environnement for this specifics applications.

thanks.
medintux
 
Posts: 8
Joined: Sep 10th, '12, 09:02

Re: PXE dracut nfs boot

Postby linuxero » Sep 18th, '12, 09:30

medintux wrote:I have to deploy OS + specifics applications on fanless diskless clients, from a pxe (ipxe) tftp nfs server. it's work with SliTaz, Ubuntu, but i want mageia kde because it is the best environnement for this specifics applications.
thanks.


So it is a Linux Terminal Server! Have you checked http://wiki.mandriva.com/en/Docs/SysAdm ... inalServer ?
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: PXE dracut nfs boot

Postby medintux » Sep 18th, '12, 10:29

So it is a Linux Terminal Server! Have you checked http://wiki.mandriva.com/en/Docs/SysAdmin/Server/TerminalServer


As see thereafter this solution shares root server fs not good for me because server is not always with same Os , may be VM machine resolves this ?

Terminal-server is a subsytem of Mandriva Linux that is perhaps less than well publicized. If you are familiar with LTSP, it is very similar, except that it uses the server's root filesytem, rather than having a parallel, client filesystem under a different directory (like /opt). The main benefit to this type of arrangement is that the client software base will automatically be updated along with the server, rather than needing to redo an LTSP type arrangement to agree with the server software base. The negative side may be in sharing the root fileystem with a number of other machines. although in a controlled environment this shouldn't be much worse than having user accounts on the server.

thanks
medintux
 
Posts: 8
Joined: Sep 10th, '12, 09:02

Re: PXE dracut nfs boot

Postby linuxero » Sep 18th, '12, 10:41

medintux wrote:As see thereafter this solution shares root server fs not good for me because server is not always with same Os , may be VM machine resolves this ?


Sorry! I seem not to have gotten your problem quite well..! :?

You have a diskless machine, like a dumb terminal, and you want to boot it using PXE. Then what kind of root file system is this machine going to use?! :!:

Are you trying to share an NFS folder only? What do you mean by "the server OS is not always the same"?
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: PXE dracut nfs boot

Postby medintux » Sep 23rd, '12, 16:33

linuxero wrote:
medintux wrote:As see thereafter this solution shares root server fs not good for me because server is not always with same Os , may be VM machine resolves this ?


Sorry! I seem not to have gotten your problem quite well..! :?

You have a diskless machine, like a dumb terminal, and you want to boot it using PXE. Then what kind of root file system is this machine going to use?! :!:

Are you trying to share an NFS folder only? What do you mean by "the server OS is not always the same"?


Thanks for your help,

I make a litle step forward ...in the abyss.

Now i can boot Mageia2 on a client terminal via PXE/dhcp/tftp. Filesystem is somewhere on a nfs server.
Ok . I go in a root console, lauch X11 Xfce with startx but no keyboard no more mouse in X11 (fortunately i can kill X11 client with ssh from an another PC). X11 config mouse/keyboard seems ok. Curious : when i use keyborad on client all caracters goes in root console ant not in X11 (i see this after killing X11 with ssh).



When the next episode ?. Lots of RTFM to read .....

Good-bye
medintux
 
Posts: 8
Joined: Sep 10th, '12, 09:02

Re: PXE dracut nfs boot RESOLVED

Postby medintux » Sep 23rd, '12, 19:52

Bingo here is the solution in /etc/xorg.conf ····

Section "ServerFlags"
Option "AutoAddDevices" "false "
EndSection

thanks and many thanks to all peoples which have help me ....

RESOLVED

Roland
medintux
 
Posts: 8
Joined: Sep 10th, '12, 09:02

Re: [SOLVED] PXE dracut nfs boot

Postby linuxero » Oct 13th, '12, 19:48

Great! Maybe you can expose the scenario here ;)
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest