设为首页 加入收藏

TOP

Centos7 下cobbler安装及配置(四)
2017-10-16 18:18:52 】 浏览:6303
Tags:Centos7 cobbler 安装 配置
ub/images 11 removing: /var/lib/tftpboot/grub/grub-x86_64.efi 12 removing: /var/lib/tftpboot/s390x/profile_list 13 copying bootloaders 14 trying hardlink /var/lib/cobbler/loaders/grub-x86.efi -> /var/lib/tftpboot/grub/grub-x86.efi 15 trying hardlink /var/lib/cobbler/loaders/grub-x86_64.efi -> /var/lib/tftpboot/grub/grub-x86_64.efi 16 copying distros to tftpboot 17 copying images 18 generating PXE configuration files 19 generating PXE menu structure 20 rendering DHCP files 21 generating /etc/dhcp/dhcpd.conf 22 rendering TFTPD files 23 generating /etc/xinetd.d/tftp 24 cleaning link caches 25 running post-sync triggers 26 running python triggers from /var/lib/cobbler/triggers/sync/post/* 27 running python trigger cobbler.modules.sync_post_restart_services 28 running: dhcpd -t -q 29 received on stdout: 30 received on stderr: 31 running: service dhcpd restart 32 received on stdout: 33 received on stderr: Redirecting to /bin/systemctl restart dhcpd.service 34 35 running shell triggers from /var/lib/cobbler/triggers/sync/post/* 36 running python triggers from /var/lib/cobbler/triggers/change/* 37 running python trigger cobbler.modules.scm_track 38 running shell triggers from /var/lib/cobbler/triggers/change/* 39 *** TASK COMPLETE ***

检查dhcp

[root@localhost ~]# netstat -lnup|grep dhcp
udp        0      0 0.0.0.0:39776           0.0.0.0:*                           53381/dhcpd         
udp        0      0 0.0.0.0:67              0.0.0.0:*                           53381/dhcpd         
udp6       0      0 :::46146                :::*                                53381/dhcpd  

4.3.5导入CentOs-7的镜像

[root@localhost ~]# mount /dev/cdrom  /mnt # 挂载光盘镜像 mount: /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# cobbler import --path=/mnt --name=Centos-7.2 --arch=x86_64 # cobbler导入镜像
task started: 2017-10-15_145401_import
task started (id=Media import, time=Sun Oct 15 14:54:01 2017)
Found a candidate signature: breed=redhat, version=rhel6
Found a candidate signature: breed=redhat, version=rhel7
Found a matching signature: breed=redhat, version=rhel7
Adding distros from path /var/www/cobbler/ks_mirror/Centos-7.2-x86_64: # 导入镜像的位置
creating new distro: Centos-7.2-x86_64
trying symlink: /var/www/cobbler/ks_mirror/Centos-7.2-x86_64 -> /var/www/cobbler/links/Centos-7.2-x86_64
creating new profile: Centos-7.2-x86_64
associating repos
checking for rsync repo(s)
checking for rhn repo(s)
checking for yum repo(s)
starting descent into /var/www/cobbler/ks_mirror/Centos-7.2-x86_64 for Centos-7.2-x86_64
processing repo at : /var/www/cobbler/ks_mirror/Centos-7.2-x86_64
need to process repo/comps: /var/www/cobbler/ks_mirror/Centos-7.2-x86_64
looking for /var/www/cobbler/ks_mirror/Centos-7.2-x86_64/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/Centos-7.2-x86_64/repodata
*** TASK COMPLETE ***
  • # --path 镜像路径
  • # --name 为安装源定义一个名字
  • # --arch 指定安装源是32位、64位、ia64, 目前支持的选项有: x86│x86_64│ia64
  • # 安装源的唯一标示就是根据name参数来定义,本例导入成功后,安装源的唯一标示就是:CentOS-7.1-x86_64,如果重复,系统会提示导入失败

导入完镜像以后,那么就使查看下cobbler

[root@localhost ks_mirror]# cobbler list                       
distros:
   Centos-7.2-x86_64

profiles:
   Centos-7.2-x86_64

systems:

repos:

images:

mgmtclasses:

packages:

files:

4.3.6导入kickstarts配置文件

[root@localhost kickstarts]# ls
default.ks    esxi5-ks.cfg      legacy.ks     sample_autoyast.xml  sample_esx4.ks   sample_esxi5.ks  sample_old.seed
esxi4-ks.cfg  install_profiles  pxerescue.ks  sa
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 4/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇虚拟机+桥接模式+Host-only模式 .. 下一篇在ubuntu16.04中一键创建LAMP环境..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目