首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

OpenPOWER PXE无盘工作站环境搭建(1)

OpenPOWER PXE无盘工作站环境搭建(1)

无盘工作站是X86服务器世界的常规需求之一,在OpenPOWER上实现此需求和X86并没有本质差异,做为国内第一家OpenPOWER服务器生产厂商,我们在RedPOWER服务器上面亦提供此服务,以下为搭建过程,希望对各位有帮助!

先上一张整体流程图。



第一部分:
搭建NFS,DHCP,TFTP服务
(用X86搭建服务器也可以)
,我是在X86_centos7.2上测试通过的。
注:
搭建服务器时,先把selinuxiptables关闭,比如执行 setenforce 0 iptable -F

一、配置NFS
NFS 安装:
yum install nfs-utils portmap
systemctl restart nfs-server
systemctl enable nfs-server

systemctl status nfs-server

注意:千万不要手工启用rpcbind服务,换言之,不要执行systemctl restart rpcbind
二、服务器dhcp安装: yum install *dhcp*

(192.168.10.229x86服务器的IP
[root@localhost tftpboot]# cat /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.200;
option domain-name-servers 8.8.8.8;
option routers 192.168.10.229;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.10.229;
filename "pxelinux.0";
}
启动DHCP服务:
systemctl restart dhcpd
systemctl enable dhcpd
systemctl status dhcpd
三、TFTP服务器搭建: TFTP 服务是通过xinetd 工具管理的
1) yum install tftp-server xinetd
2) mkdir /tftpboot/   //创建TFTP服务共享的目录
修改如下:
[root@localhost tftpboot]# vim /etc/xinetd.d/tftp

# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type
= dgram
protocol
= udp
wait
= yes
user
= root
server
= /usr/sbin/in.tftpd
server_args
= -s /tftpboot -------------修改目录为/tftpboot
disable
= no ----------------------------要修改为no
per_source
= 11
cps
= 100 2
flags
= IPv4
}
重启TFTP服务
systemctl restart xinetd.service

systemctl enable xinetd
systemctl status xinetd
至此,所有服务都已完成。最后检查下DHCPTFTPNFS3个服务是否都已启动,是否都已设置成开机自启
systemctl status dhcpd
systemctl status xinetd
systemctl status nfs
返回列表