From: Ph. M. <phi...@bm...> - 2007-03-21 08:30:49
|
Hello everybody! I wanted to try colinux, and boot from an NFS server. So my configuration file looks like this: ip=<myip>:<server>:<gw>:<netmask> root=nfs nfsroot=<path> nfsaddrs=<server> init=/bin/bash kernel=vmlinuz eth0=tuntap mem=64 This parameters I took from bootparam(7). On starting colinux-daemon I get ... VFS: Cannot open root device "nfs" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic: ... In the current snapshots I found nfs.ko - but that would be needed for booting! Is there some version that has NFS compiled in? Please keep me cc'ed, I'm not subscribed. Thank you! Regards, Phil |
From: Henry N. <Hen...@Ar...> - 2007-03-26 07:46:47
|
Ph. Marek wrote: > I wanted to try colinux, and boot from an NFS server. > So my configuration file looks like this: > > ip=<myip>:<server>:<gw>:<netmask> > root=nfs > nfsroot=<path> > nfsaddrs=<server> > init=/bin/bash > kernel=vmlinuz > eth0=tuntap > mem=64 > This parameters I took from bootparam(7). > > > On starting colinux-daemon I get > ... > VFS: Cannot open root device "nfs" or unknown-block(0,0) > Please append a correct "root=" boot option > Kernel panic: ... > > In the current snapshots I found nfs.ko - but that would be needed for > booting! > Is there some version that has NFS compiled in? No. You can try to boot with your own initrd? Unpack the initrd.gz, mount it as loop, edit the script 'linuxrc' to load the module (insmod sunrpc; insmod lockd; insmod nfs). Copy the modules to /lib/modules in the initrd system. You not need all modules, the 3 are enouth. Unmount the loop and compress initrd to an initrd.gz Than add initrd=initrd.gz to your coLinux configuration. Best way is, to view inito initrd.gz from your distribution, to see how nfs boot would work. With the initrd.gz from coLinux you would have problems, becuase it tries to install modules in an block device, that is mounted as /mnt/linux. For your nfs boot you should remove the complete block for installing modules after the echo "Mounting /", and replace it with your lines for loading nfs modules. $ROOTDEv is "nfs" in your case. So, you can create an alternate 'if'-condition for normal and the other for nfs boot. This are my some ideas, have never checked such boot. -- Henry |
From: Ph. M. <phi...@bm...> - 2007-03-26 09:04:25
|
Hello Henry! Thank you for your tip. On Sunday 25 March 2007 23:45, Henry Nestler wrote: ... > > In the current snapshots I found nfs.ko - but that would be needed for > > booting! > > Is there some version that has NFS compiled in? > No. > > You can try to boot with your own initrd? ... > This are my some ideas, have never checked such boot. I now tried that, but it doesn't work. I always get "Please append a correct root= option...". Looking into the sources I see this (from lines 1697 on): config ROOT_NFS bool "Root file system on NFS" depends on NFS_FS=y && IP_PNP (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=fs/Kconfig/Kconfig;h=3c4886b849f57e21d4fbde30fd7b633139165790;hb=HEAD) I think it's not possible with NFS as module. So, here's my question again: Can somebody build the colinux kernel with nfs (and the other requirements) built-in? Regards, Phil |
From: George P B. <geo...@gm...> - 2007-03-26 14:05:47
|
Ph. Marek wrote: > I now tried that, but it doesn't work. I always get "Please append a correct > root= option...". > Looking into the sources I see this (from lines 1697 on): > config ROOT_NFS > bool "Root file system on NFS" > depends on NFS_FS=y && IP_PNP > (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=fs/Kconfig/Kconfig;h=3c4886b849f57e21d4fbde30fd7b633139165790;hb=HEAD) > > > I think it's not possible with NFS as module. > So, here's my question again: Can somebody build the colinux kernel with nfs > (and the other requirements) built-in? > > :(. That I suppose makes senses (might be hard to boot from NFS if it's a module or easier to just make it required to be built in). At any rate. What coLinux version are you using for this attempt to boot from NFS? Thanks, George |
From: Ph. M. <phi...@bm...> - 2007-03-27 05:41:04
|
On Monday 26 March 2007 16:05, George P Boutwell wrote: > Ph. Marek wrote: > > I think it's not possible with NFS as module. > > So, here's my question again: Can somebody build the colinux kernel with > > nfs (and the other requirements) built-in? > > > :(. That I suppose makes senses (might be hard to boot from NFS if it's > > a module or easier to just make it required to be built in). At any > rate. What coLinux version are you using for this attempt to boot from > NFS? Well, I'm just experimenting right now, so any current snapshot is fine. I deployed the 2.6.17 modules on the NFS server, but that's no problem. The newer the better :-) Regards, Phil |
From: Henry N. <Hen...@Ar...> - 2007-03-27 20:25:34
|
Ph. Marek wrote: > On Monday 26 March 2007 16:05, George P Boutwell wrote: >> Ph. Marek wrote: >>> I think it's not possible with NFS as module. >>> So, here's my question again: Can somebody build the colinux kernel with >>> nfs (and the other requirements) built-in? >>> >> a module or easier to just make it required to be built in). At any >> rate. What coLinux version are you using for this attempt to boot from >> NFS? > Well, I'm just experimenting right now, so any current snapshot is fine. I > deployed the 2.6.17 modules on the NFS server, but that's no problem. > The newer the better :-) Here you can try: http://www.henrynestler.com/colinux/testing/devel-0.8.0/20070327-nfskernel/ -- Henry |
From: Ph. M. <phi...@bm...> - 2007-03-28 06:46:58
|
Hello Henry! On Tuesday 27 March 2007 22:26, Henry Nestler wrote: > Here you can try: > http://www.henrynestler.com/colinux/testing/devel-0.8.0/20070327-nfskernel/ Thank you very much. Sadly I still get the same error. I'll investigate if maybe my network settings are wrong -- although the linux kernel sees a eth0 device. Maybe CONFIG_IP_PNP is not set? Regards, Phil |
From: Henry N. <Hen...@Ar...> - 2007-03-29 07:43:36
|
Hello Phil, Ph. Marek wrote: > On Tuesday 27 March 2007 22:26, Henry Nestler wrote: >> Here you can try: >> http://www.henrynestler.com/colinux/testing/devel-0.8.0/20070327-nfskernel/ > Thank you very much. > Sadly I still get the same error. I'll investigate if maybe my network > settings are wrong -- although the linux kernel sees a eth0 device. > > Maybe CONFIG_IP_PNP is not set? exactly, was not. CONFIG_ROOT_NFS also enabled now. Sorry, I'm not user of nfs boot. My focus was on nfs in kernel only. You wrote both in other mail, and I have not seen it. ;-( -- Henry |
From: Ph. M. <phi...@bm...> - 2007-03-29 12:51:02
|
Hello Henry! On Thursday 29 March 2007 00:18, Henry Nestler wrote: > exactly, was not. > CONFIG_ROOT_NFS also enabled now. > > Sorry, I'm not user of nfs boot. My focus was on nfs in kernel only. > You wrote both in other mail, and I have not seen it. ;-( Thank you very much. It seems to work so far - my NFS server sadly says something about an unsupported protocol version, which I have to investigate further. But it gets contacted - and so I think that should work. Thank you again! Regards, Phil |
From: Ph. M. <phi...@bm...> - 2007-04-16 11:03:52
|
Hello Henry! On Thursday 29 March 2007 14:50, Ph. Marek wrote: > On Thursday 29 March 2007 00:18, Henry Nestler wrote: > > exactly, was not. > > CONFIG_ROOT_NFS also enabled now. > > > > Sorry, I'm not user of nfs boot. My focus was on nfs in kernel only. > > You wrote both in other mail, and I have not seen it. ;-( > Thank you very much. > It seems to work so far - my NFS server sadly says something about an > unsupported protocol version, which I have to investigate further. Now I chose the package nfs-user-server - and that works. I can use the root filesystem of another machine. Currently I'm trying to get unionfs working ... but that's just a matter of time. Thank you again! Regards, Phil |