文章摘要:CentOS 6.3 無人值守安裝過程 常見問題及解決方法
一、安裝過程kickstartDhcpTftpNfs
1.環境
Vmware Workstation 9.0
CentOS-6.3-i386-bin-DVD
技術交流Q群:298148856
2.安裝
[[email protected] ~]# rpm -qa |grep nfs-utils
nfs-utils-lib-1.1.5-4.el6.i686
nfs-utils-1.2.3-26.el6.i686
[[email protected] ~]#
[[email protected] ~]# rpm -qa |grep dhcp-devel
dhcp-devel-4.1.1-31.0.1.P1.el6.centos.1.i686
[[email protected] ~]#
如沒有進行安裝
yum install dhcp-devel nfs-utils xinetd tftp-server pykickstart syslinux
chkconfig --level 123456 dhcpd on
chkconfig --level 123456 tftp on
chkconfig --level 123456 nfs on
chkconfig --level 123456 xinetd on
chkconfig --level 123456 rpcbind on
mkdir /kickstart /install
[[email protected] home]# vim /etc/dhcp/dhcpd.conf
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
ignore client-updates;
allow booting;
allow bootp;
subnet 192.168.100.0 netmask 255.255.255.0 {
option routers 192.168.100.1;
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 43200;
range 192.168.100.128 192.168.100.140;
filename "/kickstart/ks.cfg";
next-server 192.168.100.1;
}
option space PXE;
class "PXE" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
option vendor-encapsulated-options 01:04:00:00:00:00:ff;
option boot-size 0x1;
filename "pxelinux.0";
option tftp-server-name "192.168.100.128";
}
[[email protected] home]# vim /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
cp /mnt/p_w_picpaths/pxeboot/initrd.img /var/lib/tftpboot
cp /mnt/p_w_picpaths/pxeboot/vmlinuz /var/lib/tftpboot
mkdir /var/lib/tftpboot /pxelinux.cfg
cp /mnt/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default
将default檔案下面内容
label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img
修改成
label linux
kernel vmlinuz
append ksdevice=eth0 load_ramdisk=1 initrd=initrd.img network ks=nfs:192.168.100.128:/kickstart/ks.cfg noipv6
3.自定義root密碼
[[email protected] ~]# perl -e 'print crypt("jngd!!!!!!",q($1$BYSimLw0)),"\n"' $1$BYSimLw0$9zfbFAPUuuXM8K/iLaSec1 [[email protected] ~]# ……………………………… url --url="http://192.168.100.128/centOS6" rootpw --iscrypted $1$BYSimLw0$9zfbFAPUuuXM8K/iLaSec1 auth --useshadow --passalgo=sha512 …………………………………… |
二、常見問題及解決方法
1.出現TFTP PXE-T01: File not found PXE-E3B: TFTP Error –File
在用戶端啟動時出現下面問題

解決方法:
原因為tftp工作目錄在/var/lib/tftp ,配置時按照網上文檔配置到了/tftpboot,是以出現以上錯誤
檢視tftp 工作目錄,下面紅色字型
[[email protected] tftpboot]# cat /etc/xinetd.d/tftp
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
上一頁 1 2 3 下一頁
相關熱詞搜尋:CentOS6.3無人值守
上一篇:第一頁
下一篇:封裝linux系統成iso檔案
轉載于:https://blog.51cto.com/584250550/1215897