Chinaunix首页 | 论坛 | 博客
  • 博客访问: 178325
  • 博文数量: 59
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-06-29 10:38
个人简介

我以为我们可以一起走到最后,呵呵。。。 结果才走了两步,你说你要打的

文章分类
文章存档

2015年(59)

我的朋友

分类: 系统运维

2015-08-01 10:10:04

实验环境rhel6.4,这时之前搭建后自己整理的笔记,由于这个服务搭建比较简单,在这里就不再去另行截图给大家
整个服务的搭建过程就是这样。

[root@hy ~]#yum whatprovides */pxelinux.0
[root@hy ~]#yum install tftp-server syslinux dhcp  -y
[root@hy ~]#vim /etc/dhcp/dhcpd.conf

点击(此处)折叠或打开

  1. # option definitions common to all supported networks...
  2. option domain-name "example.com";
  3. option domain-name-servers 192.168.0.210;
  4. default-lease-time 600;
  5. max-lease-time 7200;
  6. subnet 192.168.0.0 netmask 255.255.255.0 {
  7. range 192.168.0.100 192.168.0.200;
  8. option routers 192.168.0.210;
  9. }
  10. next-server 192.168.0.210;
  11. filename "pxelinux.0";
[root@hy ~]#/etc/init.d/dhcpd restart

[root@hy ~]#vim /etc/xinetd.d/tftp

点击(此处)折叠或打开

  1. disable = no
[root@hy ~]#cd /var/lib/tftpboot
[root@hy tftpboot]#lftp 192.168.0.210:/pub/rhel6.4/isolinux> mget *
[root@hy tftpboot]#cp /usr/share/syslinux/pxelinux.0 .
[root@hy tftpboot]#mkdir pxelinux.cfg
[root@hy tftpboot]#cp isolinux.cfg pxelinux.cfg/
[root@hy tftpboot]#cd pxelinux.cfg
[root@hy pxelinux.cfg]#mv isolinux.cfg default
[root@hy pxelinux.cfg]#vim default

点击(此处)折叠或打开

  1. label rhel6.4
  2. menu label ^rhel6.4
  3. menu default
  4. kernel vmlinuz
  5. append initrd=initrd.img ks= noipv6
[root@hy pxelinux.cfg]#/etc/init.d/xinetd restart
[root@hy pxelinux.cfg]#/etc/init.d/dhcpd  restart
[root@hy pxelinux.cfg]#/etc/init.d/vfstpd start

接下来就可以通过PXE进行安装了,注意在按装时关闭火墙
我们在利用虚拟机做测试的时候选择从网络安装,就会弹出我们的安装界面。
祝你测试成功。
阅读(1352) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~