关于pxe安装linux无法自动执行的问题
(2012-04-12 23:49:26)
标签:
linux
安装
杂谈
关于pxe安装linux无法自动执行的问题服务器端的dhcp, tftp
nfs都配置好了,可以远程安装操作系统,但是只能手动装,无法实现全自动。总是在pxe获得ip地址后停在linux的第一个安装界面让我按回车。
而且总是在后面要我选择一块网卡用来远程安装。请教高手们怎么能让这些步骤自动实现安装的操作系统为linux AS3U8
dhcp文件配置如下:
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
allow unknown-clients;
default-lease-time 1200;
max-lease-time 9200;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.41.255;
option routers 172.16.41.6;
option domain-name-servers 202.106.0.20,202.106.196.115;
option domain-name
"mydomain.org";
subnet 172.16.41.0 netmask 255.255.255.0 {
range 172.16.41.129 172.16.41.150;
filename "pxelinux.0";
next-server 172.16.41.22;
我的/tftp/pxelinux.cfg/default 配置如下
default linux
prompt 1
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
kernel vmlinuz
append ks=nfs:172.16.41.22:/iso/ks.cfg initrd=initrd.img
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
append ks initrd=initrd.img
label local
localboot 1
label memtest86
kernel memtest
append -
ks.cfg配置如下
install
nfs --server=172.16.41.22 --dir=/iso
lang en_US.UTF-8
langsupport --default en_US.UTF-8 zh_CN.GB18030 en_US.UTF-8
keyboard us
mouse generic3usb --device input/mice
skipx
network --device eth0 --bootproto static --ip 172.16.41.54
--netmask 255.255.255.0 --gateway 172.16.41.6 --nameserver
202.106.0.20,202.106.196.115 --hostname GRHP32X
network --device eth1 --bootproto dhcp --hostname GRHP32X
rootpw --iscrypted $1$NNJv48pJ$2eh27evjh.U5aUAnL8MAM.
firewall --disabled
authconfig --enableshadow --enablemd5
timezone Asia/Shanghai
bootloader --location=mbr
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all
#part /boot --fstype ext3 --size=100
#part swap --size=4096
#part / --fstype ext3 --size=100 --grow
%packages
@ legacy-software-development
@ admin-tools
@ system-tools
@ chinese-support
@ development-tools
@ server-cfg
@ dialup
@ kernel-development
@ compat-arch-support
kernel
kernel-smp
grub
%post好像有个无人执守安装http://www.51goku.com/
分享:
喜欢
0
赠金笔
加载中,请稍候......
评论加载中,请稍候...
发评论
登录名: 密码: 找回密码 注册记住登录状态
昵 称:
评论并转载此博文
发评论
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。