Dell-R730 [Pxe + dhcp + ftp + tftp + Kickstart + CentOs6.6], dell-r730kickstart

Source: Internet
Author: User
Tags systemtap

Dell-R730 [Pxe + dhcp + ftp + tftp + Kickstart + CentOs6.6], dell-r730kickstart

IP: 10.104.0.101

# Cat ifcfg-em1 [root @ localhost network-scripts] #

[Root @ localhost network-scripts] # iptables-F

[Root @ localhost network-scripts] # iptables-X

[Root @ localhost network-scripts] # service iptables stop

Iptables: Set the chain to policy ACCEPT: filter [OK]

Iptables: clear firewall rules: [OK]

Iptables: uninstalling module: [OK]

[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

[Root @ localhost network-scripts] # cd/etc/yum. repos. d/

[Root @ localhost yum. repos. d] # Music 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

 1 default auto 2  3 prompt 0 4  5 timeout 1 6  7 label auto 8  9         kernel vmlinuz10 11         append initrd=initrd.img ks=ftp://10.104.0.101/rhel6/ks.cfg devfs=nomount ramdisk_size=8192 ksdevice=em1 biosname=012 13 label linux text14 15         kernel vmlinuz16 17         append text initrd=initrd.img devfs=nomount ramdisk_size=819218 19 label linux rescue20 21         kernel vmlinuz22 23         append rescue  initrd=initrd.img devfs=nomount ramdisk_size=8192

 

 

[Root @ zuo pxeboot] # vim/etc/dhcp/dhcpd. conf

 1 subnet 10.104.0.0 netmask 255.255.255.0 { 2  3         default-lease-time 21600; 4  5         max-lease-time 43200; 6  7         range 10.104.0.100 10.104.0.130; 8  9         next-server 10.104.0.101;10 11         filename "pxelinux.0";12 13 }

 

[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

Dejarnu

Desktop-file-utils

E2fsprogs-devel

Eclipse-mylyn-cdt

Eclipse-mylyn-PVDF

Eclipse-mylyn-trac

Eclipse-mylyn-webtasks

Eclipse-mylyn-wikitext

Eclipse-subclipse-graph

Expat-devel

Secondary CT

Secondary CT

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

Libxrandroid-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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.