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个安装包。
centos7 pxe minimal install的更多相关文章
- Centos7 PXE Server Install Script
#安装前配置好centos和epel yum源 #网卡ip和localip一致 localip="192.168.88.200" eth_name='eth0' dnsmasq_i ...
- 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 ...
- Centos7.2(linux)minimal install之后需要的操作
minimal install之后,很多命令都不存在,例如ifconfig, wget等等 首先,需要先配置网络,保证机器可以连上互联纲 ip addr可以查看网卡的基本信息 一般默认就只有两个,一个 ...
- CentOS7 PXE安装批量安装操作系统
1.安装相关软件 yum -y install tftp-server httpd dhcp syslinux 2.配置DHCP cp /usr/share/doc/dhcp-4.2.5/dhcpd. ...
- Centos 7 minimal install 无网络无ifconfig的解决
Centos7这个比较不厚道, minimal install下居然不带net-tools 先要连上网络 修改/etc/sysconfig/network-scripts/ifcfg-ens12312 ...
- Centos 7 minimal install 后的基础配置
Centos 7 基础设置: 修改默认语言: 不再是修改 /etc/sysconfig/i18n, 而是要修改 /etc/locale.conf, 以及 /etc/yum/pluginconf.d/l ...
- Add GNOME to a CentOS Minimal Install
by Jeff Hunter, Sr. Database Administrator Contents Introduction CentOS 6 About the Author Introduct ...
- 自动化安装操作系统(Centos7+PXE+Cobbler+kickstart)
一.简介 PXE称作是一种引导方式而不是安装方式似乎更加准确,PXE(Pre-boot Execution Environment)是由Intel设计的协议,它可以使计算机通过网络启动,但是有一个前提 ...
- centos7 PXE自动安装环境搭建
原理: 要进行自动安装的主机A,加电启动时以网卡为第一启动设备 1.启动时会向网络广播,找到dhcp服务器B请求分配IP地址信息,服务器B除了给其分配基本的IP信息(ip.netmask.getewa ...
随机推荐
- 图片_ _Android--加载大分辨率图片到内存
http://www.cnblogs.com/plokmju/p/android_LoadBigImage.html#3084005 前言 在使用ImageView显示图片的时候,直接加载一个图片资源 ...
- java位运算
Java的位运算(bitwise operators)直接对整数类型的位进行操作,这些整数类型包括long.int.short.char和 byte,位运算符具体如下表: 运算符 说明 << ...
- iOS 加入自定义字体方法
1.网上搜索字体文件(后缀名为.ttf,或.odf) 2.把字体库导入到工程的resouce中 3.在程序添加以下代码 输出所有字体 NSArray *familyNames = [UIFont fa ...
- bootstrap-响应式图片、辅助类样式
响应式图片: <div class="container"> <!-- img-responsive 响应式图片 --> <div class=&qu ...
- 强大的JS数组
1.数组的创建 var arrayObj = new Array(); //创建一个数组 var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限, ...
- NPOI高效匯出Excel
using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using NPOI. ...
- sikuli+java实例
新建java工程,导入sikuli-script.jar包 public class TestSikuli { public static void openPage() throws FindF ...
- HOST ip is not allowed to connect to this MySql server
报错:1130-host ... is not allowed to connect to this MySql server 解决方法: 1. 改表法. 可能是你的帐号不允许从远程登陆,只能在loc ...
- flask log
import logging from logging.handlers import RotatingFileHandler from flask import Flask app = Flask( ...
- (easy)LeetCode 191.Number of 1 Bits
Number of 1 Bits Write a function that takes an unsigned integer and returns the number of ’1' bits ...