kickstart+tftp部署redhat系统
2017-12-04 15:49
405 查看
kickstart+tftp部署redhat系统:
kickstart+tftp安装、配置略
:wq
timezone Asia/Shanghai
selinux --disabled
clearpart --drives=sda --all
ignoredisk --only-use=sda
%packagescat /var/www/html/ks/ksrhel66.cfg[/title2]
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
#Firewall configuration
firewall --disabled
#Install OS instead of upgrade
install
#Use network installation
url --url="[url=http://10.0.0.2/ks/rhel66/]http://10.0.0.2/ks/rhel66/"
#Root password
rootpw --iscrypted $1$lU3654aL$oT0PwZrSEbmsCBFyQHJ5M1
#System authorization information
auth --useshadow --passalgo=sha512
#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
#System timezone
timezone Asia/Shanghai
#Network information
network --onboot=on --device=eth0 --bootproto=dhcp
#System bootloader configuration
bootloader --location=mbr
#Partition clearing information
#clearpart --linux
clearpart --drives=sda --all
ignoredisk --only-use=sda
#Disk partitioning information
part / --asprimary --fstype="ext4" --ondisk=sda --size=100000
part swap --fstype="swap" --ondisk=sda --size=10000
%packageshttp://10.0.0.2/ks/centos65/"
#Root password
rootpw --iscrypted $1$lU3654aL$oT0PwZrSEbmsCBFyQHJ5M1
#System authorization information
auth --useshadow --passalgo=sha512
#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
#System timezone
timezone Asia/Shanghai
#Network information
network --onboot=on --device=eth0 --bootproto=dhcp
#System bootloader configuration
bootloader --location=partition
#Partition clearing information
#clearpart --linux
clearpart --drives=sda --all
ignoredisk --only-use=sda
#Disk partitioning information
part / --asprimary --fstype="ext4" --ondisk=sda --size=100000
part swap --fstype="swap" --ondisk=sda --size=10000 --grow
%packages[url=mailto:br/>@base
@base
@basic-desktop
@basic-desktop
@x11
@x11
kickstart+tftp安装、配置略
mkdir /root/isorhel66
mount -t iso9660 -i -o ro,loop rhel-server-6.6-x86_64-dvd.iso /root/isorhel66/
mkdir /var/lib/tftpboot/RHEL66/
rsync -av --progress /root/isorhel66/isolinux/initrd.img /var/lib/tftpboot/RHEL66/
mkdir /var/www/html/ks/RHEL66
rsync -av --progress /root/isorhel66/* /var/www/html/ks/RHEL66/
redhat所需ks.cfg文件需先在1台redhat系统上生成(yum install system-config-kickstart,然后vnc下执行system-config-kickstart命令)vi /var/lib/tftpboot/pxelinux.cfg/default
label 3. Install RHEL 6.6 x86_64kernel RHEL66/vmlinuz append ks=http://10.0.0.2/ks/ksrhel66.cfg initrd=RHEL66/initrd.img
:wq
cp -rv ksrhel66.cfg /var/www/html/ks/
vi /var/www/html/ks/ksrhel66.cfg (url、时区、selinux调整下,把软件选择部分手动加进来)
url --url="http://10.0.0.2/ks/rhel66/"timezone Asia/Shanghai
selinux --disabled
clearpart --drives=sda --all
ignoredisk --only-use=sda
%packagescat /var/www/html/ks/ksrhel66.cfg[/title2]
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
#Firewall configuration
firewall --disabled
#Install OS instead of upgrade
install
#Use network installation
url --url="[url=http://10.0.0.2/ks/rhel66/]http://10.0.0.2/ks/rhel66/"
#Root password
rootpw --iscrypted $1$lU3654aL$oT0PwZrSEbmsCBFyQHJ5M1
#System authorization information
auth --useshadow --passalgo=sha512
#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
#System timezone
timezone Asia/Shanghai
#Network information
network --onboot=on --device=eth0 --bootproto=dhcp
#System bootloader configuration
bootloader --location=mbr
#Partition clearing information
#clearpart --linux
clearpart --drives=sda --all
ignoredisk --only-use=sda
#Disk partitioning information
part / --asprimary --fstype="ext4" --ondisk=sda --size=100000
part swap --fstype="swap" --ondisk=sda --size=10000
%packageshttp://10.0.0.2/ks/centos65/"
#Root password
rootpw --iscrypted $1$lU3654aL$oT0PwZrSEbmsCBFyQHJ5M1
#System authorization information
auth --useshadow --passalgo=sha512
#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
#System timezone
timezone Asia/Shanghai
#Network information
network --onboot=on --device=eth0 --bootproto=dhcp
#System bootloader configuration
bootloader --location=partition
#Partition clearing information
#clearpart --linux
clearpart --drives=sda --all
ignoredisk --only-use=sda
#Disk partitioning information
part / --asprimary --fstype="ext4" --ondisk=sda --size=100000
part swap --fstype="swap" --ondisk=sda --size=10000 --grow
%packages[url=mailto:br/>@base
@base
@basic-desktop
@basic-desktop
@x11
@x11
相关文章推荐
- Redhat 7 配置Kickstart自动化部署多种系统
- Kickstart+tftp在部署系统后运行脚本
- Kickstart+HTTP+DHCP+TFTP全自动批量安装部署Linux系统
- kickstart+centos6.5+DHCP+TFTP+HTTP 实现自动部署系统
- DHCP+TFTP+HTTP+kickstart实现PXE自动化部署系统Centos
- Kickstart+HTTP+DHCP+TFTP全自动批量安装部署Linux系统
- pxe+dhcp+tftp+kickstart 实现系统自动安装
- PXE+kickstart实现批量部署linux系统
- PXE+NFS+TFTP+DHCP+Kickstart 批量自动化部署操作系统
- Cobbler+Kickstart自动化批量系统部署
- 自动安装linux系统(kickstart,pxe,tftp,dhcp,ftp)二
- Kickstart+HTTP+DHCP+TFTP+PXElinux实现RedHat的网络自动安装
- Kickstart +ftp+dhcp+tftp实现Linux系统的无人值守安装
- dhcp+tftp+kickstart自动安装linux服务器系统
- PXE环境下安装系统(DHCP+TFTP+HTTP+kickstart)
- 脚本部署CentOS 6.0的PXE+DHCP+TFTP+kickstart安装环境
- PXE+Kickstart+DHCP+Apache+tftp 批量部署常见错误总结
- Kickstart+PXE+DHCP+TFTP+FTP网络安装CentOS系统
- 【转载】批量部署系统之kickstart
- httpd+dnsmasq+kickstart部署系统真是太方便了