亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 新人求助貼,LINUX,PXE安裝Windows2003 [打印本頁(yè)]

作者: changsiheng    時(shí)間: 2013-09-10 00:03
標(biāo)題: 新人求助貼,LINUX,PXE安裝Windows2003
本帖最后由 changsiheng 于 2013-09-10 00:03 編輯

大概的啟動(dòng)流程:
客戶端獲取dhcp信息后,指向ftp服務(wù)器的pxelinux.0文件,引導(dǎo)文件指向default去調(diào)用系統(tǒng)的內(nèi)核startrom.n12(W2K3.0),內(nèi)核文件在指向setupldr.exe(W2K3L),W2K3L會(huì)去提取ntdetect.com來(lái)檢測(cè)硬件,wi2k3.sif來(lái)調(diào)用整個(gè)的安裝過(guò)程,類似于kicstart的模式。


###################################
最后還有個(gè)驅(qū)動(dòng)安裝,但是我連界面都沒有讀取到,所以我就沒有接著往下做,希望大神們多多幫忙,不管是用samba還是http的一樣,希望有人能夠指點(diǎn)一下 {: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這里就不走了,然后報(bào)錯(cuò)


作者: changsiheng    時(shí)間: 2013-09-14 00:06
真心求助啊。。困擾很久了。。。。




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2