前言*KickStart很多运维人员都非常熟悉,我们大多数都用它来实现自动安装系统,常见的用自动安装RedHat Linux,最近由于业务需求,需要安装Ubuntu,跟Redhat Linux还是有一些区别,记录安装步骤,供大家相互交流和学习!一、环境及软件系统:CentOS 6.0、Ubuntu 12.04软件:KickStart、PXE、HTTPd、TFTPp、DHCP二、正式安装本环境是基于在CentOS系统上搭建KickStart Ubuntu自动安装服务端。在服务器端执行:yum install dhcp* tftp* httpd* -y安装完后然后配置1、配置ftfp:
- # 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
-
- {
-
- disable = no
-
- socket_type = dgram
-
- protocol = udp
-
- wait = yes
-
- user = root
-
- server = /usr/sbin/in.tftpd
-
- server_args = -s /var/lib/tftpboot
-
- per_source = 11
-
- cps = 100 2
-
- flags = IPv4
-
- }
把disable=yes改成disable=no即可!安装完tftp后,默认在/根目录会生成/tftpboot文件夹,如果没有请链接ln –s /var/lib/tftboot /即可。挂载ubuntu12.04.iso文件Mount /dev/cdrom /mnt &&cp /mnt/install/netboot/* /tftboot/下然后修改vi /tftboot/ubuntu-installer/amd64/boot-screens/txt.cfg如下:2、配置httpd、kickstart:正如第二步截图里面有一个http://192.9.117.143/ubuntu/ks.cfg默认安装完后apache的发布目录为/var/www/html在/var/www/html下建立安装源:mkdir -p /var/www/html/ubuntu然后将ubuntu光盘所有文件拷贝到/var/www/html/ubuntu下cp -a /mnt/* /var/www/html/ubuntu然后在/var/www/html/ubuntu目录下新建ks.cfg文件,权限设置为chmod 777 ks.cfgks.cfg内容如下:
- install
- text
- lang en_US
- langsupport en_US
- keyboard us
- mouse
- timezone --utc Asia/Chongqing
- rootpw --disabled
- user tdt --fullname="tdt" --password wuguangke
- reboot
- url --url http://192.9.117.143/ubuntu
- bootloader --location=mbr
- zerombr yes
- clearpart --all --initlabel
- part /boot --fstype ext4 --size 200
- part swap --size 1024
- part / --fstype ext4 --size 1 --grow
- auth --useshadow --enablemd5
- network --bootproto=dhcp --device=eth0
- firewall --disabled
- skipx
- %packages
- penssh-server
- openssh-client
- nfs-kernel-server
- vim
Ubuntu建立本地源实用案例Fedora 17的安装过程及无线驱动相关资讯 kickstart Ubuntu 12.04
- Linux运维自动化工具 Kickstart (04月09日)
- Nginx DHCP TFTP Kickstart搭建自 (10/29/2015 10:38:15)
- Kickstart 全自动安装部署RHEL 7.0 (09/20/2015 09:02:26)
| - PXE+Kickstart实现无人值守批量安 (11/11/2015 08:39:04)
- RHCSA 系列(十二): 使用 (10/02/2015 19:53:58)
- PXE+Kickstart实现自动安装CentOS (09/12/2015 18:25:42)
|
本文评论 查看全部评论 (0)