• PXE:kickstart配置文件:全自动安装centos、redhat 系统的配置


    default menu.c32
    
    #多网卡,其实centos7会自动处理,默认使用第一个网卡
    label centos76
    menu label ??? centos76 from ftp
    timeout 1000
    kernel centos76/isolinux/vmlinuz
    append initrd=centos76/isolinux/initrd.img method=ftp://192.168.143.1/centos76 ks=ftp://192.168.143.1/ks7.cfg
    
    #多网卡,默认网卡
    label centos76
    menu label special eth-name centos76 from ftp
    timeout 1000
    kernel centos76/isolinux/vmlinuz
    append initrd=centos76/isolinux/initrd.img method=ftp://192.168.143.1/centos76 ks=ftp://192.168.143.1/ks7.cfg ksdevice=ens32
    
    #多网卡,传统内核网卡
    label centos76
    menu label eth0 centos76 from ftp
    timeout 1000
    kernel centos76/isolinux/vmlinuz
    append initrd=centos76/isolinux/initrd.img method=ftp://192.168.143.1/centos76 ks=ftp://192.168.143.1/ks7.cfg net.ifnames=0 biosdevname=0 ksdevice=eth0
    
    
    #【多】网卡
    label rhel6
    menu label rhel6 from ftp
    kernel rhel610/isolinux/vmlinuz
    append initrd=rhel610/isolinux/initrd.img method=ftp://192.168.56.1/rhel610 ks=ftp://192.168.56.1/ks6.cfg ksdevice=eth0
    
    #单网卡
    label rhel6
    menu label rhel6 from ftp
    kernel rhel610/isolinux/vmlinuz
    append initrd=rhel610/isolinux/initrd.img method=ftp://192.168.56.1/rhel610 ks=ftp://192.168.56.1/ks6.cfg ksdevice=eth0
    auth
    
    install
    cdrom
    
    lang en_US.UTF8
    keyboard us
    timezone  Asia/Shanghai
    
    #network --device=eth0 --bootproto=query
    
    clearpart --all --drives=sda
    zerombr
    autopart
    
    rootpw root
    
    bootloader
    #reboot
    halt
    
    %packages
    -@Base
    wget
    net-tools
    ftp
    telnet
    strace
    %end
    
    %post
    touch /root/jinsen-install.log
    chkconfig iptables off
    chkconfig ip6tables off
    chkconfig kdump off
    %end
  • 相关阅读:
    下载flash我的三种方法
    随机变换背景图象(一个可以刷新心情的特效)
    禁止缓存
    [模板]字符串算法
    [学习笔记]有上下界的网络流
    [bzoj2809][Apio2012]dispatching
    [四校联考]Easy Problems
    [学习笔记]tarjan
    [vijos1780][NOIP2012]开车旅行
    记第一次打女队
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/10626317.html
Copyright © 2020-2023  润新知