- 論壇徽章:
- 0
|
本帖最后由 changsiheng 于 2013-09-10 00:03 編輯
大概的啟動流程:
客戶端獲取dhcp信息后,指向ftp服務(wù)器的pxelinux.0文件,引導(dǎo)文件指向default去調(diào)用系統(tǒng)的內(nèi)核startrom.n12(W2K3.0),內(nèi)核文件在指向setupldr.exe(W2K3L),W2K3L會去提取ntdetect.com來檢測硬件,wi2k3.sif來調(diào)用整個的安裝過程,類似于kicstart的模式。
###################################
最后還有個驅(qū)動安裝,但是我連界面都沒有讀取到,所以我就沒有接著往下做,希望大神們多多幫忙,不管是用samba還是http的一樣,希望有人能夠指點一下 {:2_167:}
###########################################一、安裝需要的服務(wù)(這里都使用Yum安裝)
yum install -y dnsmasq tftp-* httpd ris-linux
二、配置
1、配置dnsmasq
interface=eth0
dhcp-range=192.168.1.1,192.168.1.100
dhcp-option=3,192.168.1.1
dhcp-option=6,192.168.1.1
dhcp-boot=pxelinux.0,boothost,192.168.1.150
enable-tftp
tftp-root=/tftpboot
2、tftp配置
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -vv -m /tftpboot/rules -vv
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
編輯rules規(guī)則
vim /tftpboot/rules
ri ^[a-z]: # Remove “drive letters”
rg \\ / # Convert backslashes to slashes
rg \# @ # Convert hash marks to @ signs
rg /../ /..no../ # Convert /../ to /..no../
rg A a
rg B b
rg C c
rg D d
rg E e
rg F f
rg G g
rg H h
rg I i
rg J j
rg K k
rg L l
rg M m
rg N n
rg O o
rg P p
rg Q q
rg R r
rg S s
rg T t
rg U u
rg V v
rg W w
rg X x
rg Y y
rg Z z
r ^/(.*) \1
3、http配置
yum install -y httpd
vim /etc/httpd/conf/httpd.conf
<Directory "/tftpboot">
DocumentRoot "/tftpboot/"
#######################################三、復(fù)制需要的內(nèi)核文件還有其相關(guān)文件
mount /dev/cdrom /media
cd /media
cp -a * /tftpboot
cabextract -d /tftpboot/ /tftpboot/win2k3/i386/startom.n1_
sed -i -e 's/NTLDR/W2K3L/gi' /tftpboot/startrom.n12
mv /tftpboot/startrom.n12 /tftpboot/w2k3.0
cabextract -d /tftpboot/ /tftpboot/win2k3/i386/setupldr.ex_
sed -i -e 's/winnt\.sif/wi2k3\.sif/gi' /tftpboot/setupldr.exe
sed -i -e 's/ntdetect\.com.ntdetect\.2k3/gi' /tftpboot/setupldr.exe
mv /tftpboot/setupldr.exe /tftp/W2K3L
cp /tftpboot/win2k3/i386/ntdetect.com /tftpboot/ntdetect.2k3
###########################四、引導(dǎo)文件
wi2k3.sif
[data]
floppyless = "1"
msdosinitiated = "1"
; Needed for second stage
OriSrc = "\\192.168.1.150\win2k3\i386"
OriTyp = "4"
LocalSourceOnCD = 1
DisableAdminAccountOnDomainJoin = 1
[SetupData]
OsLoadOptions = "/fastdetect"
; Needed for first stage
SetupSourceDevice = "\Device\LanmanRedirector\192.168.1.150\win2k3"
[UserData]
ComputerName = *
; if needed
roductID=
#########################default文件
default menu
lable win2003
kernel w2k3.0
查看日志 到了wi2k3.sif這里就不走了,然后報錯
clipboard___Windows2003.png (41.52 KB, 下載次數(shù): 29)
下載附件
2013-09-09 23:56 上傳
clipboard____windows2003_1.png (4.44 KB, 下載次數(shù): 33)
下載附件
2013-09-09 23:56 上傳
|
|