centos6 pxe minimal install

it2022-05-05  207

centos6 pxe minimal install

# 01-78-2b-cb-69-10-f3 default menu.c32 prompt 0 timeout 100 LABEL centos-6 MENU DEFAULT MENU LABEL 78:2b:cb:69:10:f3 KERNEL centos-6/vmlinuz APPEND initrd=centos-6/initrd.img ks=http://install.localhost/kickstart/78:2b:cb:69:10:f3 ksdevice=link ramdisk_size=102400 console=ttyS1,115200 # 78:2b:cb:69:10:f3 text keyboard us timezone Asia/Shanghai lang en_US.UTF-8 skipx auth --enableshadow --passalgo=sha512 #python -c 'import crypt; print(crypt.crypt("12345678", "$6$MySalt"))' rootpw --iscrypted $6$MySalt$iFl/N4aMnlglYuZpKVOE0NP.girdj2ayXNT9RhjdoZ05EkF.Ib7ip.jDN7mleWEpY8Iil5bplNdvtlgzCWUcG1 #zerombr bootloader --location=mbr --driveorder=sda ignoredisk --only-use=sda clearpart --drives=sda --all part swap --fstype='swap' --ondisk=sda --size=8000 part / --fstype='ext4' --ondisk=sda --size=50000 part /opt --fstype='ext4' --ondisk=sda --size=1 --grow network --bootproto=dhcp --device=78:2b:cb:69:10:f3 --activate install url --url='http://install.localhost/centos-6' logging level=info firewall --disabled selinux --disabled services --disabled=NetworkManager,ip6tables,iptables,postfix,cpuspeed services --enabled=network firstboot --disabled reboot %packages @core %end %pre /usr/sbin/parted -s /dev/sda mklabel gpt %end %post cat > /etc/sysconfig/network-scripts/ifcfg-em1 << _EOF_ DEVICE=em1 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.48.122 NETMASK=255.255.255.0 _EOF_ cat > /etc/sysconfig/network << _EOF_ NETWORKING=yes HOSTNAME=bjyh-48-122 GATEWAY=192.168.48.1 _EOF_ %end

使用CentOS-6.7-x86_64-minimal.iso用做安装盘,源盘没有@base,会提示缺少Base包,中断安装。所有只有使用CentOS-6.7-x86_64-bin-DVD1.iso. @Base,共385个安装包 @Core,共205个安装包。

posted on 2016-01-25 17:42 北京涛子 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/liujitao79/p/5158106.html


最新回复(0)