IP:10.104.0.101
[root@localhost network-scripts]# cat ifcfg-em1
[root@localhost network-scripts]# iptables -F
[root@localhost network-scripts]# iptables -X
[root@localhost network-scripts]# service iptables stop
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:清除防火墙规则: [确定]
iptables:正在卸载模块: [确定]
[root@localhost network-scripts]# service iptables save
[root@localhost network-scripts]# vim /etc/sysconfig/selinux
[root@localhost network-scripts]#setenforce 0
setenforce: SELinux is disabled
[root@localhost network-scripts]# mkdir /media/cdrom
[root@localhost network-scripts]# mount /dev/cdrom /media/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only read-only
[root@localhost network-scripts]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@localhost yum.repos.d]# vim CentOS-Media.repo
[root@localhost yum.repos.d]# yum -y install ftp tftp-server syslinux vsftpd xinetd dhcp
[root@localhost yum.repos.d]# mkdir /var/ftp/rhel6
[root@localhost yum.repos.d]# cp -rf /media/cdrom/* /var/ftp/rhel6/
[root@localhost yum.repos.d]# vim /etc/xinetd.d/tftp
[root@localhost yum.repos.d]# cd /media/cdrom/images/pxeboot/
[root@localhost pxeboot]# cp initrd.img vmlinuz /var/lib/tftpboot/
[root@localhost pxeboot]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@localhost pxeboot]# mkdir /var/lib/tftpboot/pxelinux.cfg
[root@localhost pxeboot]# vim /var/lib/tftpboot/pxelinux.cfg/default
default auto prompt timeout label auto kernel vmlinuz append initrd=initrd.img ks=ftp://10.104.0.101/rhel6/ks.cfg devfs=nomount ramdisk_size=8192 ksdevice=em1 biosname=0 label linux text kernel vmlinuz append text initrd=initrd.img devfs=nomount ramdisk_size= label linux rescue kernel vmlinuz append rescue initrd=initrd.img devfs=nomount ramdisk_size=
[root@zuo pxeboot]# vim /etc/dhcp/dhcpd.conf
subnet 10.104.0.0 netmask 255.255.255.0 { default-lease-time ; max-lease-time ; range 10.104.0.100 10.104.0.130; next-server 10.104.0.101; filename "pxelinux.0"; }
[root@localhost pxeboot]# dhcpd
[root@localhost pxeboot]# service vsftpd restart
[root@localhost pxeboot]# chkconfig vsftpd on
[root@localhost pxeboot]# service xinetd restart
[root@localhost pxeboot]# chkconfig xinetd on
[root@localhost pxeboot]# service dhcpd restart
[root@localhost pxeboot]# chkconfig dhcpd on
[root@localhost pxeboot]# yum -y install system-config-kickstart
[root@localhost pxeboot]# system-config-kickstart
[root@localhost rhel6]# vim ks.cfg
install
# Use network installation
url --url="ftp://10.104.0.101/rhel6"
# Root password
rootpw --iscrypted $1$u0Tl6e4j$o3QI9JgfVdQU2o3pqDWlo/
# System authorization information
auth --useshadow --passalgo=md5
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
reboot
# System timezone
timezone Asia/Shanghai
# Network information
network --bootproto=dhcp --device=em1 --onboot=on
# System bootloader configuration
bootloader --location=mbr --append="biosdevname=0"
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part /boot --fstype="ext4" --size=200
part swap --fstype="swap" --size=65536
part / --fstype="ext4" --size=51250
part /opt --fstype="ext4" --grow --size=1
%packages
@additional-devel
@backup-client
@base
@basic-desktop
@compat-libraries
@console-internet
@debugging
@desktop-debugging
@desktop-platform
@desktop-platform-devel
@development
@dial-up
@directory-client
@eclipse
@emacs
@fonts
@ftp-server
@general-desktop
@graphical-admin-tools
@graphics
@ha
@ha-management
@hardware-monitoring
@identity-management-server
@infiniband
@input-methods
@internet-applications
@internet-browser
@java-platform
@kde-desktop
@large-systems
@legacy-unix
@legacy-x
@mainframe-access
@mysql
@mysql-client
@network-file-system-client
@network-server
@network-tools
@nfs-file-server
@office-suite
@performance
@perl-runtime
@php
@postgresql
@postgresql-client
@print-client
@remote-desktop-clients
@resilient-storage
@ruby-runtime
@scalable-file-systems
@scientific
@security-tools
@server-platform
@server-platform-devel
@smart-card
@storage-client-fcoe
@storage-client-iscsi
@storage-client-multipath
@storage-server
@system-admin-tools
@system-management
@system-management-messaging-client
@system-management-snmp
@system-management-wbem
@technical-writing
@tex
@turbogears
@web-server
@web-servlet
@x11
ElectricFence
PyQt4-devel
SDL-devel
ant
babel
bzr
chrpath
cmake
compat-gcc-34
compat-gcc-34-c++
compat-gcc-34-g77
compat-openmpi
compat-openmpi-psm
crypto-utils
cups-devel
cvs-inetd
dejagnu
desktop-file-utils
e2fsprogs-devel
eclipse-mylyn-cdt
eclipse-mylyn-pde
eclipse-mylyn-trac
eclipse-mylyn-webtasks
eclipse-mylyn-wikitext
eclipse-subclipse-graph
expat-devel
expect
expect
freeglut-devel
fuse-devel
gcc-gnat
gcc-java
gcc-objc
gcc-objc++
glade3
gmp-devel
gnome-common
gnome-devel-docs
gnome-python2-desktop
gnutls-devel
gstreamer-plugins-base-devel
gtk2-devel-docs
hmaccalc
httpd-devel
hunspell-devel
imake
iptables-devel
java-1.8.0-openjdk-devel
jpackage-utils
junit
kdebase-devel
kdebase-workspace-devel
kdegraphics-devel
kdelibs-apidocs
kdelibs-devel
kdemultimedia-devel
kdenetwork-devel
kdepim-devel
kdepimlibs-devel
kdesdk
kdesdk-devel
kdewebdev
ksc
libXau-devel
libXaw-devel
libXinerama-devel
libXmu-devel
libXpm-devel
libXrandr-devel
libaio-devel
libblkid-devel
libbonobo-devel
libcap-devel
libdrm-devel
libgcrypt-devel
libglade2-devel
libgnomeui-devel
libgudev1-devel
libhugetlbfs-devel
libibverbs-devel
libnl-devel
libnl3-devel
libstdc++-docs
libtiff-devel
libtopology-devel
libudev-devel
libusb-devel
libuuid-devel
libxslt-devel
mercurial
mod_dav_svn
mod_revocator
mpfr-devel
nasm
net-snmp-devel
numactl-devel
openmotif-devel
papi-devel
pcre-devel
perl-Test-Pod
perl-Test-Pod-Coverage
perltidy
popt-devel
python-docs
qt-doc
rpmdevtools
rpmlint
sane-backends-devel
snappy-devel
startup-notification-devel
systemtap-sdt-devel
systemtap-server
tcl-devel
tcp_wrappers-devel
tk-devel
unique-devel
unixODBC-devel
xorg-x11-proto-devel
xz-devel
%end
Dell-R730 【Pxe+dhcp+ftp+tftp+Kickstart+CentOs6.6】的更多相关文章
-
Linux系统网络安装——基于pxe+dhcp+nfs+tftp+kickstart
原文发表于:2010-09-05 转载至cu于:2012-07-21 一.原理简介 PXE(preboot execute environment)工作于Client/Server的网络模式,支持工作 ...
-
linux pxe+dhcp+nfs+tftp
yum -y install vsftpd dhcp xinetd tftp-server syslinux(安装"syslinux"才有pxelinux.0) tftp 服务(v ...
-
使用PXE+DHCP+TFTP+kickstart搭建无人执守系统安装服务器
原理和概念: 1. 什么是PXE 严格来说,PXE 并不是一种安装方式,而是一种引导的方式.进行 PXE 安装的必要条件是要安装的计算机中包含一个 PXE 支持的网卡(NIC),即网卡中必须要有 ...
-
dhcp、tftp及pxe简介
DHCP: 全称:Dynamic Host Configuration Protocol 动态主机配置协议 DHCP配置内容: IP/Netmask Gateway DNS Server bootp ...
-
PXE+DHCP+TFTP+Cobbler 无人值守安装centos 7
Cobbler(补鞋匠)是通过将DHCP.TFTP.DNS.HTTP等服务进行集成,创建一个*管理节点,其可以实现的功能有配置服务,创建存储库,解压缩操作系统媒介,代理或集成一个配置管理系统,控制电 ...
-
Linux之FTP/TFTP(vsftp、vsftpd) HTTP(httpd、apache) DHCP(dhcpd)
FTP/TFTP(vsftp.vsftpd): FTP是File Transfer Protocol(文件传输协议)而中文简称为"文传协议".用于Internet上的控制文件的双向 ...
-
Dell R730服务器 Raid0 Raid5配置
Dell R730服务器,有7块5t硬盘,默认做的RAID5.我们的目的是取其中6块硬盘做RAID5,留一块硬盘做热备. 一块SSD系统盘. 在这里,我具体解释一下 ①6块硬盘做成RAID5 ②6块硬 ...
-
Dell R730服务器 Raid5配置
Dell R730服务器,有7块5t硬盘,默认做的RAID5.我们的目的是取其中6块硬盘做RAID5,留一块硬盘做热备. 一块SSD系统盘. 在这里,我具体解释一下 ①6块硬盘做成RAID5 ②6块硬 ...
-
dell R730 安装windwos 2008 R2在windows loading files...完成后屏幕无信号(iDrac绿屏)
dell R730 安装windwos 2008 R2在windows loading files...完成后,Starting Windows时屏幕无信号(iDrac绿屏) 解决方法: F2 进行 ...
随机推荐
-
LwIP移植和使用
LwIP移植和使用 本手册基于lwip-1.4.x编写,本人没有移植过1.4.0之前的版本,更早的版本或许有差别.如果看官发现问题欢迎联系<QQ: 937431539 email: 93743 ...
-
JAVA之Socket编程
网上对Socket的诠释很多,也很全,在这里我就不多说了,总之,现在的网络处处都在使用Socket.本帖是一个Socket的例子,用来模拟一个简单的登录系统,只有核心代码,访问数据库.输入神马的统统没 ...
-
NMON中的各项参数指标
一.NMON中的各项参数指标: SYS_SUMM:显示当前服务器的总体性能情况 Total System I/OStatistics:Avg tps during an interval:显示采集间隔 ...
-
NDK(19)简单示例:ndk调用java基本方法、数组;使用stl、访问设备
一.ndk调用java类示例 1,调用基本方法 /* * Class: com_example_ndksample_MainActivity * Method: ndkFindJavaClass * ...
-
Mac下安装Twig模版引擎的方法
本人收集了几种方法: 安装前: twig需要依赖PHP 5.2.7 才能运行. 1 通过composer安装(2种) 方法一: 首先确保你已经安装了composer,如果没有安装,可以参考https: ...
-
Android Google购买PHP服务器端验证(订阅购买和一次性购买)
一.订阅购买验证 android端采用google service account进行校验 1.打开https://cloud.google.com/console创建一个project: 2.打开p ...
-
三、spark入门:文本中发现5个最常用的word,排除常用停用词
package com.yl.wordcount import java.io.File import org.apache.spark.{SparkConf, SparkContext} impor ...
-
前端自动化测试漫长路之——Selenium初探
引言 最近想解决前端开发或测试中的两个问题:一是界面UI的布局适配,能否在测试的过程中,通过命令操作真机打开相应页面然后截屏,通过对图片识别分类,发现有问题的图片,然后及时修复:二是页面性能分析,很多 ...
-
关于React中状态保存的研究
在使用react搭配react-router做应用的时候,你可能遇到这样的问题,当我从第一个页面过渡到第二个页面,然后返回之后,发现之前的页面的状态全部不见了,即回到了初始的状态. 这点在页面存在多个 ...
-
Jzzhu and Apples CodeForces - 449C (构造,数学)
大意: 求从[1,n]范围选择尽量多的数对, 使得每对数的gcd>1 考虑所有除2以外且不超过n/2的素数p, 若p倍数可以选择的有偶数个, 直接全部划分即可 有奇数个的话, 余下一个2*p不划 ...