常用软件安装及使用目录

资源链接:https://pan.baidu.com/s/1yfVnuSgY5vOTh-B74tpVyw   网盘分享的文件在此

cobbler第一次操作history。

  1. echo "192.168.19.200 mirrors.aliyun.com" >>/etc/hosts
  2. curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  3. curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
  4. yum install pykickstart
  5. ksvalidator anaconda-ks.cfg
  6. yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd
  7. systemctl start cobblerd.service
  8. systemctl start httpd.service
  9. cobbler check
  10. openssl passwd - -salt 'random-phrase-here' ''
  11. cp /etc/cobbler/settings{,.ori}
  12. sed -i 's/server: 127.0.0.1/server: 172.16.1.202/' /etc/cobbler/settings
  13. sed -i 's/next_server: 127.0.0.1/next_server: 172.16.1.202/' /etc/cobbler/settings
  14. sed -i 's/manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/settings
  15. sed -i 's/pxe_just_once: 0/pxe_just_once: 1/' /etc/cobbler/settings
  16. sed -ri "/default_password_crypted/s#(.*: ).*#\1\"`openssl passwd -1 -salt 'oldboy' '123456'`\"#" /etc/cobbler/settings
  17. sed -i 's#yes#no#' /etc/xinetd.d/tftp
  18. systemctl start rsyncd
  19. systemctl enable rsyncd
  20. systemctl enable tftp.socket
  21. systemctl start tftp.socket
  22. systemctl restart cobblerd.service
  23. cobbler check
  24. rz -E
  25. ls
  26. tar xfP cobbler_load_for_CentOS7.tar_\(\).gz
  27. cobbler check
  28. ps -ef|grep cobb
  29. systemctl start cobblerd.service
  30. systemctl start httpd.service
  31. history
  32. history >a.txt

1.

  1. echo "192.168.19.200 mirrors.aliyun.com" >>/etc/hosts
  2. curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  3. curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
  4.  
  5. yum install pykickstart
  6.  
  7. ksvalidator anaconda-ks.cfg

加密拓展:

  1. yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd
  2. systemctl start cobblerd.service
  3. systemctl start httpd.service
  4. cobbler check

别人遇到的问题:

应该是这样:

  1. cp /etc/cobbler/settings{,.ori}
  2. sed -i 's/server: 127.0.0.1/server: 172.16.1.202/' /etc/cobbler/settings
  3. sed -i 's/next_server: 127.0.0.1/next_server: 172.16.1.202/' /etc/cobbler/settings
  4. sed -i 's/manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/settings
  5. sed -i 's/pxe_just_once: 0/pxe_just_once: 1/' /etc/cobbler/settings
  6. sed -ri "/default_password_crypted/s#(.*: ).*#\1\"`openssl passwd -1 -salt 'oldboy' '123456'`\"#" /etc/cobbler/settings
  7. sed -i 's#yes#no#' /etc/xinetd.d/tftp
  8. systemctl start rsyncd
  9. systemctl enable rsyncd
  10. systemctl enable tftp.socket
  11. systemctl start tftp.socket
  12. systemctl restart cobblerd.service

  1. tar xfP cobbler_load_for_CentOS7.tar.gz
  2. cobbler check

因为我是新开的测试机,所以ip与之前所用不同,所以我将ip修改为202结尾的

  1. sed -n "/168/p" /etc/sysconfig/network-scripts/ifcfg-eth[]
  2.  
  3. sed -i "s#168#202#g" /etc/sysconfig/network-scripts/ifcfg-eth[]
  4. sed -n "/202/p" /etc/sysconfig/network-scripts/ifcfg-eth[]
  5. systemctl restart network
  1. cobbler check

下面是一个错误,没排出来,重装的

  1. sed -i.ori 's#192.168.1#172.16.1#g;22d;23d' /etc/cobbler/dhcp.template
  2. cobbler sync

可以登陆了,HTTP不可以登录,葛一恒的广告拦截软件拦截了也没出网页。

https://10.0.0.202/cobbler_web

账号密码默认均为cobbler

连接进入了:

给cobbler挂上镜像

  1. mount /dev/cdrom /mnt/

生成目录  

  1. ls /var/www/cobbler/ks_mirror/CentOS7.-x86_64/

  1. df -h

  1. http://10.0.0.202/cblr/links/CentOS7.4-x86_64/

编辑:CentOS-7-x86_64.cfg

  1. # Cobbler for Kickstart Configurator for CentOS by Ma changwei
  2. install
  3. url --url=$tree
  4. text
  5. lang en_US.UTF-
  6. keyboard us
  7. zerombr
  8. bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
  9. #Network information
  10. $SNIPPET('network_config')
  11. #network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6 --hostname=CentOS7
  12. timezone --utc Asia/Shanghai
  13. authconfig --enableshadow --passalgo=sha512
  14. rootpw --iscrypted $default_password_crypted
  15. clearpart --all --initlabel
  16. part /boot --fstype xfs --size
  17. part swap --size
  18. part / --fstype xfs --size --grow
  19. firstboot --disable
  20. selinux --disabled
  21. firewall --disabled
  22. logging --level=info
  23. reboot
  24.  
  25. %pre
  26. $SNIPPET('log_ks_pre')
  27. $SNIPPET('kickstart_start')
  28. $SNIPPET('pre_install_network_config')
  29. # Enable installation monitoring
  30. $SNIPPET('pre_anamon')
  31. %end
  32.  
  33. %packages
  34. @^minimal
  35. @compat-libraries
  36. @core
  37. @debugging
  38. @development
  39. bash-completion
  40. chrony
  41. dos2unix
  42. kexec-tools
  43. lrzsz
  44. nmap
  45. sysstat
  46. telnet
  47. tree
  48. vim
  49. wget
  50. %end
  51.  
  52. %post
  53. systemctl disable postfix.service
  54. %end
  1. net.ifnames= biosdevname=

错误:

包组的配置文件出错或mac地址,ip地址等写错了

ip配错了

内存给小了,需要2G

cobbler部署以及使用的更多相关文章

  1. cobbler部署

    1.cobbler介绍 Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows.该工具使用python开发,小巧轻便(才15k行python代码),使用简单的 ...

  2. cobbler部署centos6与centos7系列

    cobbler部署centos6与centos7系列 转载自:http://www.jianshu.com/p/a4bed77bf40d 版权声明:完全抄自 http://www.jianshu.co ...

  3. Cobbler部署之FAQ处理

    Cobbler报错处理 通过cobbler check检查出现的报错 红色标注为报错关键信息 9.1 报错一 # cobbler check httpd does not appear to be r ...

  4. cobbler部署机器的默认密码

    修改cobbler的默认密码: 用 openssl 生成一串密码后加入到 cobbler 的配置文件(/etc/cobbler/settings)里,替换 default_password_crypt ...

  5. cobbler部署安装CentOS6.8

    Linux运维:cobbler : 矮哥linux运维群:93324526 学习cobbler的话,必须先搞懂kickstart,原理不是,不懂如何排错. kickstart部署请点击这里 1. Co ...

  6. Cobbler 部署

    环境介绍 Cobbler 操作系统: Centos-7.2-x86_64 Cobbler服务器地址: 10.90.0.10 部署 Cobbler 安装 Centos epel 原 [root@node ...

  7. cobbler部署安装

    挂载光驱 # mount /dev/cdrom /mnt/ 安装cobbler所需软件 # yum install cobbler cobbler-web dhcp tftp-server pykic ...

  8. cobbler部署错误总结

    web 报错500 Internal Server Error解决方案 在安装使用Cobbler web界面的时候提示HTTP 500错误,也就是服务器内部错误,检查防火墙和selinux都是为关闭状 ...

  9. cobbler安装、部署、测试

    cobbler功能介绍 官网:http://cobbler.github.io 安装 yum install -y httpd tftp dhcp cobbler cobbler-web pykick ...

随机推荐

  1. Sql Server 数据库扩展

    1. 查询一个表的所有列名 ------查询一个表的所有列名 Select Name FROM SysColumns Where id=Object_Id('Sys_User') select t.c ...

  2. js中css样式兼容各个浏览器写法

    在实际业务中往往需要在js中对dom添加一些样式,还需要对各个浏览器厂商的兼顾,看到一位大神写的一个方法很赞,做一个笔记 function prefixStyle(style){ var eleSty ...

  3. node.js学习之post文件上传 (multer中间件)

    express为了性能考虑,采用按需加载的方式,引入各种中间件来完成需求, 平时解析post上传的数据时,是用body-parser. 但这个中间件有缺点,只能解析post的文本内容,(applica ...

  4. C++程序设计入门(上) 之对象和类

    面向对象编程: 如何定义对象?  同类型对象用一 个通用的类来定义 class C { int p; int f(); }; C ca, cb; 一个类用变量来定义数据域,用函数定义行为. class ...

  5. Linux下onvi支持h265环境的的搭建:gsoap的安装及生产.c .h文件

     1. 下载gsoap  :http://www.genivia.com/products.html#notice,既Open Source gSOAP版本,并解压进入目录安装,configure后面 ...

  6. Hadoop源码学习笔记之NameNode启动场景流程一:源码环境搭建和项目模块及NameNode结构简单介绍

    最近在跟着一个大佬学习Hadoop底层源码及架构等知识点,觉得有必要记录下来这个学习过程.想到了这个废弃已久的blog账号,决定重新开始更新. 主要分以下几步来进行源码学习: 一.搭建源码阅读环境二. ...

  7. JavaWeb基础—上传与下载

    1.上传(不能使用BaseServlet): 上传的作用,略 上传的要求(对表单和Servlet都有要求): 1.必须使用表单,而不能是超链接,method="post" 文件明显 ...

  8. WPF DataGrid 样式分享

    原文:WPF DataGrid 样式分享 隔行换色,鼠标单击,悬浮样式都有 先看效果: 代码: <DataGrid AutoGenerateColumns="False" N ...

  9. [2016北京集训试题6]网络战争-[最小割树(网络流)+kd-tree+倍增]

    Description A 联邦国有 N 个州,每个州内部都有一个网络系统,有若干条网络线路,连接各个 州内部的城市. 由于 A 国的州与州之间的关系不是太好,每个州都只有首府建立了到别的州的网络.具 ...

  10. Caffe中Layer注册机制

    Caffe内部维护一个注册表用于查找特定Layer对应的工厂函数(Layer Factory的设计用到了设计模式里的工厂模式).Caffe的Layer注册表是一组键值对(key, value)( La ...