Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updating a ~10 year old Gentoo tutorial
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tux's lil' helper
Tux's lil' helper

Joined: 03 Jul 2016
Posts: 79

PostPosted: Wed Nov 01, 2017 10:41 pm    Post subject: Updating a ~10 year old Gentoo tutorial Reply with quote


The tutorial in question is this one.

But first, there's this bit to be accomplished.

The packages listed there all (still) exist, thankfully. And they install just fine.

Then, I get to the net-dns/dnsmasq bit. I'm not sure if I wrote the /etc/whatever.dnsmasq.conf file properly. Then, they say that in /etc/resolv.conf I should have "search cluster.local" even though earlier it was clear that having a domain is optional.
Then, it says dhcpcd must not overwrite resolv.conf when it gets the IP address and so the "-R" option must be forwarded to it in /etc/conf.d/net...

...which doesn't work. When booting, dhcpcd reports that's an invalid option and doesn't get an IP.

Then, at sys-cluster/c3 the tutorial provides an /etc/c3.conf file which I'm not sure I did correctly. I don't want to have a domain and the hostnames are P3cluster_master, P3cluster_node1 and so on. I'm also trying to make it not boot from the network, as the network cards can't netboot and they're not recognized by that Etherboot software. The whatever.dnsmasq.conf file is named Pentium3.dnsmasq.conf but I'm definitely not sure I have it right:


#The group name,address range and lease time:
# The GROUP_NAME's,option 3:default Gateway (if you really need this, nodes shouldn't require routed access):
# The GROUP_NAME's, option 42:time server address:
# This is required for PXE booting
# As can be seen in the dnsmasq.conf, this option is not guaranteed to work (DN search order)
# Now for the host listing, format is:

NeddySeagoon and whoever else knows what this is about, please advise.
Stop the world. I want to descend.
Back to top
View user's profile Send private message

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

PostPosted: Fri Nov 03, 2017 7:54 pm    Post subject: Reply with quote


The important thing with network booting is that you don't change the IP address of the client.
Its needed very early in the boot process to mount the root filesystem and if it gets changed, the root filesystem goes away.

Either statically assigned IP addresses work or dynamically assigned IP addresses bound to the MAC address work.
The latter appears to be static.

First make the system boot normally. Then you know you have a working setup.
Now add PXE booting (etherboot), root over NFS and make it boot the same binary install.
That limits the issues just to the bits you changed.

There are intermediate steps to get going too. Boot normally but have root on NFS.
Swap over NFS is possible too but it will be a lot faster on a local drive, if you have swap.

Once you have one diskless node going, the hard bit is behind you.

Build on what you know works, break the problems into lots of smaller problems and solve the small problems.

Heres a segment of my /etc/dhcp/dhcpd.conf

# PXE hosts share the same subnet as green
# subnet netmask {
# Provide PXE clients with appropriate information
class "pxeclient" {
        match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
        vendor-option-space PXE;

        # At least one of the vendor-specific PXE options must be set in
        # order for the client boot ROMs to realize that we are a PXE-compliant
        # server.  We set the MCAST IP address to to tell the boot ROM
        # that we can't provide multicast TFTP.

        option PXE.mtftp-ip;

        # This is the name of the file the boot ROMs should download.
    filename "pxelinux.0";

host mediaplayer {

        # the setup for our diskless system
        hardware ethernet f4:6d:04:6f:c8:0e;
#       filename
        server-name mediaserver;
        option subnet-mask;
        option broadcast-address;
        option routers;



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
Tux's lil' helper
Tux's lil' helper

Joined: 03 Jul 2016
Posts: 79

PostPosted: Fri Nov 03, 2017 11:13 pm    Post subject: Reply with quote

Right, I'd rather have the nodes not netbooted - the network cards I have don't support it and they are not supported by Etherboot or whatever the name was - Realtek RTL8169 chips, I think. Plus, I understand netbooting was only faster in the past, when there were no SSDs. All the nodes have SLC SSDs and really, they boot and generally work quite fast. I don't see the need for netbooting.

So that dhcp -R option was only for netbooting? That's all right then. I have two nodes normally installed, the master node even has X, with Xfce 4. I wouldn't mind setting predefined, static addresses and be done with it, especially since I don't want netbooting. It's not really the Gentoo way to have a canned kernel for all the nodes, unless you have identical nodes.

Moving on with the tutorial, the next question I found is if portage still needs or recognizes these make.conf settings:

FEATURES="buildpkg fixpackages sandbox ccache"
LINGUAS="fr en"

I installed Gentoo according to the tutorial. I have a separate tutorial from a very old Gentoo user, on how to install Xfce4. Not rocket science, he just saved a list of packages to emerge and in which order.

Anyway, next up I have the c3.conf, which if is also used for nodes with IPs assigned via DHCP, then I don't need it, either.

Next up is the Apache server config and then /etc/gmond.conf - in both cases, the hostname stuff is my problem. I only want the cluster to be named P3cluster, each node has a hostname and that's it. It won't have a sub-domain on an existing domain or whatever else like that. In the Apache config he had and in gmond.conf he has name = "Kluster" which is confusing. And then he adds some routes.
Stop the world. I want to descend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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