[root@localhost kickstarts]# cobbler report
distros:
==========
Name : Centos-7.2-x86_64
Architecture : x86_64
TFTP Boot Files : {}
Breed : redhat
Comment :
Fetchable Files : {}
Initrd : /var/www/cobbler/ks_mirror/Centos-7.2-x86_64/images/pxeboot/initrd.img
Kernel : /var/www/cobbler/ks_mirror/Centos-7.2-x86_64/images/pxeboot/vmlinuz
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/Centos-7.2-x86_64'}
Management Classes : []
OS Version : rhel7
Owners : ['admin']
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Template Files : {}
profiles:
==========
Name : Centos-7.2-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : Centos-7.2-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/sample_end.ks # 默认ks文件,这里需要修改为我们自己配置好的ks文件
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : []
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : 1
Virt Bridge : xenbr0
Virt CPUs : 1
Virt Disk Driver Type : raw
Virt File Size(GB) : 5
Virt Path :
Virt RAM (MB) : 512
Virt Type : kvm
systems:
==========
repos:
==========
images:
==========
mgmtclasses:
==========
packages:
==========
files:
==========
1 #platform=x86, AMD64, or Intel EM64T
2 #version=DEVEL
3 # Install OS instead of upgrade
4 install
5 # Keyboard layouts
6 keyboard 'us'
7 # Root password
8 rootpw --iscrypted $1$m1pE0DG6$vALBphGGynqvUzfJaWZ6U1
9 # Use network installation
10 url --url="$tree"
11 # System language
12 lang en_US
13 # Firewall configuration
14 firewall --disabled
15 # System authorization information
16 auth --useshadow --passalgo=sha512
17 # Use graphical install
18 graphical
19 firstboot --disable
20 # SELinux configuration
21 selinux --disabled
22
23 # Network information
24 network --bootproto=dhcp --device=eth0
25 network --bootproto=dhcp --device=eth1
26 # Reboot after installation
27 reboot
28 # System timezone
29 timezone Asia/Shanghai
30 # System bootloader configuration
31 bootloader --location=mbr
32 # Clear the Master Boot Record
33 zerombr
34 # Partition clearing information
35 clearpart --all --initlabel
36 # Disk partitioning information
37 part /boot --asprimary --fstype="ext4" --size=200
38 part swap --fstype="swap" --size=1024
39 part / --fstype="ext4" --grow --size=1
40 %packages
41 @base
42 @core
43 @compat-libraries
44 @debugging
45 @development
46 @gnome-desktop
47 @X Window System
48 %end
1 [root@localhost kickstarts]# cobbler profile list
2 Centos-7.2-x86_64
3 [root@localhost kickstarts]# cobbler profile edit --name Centos-7.2-