参考文章:http://www./bbs/showthread.php?t=178411 1,tftp部分: 下载http://download./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部分 我已经装好了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; } 当然这里要修改地址信息,和MAC地址信息 3,用我机器上的ubuntu5.10中netboot下面的i386下面的内容拷贝到/tftpboot下面,里面有网络启动所需要的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,网络启动,F12,然后居然出来了 boot: 回车 Loading linux 。。。。。。 Loading initrd.gz.............. 然后待会还是出现Kernel Panic....,说要附加一个 root= 选项,不能mount 根文件系统 艾,这是刚才被我删掉的了,只好跟着添上,现在是 append vga=normal initrd=initrd.gz ramdisk_size=16432 root=/dev/rd/0 rw -- 这回可以了,就象我记得的以前装这个Ubutu时一样,启动Frame Buffer,在问我问题了,哈哈 然后我设置了代理什么的,还设置了ubutu的镜像站点,然后就开始自己安装了,我顶它个肺啊 |
|