You are not logged in.

#1 2012-09-07 03:13:06

Ram-Z
Member
Registered: 2012-09-04
Posts: 18

[SOLVED] Diskless NFS boot

I've been struggling to get my diskless pc to boot using this guide.

It seems the kernel is loaded properly from tftp but the root filesystem fails to mount. This is what I get:
http://dl.dropbox.com/u/29192523/Screen … 044316.jpg

The server is Arch-based, it didn't work with an Ubuntu server either though.

Any help would be appreciated.

Here are some configs:
/etc/exports

/srv/nfs                192.168.1.0/24(rw,fsid=0,no_subtree_check)
/srv/nfs/disklessarch   192.168.1.0/24(rw,no_root_squash,no_subtree_check,nohide,insecure,sync)

/srv/nfs/disklessarch/boot/pxelinux.cfg/default

default linux

label linux
kernel vmlinuz-linux
append initrd=initramfs-linux.img rootfstype=nfs nfsroot="192.168.1.200:/disklessarch,rsize=16384,wsize=16384" ip=192.168.1.201:192.168.1.200:::gallifrey:eth0:none

This was also tried with root=/dev/nfs and ip=:::::dhcp

/srv/nfs/disklessarch/etc/mkinitcpio.conf

MODULES="nfs"
HOOKS="base udev net autodetect pata scsi sata filesystems usbinput fsck"

Last edited by Ram-Z (2012-09-07 17:15:04)

Offline

#2 2012-09-07 08:36:24

kocsv
Member
Registered: 2011-10-10
Posts: 22

Re: [SOLVED] Diskless NFS boot

Permission denied: read the logs of the nfs server

Offline

#3 2012-09-07 17:00:45

Ram-Z
Member
Registered: 2012-09-04
Posts: 18

Re: [SOLVED] Diskless NFS boot

Ah, I forgot to post those:

Sep  7 04:18:02 tardis rpc.mountd[869]: refused mount request from 192.168.1.201 for /disklessarch (/): not exported
Sep  7 04:20:43 tardis rpc.mountd[869]: /srv/nfs/Skaro and /srv/nfs/disklessarch have same filehandle for 192.168.1.0/24, using first

The disklessarch chroot is in /mnt/Skaro, /mnt/Skaro is mount --bind to /srv/nfs/Skaro and /mnt/Skaro/disklessarch is mount --bind to /srv/nfs/disklessarch

I can mount 192.168.1.200:/disklessarch fine from another system

Export for Skaro:

/srv/nfs/Skaro          192.168.1.0/24(rw,no_subtree_check,nohide)

Offline

#4 2012-09-07 17:14:05

Ram-Z
Member
Registered: 2012-09-04
Posts: 18

Re: [SOLVED] Diskless NFS boot

After some more fiddling I got it working with:

default linux

label linux
kernel vmlinuz-linux
append initrd=initramfs-linux.img rootfstype=nfs nfsroot=192.168.1.200:/srv/nfs/disklessarch ip=192.168.1.201:192.168.1.200:::gallifrey:eth0:none
/srv/nfs                192.168.1.0/24(rw,fsid=0,no_subtree_check)
/srv/nfs/disklessarch   192.168.1.0/24(rw,fsid=1,no_root_squash,no_subtree_check,nohide,insecure,sync)

I tried this before but with fsid=0 on disklessarch, which just mounted the entire /srv/nfs and the kernel could not find /sbin/init.
It looks like mkinitcpio-nfs-utils still does not support NFSv4.

Thanks for your help.

Offline

Board footer

Powered by FluxBB