Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help very confused by diskless node wiki page
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1014

PostPosted: Sat Apr 28, 2018 6:07 am    Post subject: Help very confused by diskless node wiki page Reply with quote

I just read the page about diskless node and something that doesn’t seem that clear from the initial portion about the kernel, is where do I download it and is it architecture specific in terms of my master/slave kernels for the PXE boot systems. You see, I am planning on making use of older laptop for a diskless node that I can run with various bootable systems. I am fairly comfortable with all the steps that ARE THERE in the Wiki page such as the networking configuration, dhcp server, and finishing the pxe configuration.

But since the two system have two different architectures, with the master being a 64-bit (or technically with multi lib profile). and the slave system is one 32-bit which I can get to boot from the minimal installation cd.

In terms of the kernel install for PXE where would this come from, is its download? Or can I just build it on my master machine running different architecture? I am confused.

My understanding was that kernel like most other files that are stored specific to the architecture of the machine and that means I either need a working kernel (like the one on the installation cd or I need to find a way to compile a new kernel for the slave somehow). Or can I skip this step altogether by finding a working 32-bit kernel from online?

UPDATE: I guess I had skipped past the section dealing with architectures, because I see it now with respect to the kernel source directory, which is pretty much what I was asking. It looks like I can just copy the bzImage from the correct architecture, so hopefully that works.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1014

PostPosted: Sat Apr 28, 2018 6:52 am    Post subject: Compiling kernels without modules Reply with quote

So following my lengthy post here is a simple question that I was hoping to be told if this makes sense to do.

I want to recompile the kernel module-less, does that mean I can just replace all M with Y in the config and then run make again?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Sat Apr 28, 2018 9:34 am    Post subject: Reply with quote

LIsLinuxIsSogood,

Try it ... then you tell us.

The only complication is if you need out of kernel modules like nvidia or vboxdriver.
You will need to leave module loading support on and build those things against your kernel.

A word of warning. 64 bit and 32 bit kernels use the same source tree.
Building a 32 bit kernel for your diskless node will overwrite all the 64 bit build for the host and vice versa.
You need to keep the .config files outside the kernel tree and better yet, keep two separate kernel trees.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sat Apr 28, 2018 11:19 am    Post subject: Re: Help very confused by diskless node wiki page Reply with quote

LIsLinuxIsSogood wrote:
But since the two system have two different architectures, with the master being a 64-bit (or technically with multi lib profile). and the slave system is one 32-bit which I can get to boot from the minimal installation cd.

In terms of the kernel install for PXE where would this come from, is its download? Or can I just build it on my master machine running different architecture? I am confused.

TFTP server is usual source for kernel and possible initrd, but PXELINUX can nowadays also load them (faster) through HTTP or FTP.

(SystemRescueCD is usually better option than Gentoos minimal install cd, it also supports UEFI. I would recommend Dnsmasq for DHCP etc server, it includes TFTP server and is easier to configure.)
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Sat Apr 28, 2018 1:53 pm    Post subject: Reply with quote

You need 32 bit image for your 32 bit pxe client.
The server architecture is irrelevant, none of its code runs on your client.

Regarding "replace M with Y", It did the trick for me, however I already had a pretty well tuned kernel to start with. It's more likely to fail with generic setup than it was with mine, where I disabled quite a few things I knew I wouldn't need.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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