centos7 pxe minimal install

it2022-05-05  219

centos7 pxe minimal install

# 01-78-2b-cb-69-10-f3 default menu.c32 prompt 0 timeout 50 label CentOS 7 MENU DEFAULT MENU LABEL CentOS 7 [78:2b:cb:69:10:f3] KERNEL centos-7/vmlinuz APPEND initrd=centos-7/initrd.img ip=dhcp BOOTIF=78:2b:cb:69:10:f3 inst.ks=http://install.localhost/kickstart/78:2b:cb:69:10:f3 ramdisk_size=102400 console=ttyS1,115200 # 78:2b:cb:69:10:f3 text keyboard --vckeymap=us --xlayouts='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 --boot-drive=sda --location=mbr ignoredisk --only-use=sda clearpart --drives=sda --all #part swap --fstype='swap' --ondisk=sda --size=8000 part biosboot --fstype='biosboot' --size=1 part / --fstype='xfs' --ondisk=sda --size=50000 part /opt --fstype='xfs' --ondisk=sda --size=1 --grow network --bootproto=static --device=78:2b:cb:69:10:f3 --ip=192.168.48.122 --netmask=255.255.255.0 --ipv6=yes --onboot=yes --activate --hostname=bjyh-48-122 --gateway=192.168.48.1 --nameserver=192.168.48.116 install url --url='http://install.localhost/centos-7' logging level=info #repo --name=base --baseurl='http://install.localhost/centos-7' firewall --disabled selinux --disabled services --disabled=NetworkManager,postfix services --enabled=network firstboot --disabled reboot %packages @core %end %pre /usr/sbin/parted -s /dev/sda mklabel gpt %end %post #rm -rf /etc/yum.repos.d/* #curl http://us.yum.suntv.tv/centos6.repo -o /etc/yum.repos.d/centos.repo #curl http://us.yum.suntv.tv/epel.repo -o /etc/yum.repos.d/epel.repo #yum install -y wget vim net-tools %end

使用CentOS-7-x86_64-Minimal-1511.iso做安装盘,源盘里不包括wget,vim,net-tools,因此注释。@core共284个安装包。

posted on 2016-05-06 11:20 北京涛子 阅读( ...) 评论( ...) 编辑 收藏

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


最新回复(0)