- 论坛徽章:
- 0
|
本人刚刚接触linux,算是个新人,很多东西都不是很了解,希望大神们能帮我解答一下。。配置就这些,不知道是哪儿的问题啊,,两台虚机做的环境
想大神们求助啊 {:2_170:}
1、准备
(1)服务:dnsmasq、tftp、httpd、syslinux、pykickstart
(2)环境centos6.4_x86_64
2、安装
yum install -y dnsmasq tftp tftp-server httpd syslinux pykickstart-*
3、配置
mkdir /var/www/html/ks
mkdri /var/lib/tftpboot/pxelinux.cfg
mount /dev/cdrom /var/www/html/ks
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
cp /usr/share/syslinux/menu.c32 /var/lib/tftpboot
cp /var/www/html/ks/isolinux/vmlinuz0 /var/lib/tftpboot
cp /var/www/html/ks/isolinux/initrd0.img /var/lib/tftpboot
cp /var/www/html/ks/isolinux/isolinux.img /var/lib/tftpboot/pxelinux.0/default
服务的配置
(1)dnsmasq
vim /etc/dnsmasq.conf
interface=eth0
dhcp-range=192.168.1.20,192.168.1.30
dhcp-option=3,192.168.1.1
dhcp-option=6,192.168.1.1
dhcp-boot=pxelinux.0,boothost,192.168.1.20
enable-tftp
tftp-root=/var/lib/tftpboot
(2)tftp配置
vim /etc/xinetd.d/tftp
server_args = -s /var/lib/tftpboot
disable = no
(3)deault配置
DEFAULT menu
PROMPT 0
MENU TITLE Kickstart
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL centos-6.4-x86_64-minimal
MENU LABEL pxe linux
kernel vmlinuz0
append initrd=initrd0.img ks=http://192.168.1.200/1.ks //个人感觉好像是ks没有读取到,但是不知道怎么解决(1.ks就在apache的目录下)
(4)配置kickstart
已经将镜像挂到了/var/www/html/ks下
配置文件如下:
system-config-kickstart
#platform=x86, AMD64, 或 Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="http://192.168.1.200/ks/"
# Root password
rootpw --iscrypted $1$QNKZ6gNJ$H5jLtaTHTH6rOIGW686DV/
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
key --skip
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 Africa/Abidjan
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
# Disk partitioning information
part /boot --fstype="ext4" --size=200
part swap --fstype="swap" --size=2048
part / --fstype="ext4" --grow --size=1
最后出现了错误
并且大写键的灯狂闪
|
|