參考文章:http://www.linuxsir.org/bbs/showthread.php?t=178411
1,tftp部分:
下載http://download.chinaunix.net/down.php?id=20673&ResourceID=10322&site=1,tftp-hpa-0.42.tar.bz2
tar xvf
./configure --without-tcpwrapper
make && paco -lD "make install"
vi /etc/xinet.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -u nobody -s /tftpboot
disable = no
per_source = 11
cps = 100 2
}
:wq
mkdir /tftpboot
2,DHCP部分
我已經(jīng)裝好了DHCP,并且可以同了的,只要配置就行了
cp /etc/dhcpd.conf /etc/dhcpd.conf.orig
vi /etc/dhcpd.conf 刪除原來的
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
option vendor-class-identifier "PXEClient";
vendor-option-space PXE;
# At least one of the vendor-specific PXE options must be set in
# order for the client boot ROMs to realize that we are a PXE-compliant
# server. We set the MCAST IP address to 0.0.0.0 to tell the boot ROM
# that we can‘t provide multicast TFTP (address 0.0.0.0 means no
# address).
option PXE.mtftp-ip 0.0.0.0;
# This is the name of the file the boot ROMs should download.
filename "pxelinux.0";
# This is the name of the server they should get it from.
next-server 192.168.0.1;
}
ddns-update-style interim;
ignore client-updates;
default-lease-time 1200;
max-lease-time 9200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.254;
option domain-name-servers 192.168.0.1,192.168.0.2;
option domain-name "mydomain.org";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.100;
}
host q10 {
hardware ethernet 00:00:F0:6B:38:5B;
fixed-address 192.168.0.22;
}
當(dāng)然這里要修改地址信息,和MAC地址信息
3,用我機(jī)器上的ubuntu5.10中netboot下面的i386下面的內(nèi)容拷貝到/tftpboot下面,里面有網(wǎng)絡(luò)啟動所需要的pxelinux.0,linux,initrd
修改/tftpboot/pxelinux.cfg/default,如下模樣
DEFAULT install
PROMPT 1
LABEL install
KERNEL vmlinuz
APPEND initrd=initrd.img devfs=nomount ramdisk_size=16384
4,啟動Vmware,網(wǎng)絡(luò)啟動,F(xiàn)12,然后居然出來了
boot: 回車
Loading linux 。。。。。。
Loading initrd.gz..............
然后待會還是出現(xiàn)Kernel Panic....,說要附加一個 root= 選項(xiàng),不能mount 根文件系統(tǒng)
艾,這是剛才被我刪掉的了,只好跟著添上,現(xiàn)在是
append vga=normal initrd=initrd.gz ramdisk_size=16432 root=/dev/rd/0 rw --
這回可以了,就象我記得的以前裝這個Ubutu時一樣,啟動Frame Buffer,在問我問題了,哈哈
然后我設(shè)置了代理什么的,還設(shè)置了ubutu的鏡像站點(diǎn),然后就開始自己安裝了,我頂它個肺啊
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點(diǎn)擊舉報。