View previous topic :: View next topic |
Author |
Message |
someoneG n00b
Joined: 26 Nov 2011 Posts: 13
|
Posted: Sun May 20, 2012 4:44 pm Post subject: [SOLVED] booting installCD via pxe + nfs |
|
|
Once again i seem to be failing hard. I am preparing a linux install party and I want to offer some more distros and as i use gentoo since like 2006 (and like it) i wanted to include it too.
I want to boot the gentoo minimal install CD via pxe + nfs.
I have a dhcp/pxe setup that boots a grub2 image.
Then i load the desired kernels+initrds and tell them to use a nfsroot which contains the loop mounted iso.
tftp is serving /dist and this is my exports file.
Code: | # /etc/exports: NFS file systems being exported. See exports(5).
/dist *(crossmnt,insecure,async,no_subtree_check,ro) |
So for example I have Ubuntu 12.04:
Code: | menuentry "Ubuntu 12.04 (32bit)" {
echo "Ubuntu 12.04 (32bit)"
echo "Downloading. Please wait..."
linux (pxe)/ubuntu32/mnt/casper/vmlinuz boot=casper netboot=nfs nfsroot=10.11.0.254:/dist/ubuntu32/mnt quiet --
echo "Almost there..."
initrd (pxe)/ubuntu32/mnt/casper/initrd.lz
echo "DONE - yay! booting..."
} |
and i have
Code: | mount -o loop,ro /dist/ubuntu32/ubuntu-12.04-desktop-i386.iso /dist/ubuntu32/mnt |
This setup works fine. I just installed ubuntu on a test machine. Therefore i assume that pxe, dhcp, nfs are configured correctly.
Mint, and others also boot into their live-CDs fine.
Now i wanted to add gentoo to this setup.
Code: | [code]mount -o loop,ro /dist/gentoo32/install-x86-minimal.iso /dist/gentoo32/mnt[/code]
And the Grub.cfg entry
menuentry "Gentoo (32bit)" {
echo "Gentoo (32bit)"
echo "Downloading. Please wait..."
linux (pxe)/gentoo32/mnt/isolinux/gentoo loop=/image.squashfs root=/dev/ram0 init=/linuxrc looptype=squashfs nfsroot=10.11.0.254:/dist/gentoo32/mnt cdroot=1 real_root=/dev/nfs console=tty1 dokeymap
echo "Almost there..."
initrd (pxe)/gentoo32/mnt/isolinux/gentoo.igz
echo "DONE - yay! booting..."
} |
So now if i select gentoo in grub, it boots.
And i come to the point where it asks me to select a keymap. I say: 10<enter>
The it says something like
Code: | Making root device.
udhcpc
[...]
obtained address
attempting to mount nfs cd image on 10.11.0.254:/dist/gentoo32/mnt with options [...]
Determining looptype ...
Mounting squashfs filesystem
mount: permission denied (are you root?)
Copying read-write image contents to tmpfs
cp: cant stat 'etc': no such file
[...]
|
And from that point on it fails. leading to a kernel panic:
Code: | cannot execute /sbin/init: no such file |
It seems that it somehow fails during the squashfs image mount, leading to fail.
Any ideas, how to fix that?
(I am using the current minimal CD (install-x86-minimal-20120306.iso) loop mounted)
Last edited by someoneG on Sun May 20, 2012 6:36 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Sun May 20, 2012 5:15 pm Post subject: |
|
|
someoneG,
I would cheat. Nothing from the boot media goes into the Gentoo install, the boot media be it a liveCD of some sort, another distro, provivides only a few tools to accomplish the install.
If you use the Gentoo minimal CD for your install party, how will you provide access to the handbook so that the installs can be accomplished?
For Gentoo, you want a menu option that allows you to choose any liveCD that will provide a root shell.
For online browsing the handbook a GUI is useful too.
System Rescue CD would be a good choice for a Gentoo install CD if you didn't want to use some of the others you already have. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
someoneG n00b
Joined: 26 Nov 2011 Posts: 13
|
Posted: Sun May 20, 2012 5:53 pm Post subject: |
|
|
Well, thats an ... interesting solution^^
Most likely i will do that one.
But i would like to know, if it is possible to pxe/nfs boot the minimal cds anyway. Seems there is general nfsroot support, but something on the way makes it fail for me. |
|
Back to top |
|
|
someoneG n00b
Joined: 26 Nov 2011 Posts: 13
|
Posted: Sun May 20, 2012 6:04 pm Post subject: |
|
|
I found the problem...
It was that i ommited no_root_squash in the exports file, as I didnt think that it would have any meaning as i am not writing to nfs ever...
tftp is serving /dist and this is my exports file.
Code: | # /etc/exports: NFS file systems being exported. See exports(5).
/dist *(crossmnt,insecure,async,no_subtree_check,ro,no_root_squash) |
|
|
Back to top |
|
|
|
|
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
|
|