免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 693 | 回复: 0
打印 上一主题 下一主题

Help:about boot from PXE [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-23 20:48 |只看该作者 |倒序浏览
hi all,
im trying to setup a diskless environnement with Fedora.
I use etherboot (as a bootable CDROM) to load linux kernel via PXE.
I have a dhcp, nfs and a tftp server working properly.
I have rebuild a 2.6.9-1.667_FC3 fedora kernel
I have rebuild a kernel (as an rpm, or via make bzImage), with the
NFSROOT option, to allow / mounting via NFS
pxelinux.0 boot normaly, load the kernel and the initrd, but when the
kernel try to moun the / partition, i obtain a kernel panic message:


VFS: Cannont open root device "nfs" or unknow-block(0,255)
Please append a correct "root=" boot option
Kernel Panic - not syncing : VFS: Unable to mount root fs on
unknow-block(0,255)


After that, i have tried many other options in the linux kernel (using
devfs instead udev, yes i know it's obsolete ), and some other tips i
found but no one worked. Note that on the NFS Server i don't see any
packet using the NFS protocol.
Is there some special configuration with Fedora kernels and nfsroot option ?


Thanks for your suggest


¤ Here is my pxelinux.cfg/default file :
kernel vmlinuz
APPEND root=/dev/ram0 nfsroot=192.168.1.1:/tftpboot/192.168.1.55/root vga=normal
APPEND initrd=initrd.img devfs=nomount ramdisk_size=10000

¤ Here is the main kernel option needed (if i don't miss one!) and that
i have in my kernel:
grep -i "IP_PNP\|NFS\|RAMFS"
/DOC/PXE/root/boot/config-2.6.10-1.770_FC3nscheibl.20050525
CONFIG_INITRAMFS_SOURCE=""
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
CONFIG_RAMFS=y
CONFIG_CRAMFS=m
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_ROOT_NFS=y
CONFIG_NCPFS_NFS_NS=y


¤ Here is the config of the diskless client in my dhcp server
(/etc/dhcpd.conf):

host myclient
{
          hardware ethernet 00:14:5E:1E:00:09;
          fixed-address 192.168.1.55;
          filename "/tftpboot/pxelinux.0";
          option root-path "192.168.1.1:/tftpboot/192.168.1.55";
}


¤ And here is my nfsd config (/etc/exports):
/tftpboot/192.168.1.55 192.168.1.55(rw)

192.168.1.55 in tftpboot is a directory built manually.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP