[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:network_services:nfs_root [2018/05/28 21:10 (UTC)] – created bifferos | howtos:network_services:nfs_root [2018/05/28 21:33 (UTC)] – [Configuring LILO] bifferos | ||
---|---|---|---|
Line 56: | Line 56: | ||
# make menuconfig</ | # make menuconfig</ | ||
- | Configuration order is important, as selecting certain options makes others available: | + | Configuration order is important, as selecting certain options makes others available. First off we will need a network driver compiled into the kernel for the NIC we're going to use. For VirtualBox the default NIC is PCnet32, an lspci will probably tell you yours: |
- | Device Drivers -> Network Device Support -> Ethernet driver support -> AMD PCnet32 PCI support <*> | + | < |
- | Networking support -> Networking options -> IP: kernel level autoconfiguration [*] | + | |
- | IP: DHCP support [*] | + | |
- | File Systems -> Network File systems -> Root file system on NFS [*] | + | |
- | Save the configuration and them do a: | + | Make sure this is compiled into the kernel (e.g. hitting ' |
- | < | + | [OPTIONAL] We also need to tell the kernel which IP address to use, which can be set statically, but DHCP is much easier, so generally you will want to include these options: |
+ | |||
+ | < | ||
+ | IP: DHCP support [*]</ | ||
+ | |||
+ | Finally, we absolutely need the support for Root FS on NFS: | ||
+ | |||
+ | < | ||
+ | |||
+ | [OPTIONAL] It's pretty useful to append a local version to this kernel release. | ||
+ | |||
+ | < | ||
+ | |||
+ | Save the configuration and then do a: | ||
+ | |||
+ | < | ||
While that build is running, it's time to configure LILO. | While that build is running, it's time to configure LILO. | ||
Line 72: | Line 84: | ||
==== Configuring LILO ==== | ==== Configuring LILO ==== | ||
- | Let's call the kernel / | + | Let's call the kernel / |
- | Add a section to the lilo.conf file: | + | |
- | < | + | < |
label = nfs | label = nfs | ||
read-only | read-only | ||
append= " | append= " | ||
- | (substitute your nfsroot server IP address for 172.17.0.80) | ||
Obviously keep your default linux kernel in another image= section so you can switch between booting the nfsroot and the normal kernel to play around with this stuff. | Obviously keep your default linux kernel in another image= section so you can switch between booting the nfsroot and the normal kernel to play around with this stuff. | ||
- | You cannot specify a normal root = entry in this section because lilo doesn' | + | You cannot specify a normal root= entry in this section because lilo doesn' |
The v3 seems to be really important in making anything at all happen on boot. If that isn't set, no communication seems to occur. | The v3 seems to be really important in making anything at all happen on boot. If that isn't set, no communication seems to occur. | ||
- | The ' | + | The ' |
+ | |||
+ | With the kernel compilation finished, copy the kernel into the /boot directory and rename it: | ||
+ | |||
+ | < | ||
+ | |||
+ | It may be elsewhere depending on your architecture. | ||
+ | Don't forget to run LILO: | ||
+ | < | ||
====== Sources ====== | ====== Sources ====== |