zoukankan      html  css  js  c++  java
  • centos7 与 centos6 的Kickstart配置文件

    CentOS6.8 ks文件


    #platform=x86, AMD64, or Intel EM64T
    #version=DEVEL
    # Firewall configuration
    firewall --disabled
    # Install OS instead of upgrade
    install
    # Use network installation
    url --url="http://192.168.137.38/cobbler/ks_mirror/CentOS-6.8-x86_64/"
    #repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
    # Root password
    rootpw --iscrypted $1$ljohn$yBMDpKkntQ9jfV1ZAWKpU1
    # System authorization information
    auth --useshadow --passalgo=sha512
    # Use graphical install
    graphical
    # System keyboard
    keyboard us
    # System language
    lang en_US.UTF-8
    # SELinux configuration
    selinux --disabled
    # Do not configure the X Window System
    skipx
    # Installation logging level
    #logging --level=info
    # Reboot after installation
    reboot
    # System timezone
    timezone Asia/Shanghai
    # Network information
    network --bootproto=dhcp --device=eth0 --onboot=on
    #network --bootproto=dhcp --device=eth1 --onboot=on
    # System bootloader configuration
    bootloader --append="crashkernel=auto rhgb quiet" --location=mbr --driveorder="sda"
    # Clear the Master Boot Record
    zerombr
    # Partition clearing information
    clearpart --all --initlabel
    # Disk partitioning information
    part /boot --asprimary --fstype="ext4" --size=500
    part swap --fstype="swap" --size=2048
    part / --fstype="ext4" --grow --size=1
    %packages --nobase
    @core
    %end



    CentOS7.3 ks


    #platform=x86, AMD64, or Intel EM64T
    #version=DEVEL
    # Install OS instead of upgrade
    install
    # Keyboard layouts
    # old format: keyboard us
    # new format:
    keyboard --vckeymap=us --xlayouts='us'
    # Root password
    rootpw --iscrypted $1$ljohn$yBMDpKkntQ9jfV1ZAWKpU1
    # Use network installation
    url --url="http://192.168.137.38/cobbler/ks_mirror/CentOS-7.4-x86_64/"
    # System language
    lang en_US.UTF-8
    # Firewall configuration
    firewall --disabled
    # System authorization information
    auth --useshadow --passalgo=sha512
    # Use graphical install
    graphical
    # Run the Setup Agent on first boot
    firstboot --enable
    # SELinux configuration
    selinux --disabled
    # Do not configure the X Window System
    skipx
    # System services
    services --disabled="chronyd"
    ignoredisk --only-use=sda
    # Network information
    network --bootproto=dhcp --device=eth0 --onboot=on
    #network --bootproto=static --device=eth0 --gateway=192.168.137.1 --ip=192.168.137.40 --nameserver=8.8.8.8 --netmask=255.255.255.0 --activate
    # Reboot after installation
    reboot
    # System timezone
    timezone Asia/Shanghai
    # System bootloader configuration
    bootloader --location=mbr --boot-drive=sda
    # Clear the Master Boot Record
    zerombr
    # Partition clearing information
    clearpart --all --initlabel
    # Disk partitioning information
    part /boot --asprimary --fstype="xfs" --size=1024
    part swap --fstype="swap" --size=2048
    part / --fstype="xfs" --grow --size=1
    %packages
    @^minimal
    @core
    %end

  • 相关阅读:
    树莓派关闭swap文件[浙大嵌入式系统]
    树莓派之objdump [浙大嵌入式系统]
    树莓派RAM[浙大嵌入式系统]
    温湿度传感器dht11的lcd显示[嵌入式系统]
    ucos II[嵌入式系统]
    MooTools 1.4 源码分析 Fx.CSS
    MooTools 1.4 源码分析 (关于Core、Type等模块分析)
    MooTools 1.4 源码分析 Fx.Tween
    MooTools Class.Mutators 如何建立一个我们自己的Mutator
    Javascript各种循环测试,达夫设备可用性分析
  • 原文地址:https://www.cnblogs.com/bpsanshao/p/15314451.html
Copyright © 2011-2022 走看看