Bug #317
Diskless FrontEnd creation script
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - |
Description
Hi all,
I'm currently running R5F27 using two diskless FrontEnds of which I am a huge fan for a number of reasons. Unfortunately I am no linux-head but I had a friend visiting recently who is and he attempted to edit the config_diskless_frontend.bash script developed in [[http://mysettopbox.tv/phpBB2/viewtopic.php?t=10098&postdays=0&postorder=asc&start=0&sid=b86e0e920f6fea5f683dd143a6bb6079|this thread]]. He manually installed dhcpd & tftpd beforehand but the rest should be in the script. I used it and have one diskless FE running but I can't gurantee anything in this script. My friend also knew nothing about arch linux and he coded it very quickly so again, no guarantees. But it would be an awesome feature to have OOTB in LinHES and even better if it was all nicely menu-driven.
History
Updated by poflynn over 15 years ago
Scripts created by my friend.
Updated by GregFrost over 15 years ago
So it seems from the forum posts http://knoppmyth.net/phpBB2/viewtopic.php?t=10098&start=185 that we need a package with dhcpd in the LinHES repo. I'll see what I can do.
Updated by GregFrost over 15 years ago
I have added PKGBUILDS for dhcpd and tftpd to the repository and updated runit-scripts with run scripts for them. jams or cesman (or bob?) will need to build the packages to make them available. I am working on an updated config_diskless_frontend.bash that enables the required services. Im not sure where it should go. It should probably be in LinHES-config, but I note that it looks like someone has already created a script in there called build_diskless.sh. Is that supposed to replace config_diskless_frontend.bash?
Updated by poflynn over 15 years ago
I hope this q isn't directed at me because I have no idea how to answer it :-) Given the lack of activity from that thread from anyone other than me, I'd be surprised if someone wrote an R6 version of this script. Thanks for the efforts!
Updated by GregFrost over 15 years ago
With the dhcpd and tftpd packages I have included, my frontend gets an ip from the dhcp server and then tftps the initial kernel, but then fails to access root via nfs. Im not sure why, but that is the next puzzle to solve. paul: Do you know if your friend needed to compile a new kernel with new configuration options in order to get it working on R6?
Updated by poflynn over 15 years ago
I pretty certain that he didn't, I'm sure he would have mentioned something that drastic. His problems were mostly related to the init framework, he definitely struggled with that, he was suspicious that "the linhes guys hi-jacked it" and other such comments. I am surprised that you're having this problem, I created 2 FEs with it and they both worked really well. Maybe we should talk to that Craig guy on the discussion forum to see how far he's got?
Updated by GregFrost over 15 years ago
Well, after looking into it further, I find that hard to believe because it would seem that the kernel in LinHES doesnt have any of the options selected that the wiki page says are needed. Perhaps your friend didnt make a big deal about it because it was clear in the instructions on the wiki? Anyway, im working on a new kernel configuration that will support diskless frontends. I am not sure of all of the implications of rebuilding the kernel. Hopefully I can discuss this with cesman in IRC at some stage.
Updated by GregFrost over 15 years ago
The changes have been made to the kernel to support diskless frontends.
I have just added a package called diskless-legacy which works like the old knoppmyth diskless script with a few differences:
It doesnt attempt to share /usr by having the frontend mount it readonly. This allows packages to be added to the frontend only. It takes longer to build the frontend, but it makes the frontend more independent.
I also changed it so that the pacman package cache is shared with the master backend.
Once cesman or jams or someone has built the binary packages, you should just need pacman -S diskless-legacy and it will install what is needed for you to use the diskless script.
cesman/jams: please build and push a binary package to the repo.
Paul: please try it and let me know how you go.
Updated by GregFrost over 15 years ago
I almost forgot to mention: in order to build the LinHES config script after I had removed the config_diskless_frontend.bash file, I had to remove reference to mythinstall.bin from the PKGBUILD because it is not in the git repo. This should probably be fixed as a matter of urgency.
Updated by iscraigh over 15 years ago
I get to the same place....
updated backend and run config_diskless_frontend.bash script I notice an error about the nfs module.
I forge ahead.
I end up stuck at can't find /dev/nfs
Try to create it cant find /bin/mknod
When I look in the image on the backend mknod is present.
Delete and try again no errors this time but.
Still no go same place
unable to determine root file system
and the mknod nfs errors
any suggestions?
Updated by GregFrost over 15 years ago
That sounds like your network module is not built into the kernel. Determine which module is being used by your network and check the kernel configuration to see if this is the case. If it is, we can update the kernel config to build your module in.
Updated by poflynn about 15 years ago
Finally got my new h/w and am building this out. Thx for the efforts so far Greg. I have a basic install of an mbe up and running & i downloaded and ran this script. Seemed to run ok so I wandered over to my FE, hit the power button and was very excited to see it boot. However it got stuck starting X as it has a different (VDPAU-compatible) gfx card so now I want to install the nvidia drivers, mythtv-vdpau pkg etc on the FE. I ran pacman but got an error that it is unable to write pkg files from the FE. I double-checked /etc/exports on the mbe and everything appears to be shared out as rw. Also I was running pacman as root on the FE. Any thoughts?
Updated by poflynn about 15 years ago
Ok, figured it out, note lines 385 and 407; I added the no_root_squash option to line 385 thus allowing updates to /data/var/cache/pacman from the FEs. This should be added to the script.
Also I see the line below still in there; I commented this out from the R5F27 script as I didn't want the DHCP server interfering with my router's DHCP server. This line ensures it only responds to PXE DHCP requests which I think is what most ppl would want but maybe not. Either way, might be a good idea to update the comment to something more legible for ppl.
- POF allow booting;
Updated by GregFrost about 15 years ago
Paul, can you attach the script you ended up with so there is nothing lost in translation? Then I'll update the package.
Updated by jams over 14 years ago
- Status changed from New to Closed
Closed due to lack of activity