设为首页 加入收藏

TOP

Centos7 下cobbler安装及配置(五)
2017-10-16 18:18:52 】 浏览:6005
Tags:Centos7 cobbler 安装 配置
mple_end.ks sample_esxi4.ks sample.ks sample.seed [root@localhost kickstarts]#
pwd /var/lib/cobbler/kickstarts [root@localhost kickstarts]# rz rz waiting to receive. zmodem trl+C ? 100% 1 KB 1 KB/s 00:00:01 0 Errors.

查看导入信息及默认ks文件

[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: ==========

我ks文件(只是简单配置的,具体可以按自己业务来)

 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

编辑修改指定ks文件为我们刚刚上传的ks

 1 [root@localhost kickstarts]# cobbler profile list
 2    Centos-7.2-x86_64
 3 [root@localhost kickstarts]# cobbler profile edit --name Centos-7.2-
			
		  
编程开发网
首页 上一页 2 3 4 5 6 7 下一页 尾页 5/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇虚拟机+桥接模式+Host-only模式 .. 下一篇在ubuntu16.04中一键创建LAMP环境..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

array(4) { ["type"]=> int(8) ["message"]=> string(24) "Undefined variable: jobs" ["file"]=> string(32) "/mnt/wp/cppentry/do/bencandy.php" ["line"]=> int(217) }