i’m experiencing problems with booting over NFS
i tried windows server 2012 R2 and ubuntu 14.04 (or was it 14.03?)
both shares get the filesystem (usr, lib, tmp, home,…) installed with rwxr_x_r_x root root. but when it is booting the second time i get different errors.
ubuntu:
i tried with august and july version of osmc
kernel panic: not syncing: vfs: unable to mount root fs on unknown-block(2,0)
i tried forcing nfs3 on the server and in cmdline.txt - the same
windows:
i tried the august images of osmc
Failed to start Login Service
Stopping Login Service …
Stopped Login Service…
it also has problems with other services like avahiDNS something…
after that i got an osmc logo and a “PLAY” logo on black background on the upper left of the screen and once i got a sad smiley as well
i also tried 777ing the whole filesystem on the share
what do? thanks
You won’t be able to NFS boot from a Windows server as the necessary file system permissions are not supported by Windows, so you can give up on that one, however it should work on Ubuntu.
Firstly make sure that you actually have NFS 3 enabled on the server and also paste a copy of your exports file from the server for us to see as you need the right NFS export options for a NFS boot.
Also show the output of ‘ls -al’ for the directory that your export is sharing - generally it should be chmod 0777 or the client won’t have read/write access to it.
interesting and very good, that windows server nfs won’t work (so i can forget this one and i also kind of know why it doesnt work)
the last export line i used (in ubuntu of course) was:
/mnt/osmc 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check,insecure)
right now i only have the directory that was created, when i was using windows as nfs server.
My functioning export from my testing root mount used async rather than sync. There was also an issue at one point that caused problems when Gb network was set for high mtu/jumbo frames. Is that your exact export line? Because yours also doesn’t include the netmask designation (/24).
well, i think for using a nfs share as root i’d rather user “sync”?! i don’t think this would make a difference in being able to boot or not, but i can try it (just installing CentOS right now)
also i chose to only share it with the exact ip of the raspberry pi… why? i don’t know, but it works (the installer is copying files to the share!)
i dont think i need the /24 netmask or whatever in this case
edit:
it’s working with CentOS 7… same Exports line, 777 to /osmc - don’t know why, but i’m happy… thank you