Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Cannot open root device" when booting from PXE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
elomaniak
n00b
n00b


Joined: 27 Jan 2013
Posts: 47

PostPosted: Tue Apr 02, 2013 1:41 pm    Post subject: "Cannot open root device" when booting from PXE Reply with quote

Hi Folks i finally managed to get the kernel loading for my PXE Boot experiment/research

I am now getting a kernel panic while booting

here's the exact message
Code:
 VFS: Cannot open root device "nfs" or unknown block (0,255)
please append a correct "root=" boot option; hera are the available options
Kernel panic - not syncing VFS: unable to mount root fs on unknown block (0,255)


heres my /diskless/pxelinux.cfg/default
Code:

DEFAULT    Ubuntu test

LABEL      Ubuntu test
      kernel /client1/ubuntu/casper/vmlinuz
      append root=/dev/nfs nfsroot=192.168.0.1:/diskless/client1/ubuntu ip=dhcp
      initrd=/diskless/client1/ubuntu/initrd.lz quiet splash --


fstab
Code:

# <fs>               <mountpoint>   <type>      <opts>   <dump/pass>
/dev/sda1            /      reiserfs   noatime0 1
#/dev/SWAP            none      swap      sw   0 0
/dev/sr0            /mnt/cdrom   auto      noauto,ro   0 0
/diskless/ubuntu.iso         /diskless/client1/ubuntu   auto   defaults,loop,user   0 0


/etc/exports
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/diskless/client1/ubuntu/ *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)


for me it seems to be ok, I am trying to figure it our for about two hours without any luck

maybe someone can suggest something that might help
Thanks in advance
Back to top
View user's profile Send private message
honp
Guru
Guru


Joined: 25 Sep 2006
Posts: 355
Location: Good old Prague, Czech rep.

PostPosted: Wed Apr 03, 2013 9:07 am    Post subject: Reply with quote

Can your kernel do this?
- NFS filesystem support (CONFIG_NFS_FS).
- Root file system on NFS (CONFIG_ROOT_NFS).
Back to top
View user's profile Send private message
elomaniak
n00b
n00b


Joined: 27 Jan 2013
Posts: 47

PostPosted: Thu Apr 04, 2013 8:25 am    Post subject: Reply with quote

CONFIG_NFS_FS=m

cant find CONFIG_ROOT_NFS in my .config

EDIT: found it, dependencies showed i had to build in CONFIG_NFS_FS=y
will check and report later
Back to top
View user's profile Send private message
honp
Guru
Guru


Joined: 25 Sep 2006
Posts: 355
Location: Good old Prague, Czech rep.

PostPosted: Thu Apr 04, 2013 10:04 am    Post subject: Reply with quote

Yes, modul is not enough, or you must use initrd somehow...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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