- 论坛徽章:
- 0
|
小菜我在配一个linux无盘工作站,开始按照网络上到说明使用mknbi-linux命令处理内核,结果一开始加载内核就花屏了,后来在网上查到要用 initrd.img来安装,使用任意内核(自己编译或系统自带)+系统盘的initrd.img可以启动,但是启动后就进入了安装界面;如果换一个 initrd.img文件,load 完内核之后就会报找不到initrd.img文件了(我再三确认过,initrd.img文件名没有写错)。
如果干脆不用initrd.img或者用系统安装盘里面某些initrd.img则无盘加载一半过后报错:Kernel panic - not syncing:No init found Try passing init = option to kernel
我猜可能算initrd.img的设置问题,可是小菜我不知道怎么配置,请各位大侠帮帮忙,万分感激!!!!
pxe配置文件入下
default linux
label linux
kernel vmlinuz
#append initrd=initrd.img devfs=nomount
append initrd=initrd.img ip=dhcp root=/dev/nfsroot nfsroot=192.168.0.123:/remote/blade01 vga=normal
我的export tftp dhcp配置文件入下:
/remote/blade01 *(rw,async,no_root_squash)
/remote/blade02 *(rw,async,no_root_squash)
/usr *(ro,async,no_root_squash)
/sbin *(ro,async,no_root_squash)
/bin *(ro,async,no_root_squash)
/lib *(ro,async,no_root_squash)
/home *(ro,async,no_root_squash)
allow booting;
allow bootp;
host blade01 {
hardware ethernet 00:85:20:05:09:76;
fixed-address 192.168.0.199;
# server-name "192.168.0.123";
# next-server 192.168.0.123;
filename "/pxelinux.0";
# filename "/boot.eb";
}
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
} |
|