systemimager 可以把一个所有软件都安装完成的系统(黄金客户端)镜像到server 端, 在通过PXE 启动,再同过rsync同步到裸机上

因为systemimager大部分由perl编写,所有需要一些依赖包

perl-AppConfig

perl-XML-SAX

perl-XMLSimpel

主程序 ----服务器端

systemconfigurator

systemimager-common

systemimager-server

systemimager-x84-64boot-standard

systemimager-x84-64initrd_template

服务器端安装完成后会有以下命令

[root@localhost ~]# si_

si_addclients           si_mkautoinstalldisk    si_mkdhcpstatic         si_pcp

si_clusterconfig        si_mkautoinstallscript  si_mkrsyncd_conf        si_psh

si_cpimage              si_mkbootpackage        si_monitor              si_pushinstall

si_getimage             si_mkbootserver         si_monitortk            si_pushoverrides

si_lsimage              si_mkclientnetboot      si_mvimage              si_pushupdate

si_mkautoinstallcd      si_mkdhcpserver         si_netbootmond          si_rmimage

这说明服务器端已经安装完成了

下一步来安装黄金客户端,

需要的安装程序为

systemconfigurator

systemimager-common

systemimager-client

systemimager-x84-64initrd_template

安装完成后命令

[root@mysql1 ~]# si_

si_lsimage        si_prepareclient       si_updateclient

黄金客户端已经安装完成,在客户端上启动同步服务

[root@localhost ~]# si_prepareclient --server 192.168.1.1

Welcome to the SystemImager si_prepareclient command.  This command may modify

the following files to prepare your golden client for having it's image

retrieved by the imageserver.  It will also create the /etc/systemimager

directory and fill it with information about your golden client.  All modified

files will be backed up with the .before_systemimager-4.1.6 extension.

/etc/services:

This file defines the port numbers used by certain software on your system.

Entries for rsync will be added if necessary.

/tmp/fileO0rkKZ:

This is a temporary configuration file that rsync needs on your golden client

in order to make your filesystem available to your SystemImager server.

inetd configuration:

SystemImager needs to run rsync as a standalone daemon on your golden client

until it's image is retrieved by your SystemImager server.  If rsyncd is

configured to run as a service started by inetd, it will be temporarily

disabled, and any running rsync daemons or commands will be stopped.  Then,

an rsync daemon will be started using the temporary configuration file

mentioned above.

See "si_prepareclient --help" for command line options.

Continue? (y/[n]): y  #输入“y”,继续。

*********************************** WARNING ***********************************

This utility starts an rsync daemon that makes all of your files accessible

by anyone who can connect to the rsync port of this machine.  This is the

case until you reboot, or kill the 'rsync --daemon' process by hand.  By

default, once you use si_getimage to retrieve this image on your imageserver,

these contents will become accessible to anyone who can connect to the rsync

port on your imageserver.  See rsyncd.conf(5) for details on restricting

access to these files on the imageserver.  See the systemimager-ssh package

for a more secure method of making images available to clients.

*********************************** WARNING ***********************************

Continue? (y/[n]): y  #再次输入"y"。

-rw-r--r-- 1 root root 1855956 Apr 10 21:31 /etc/systemimager/boot/kernel

Starting or re-starting rsync as a daemon.....

done!

This client is ready to have its image retrieved.  You must now run

the "si_getimage" command on your imageserver.

Your client has been successfully prepared.  Boot kernel (copied from

this Linux distribution) and an initrd.img (generated by the

initrd_template package) can be found in /etc/systemimager/boot.

Automatically create configuration file for systemconfigurator:

>> /etc/systemconfig/systemconfig.conf

客户端服务启动完成

服务器端抓取客户端系统镜像

基本的语法是:“si_getimage -golden-client [client_hostname] -image [image_name]”

[root@localhost ~]#si_getimage --golden-client 192.168.1.2 -image vfast_backup

--post-install reboot  --directory /systemimager/

This program will get the "vfast_backup" system image from "192.168.1.2" making the assumption that all filesystems considered part  of the system image are using ext2, ext3, jfs, FAT, reiserfs, or xfs.     This program will not get /proc, NFS, or other filesystems  not mentioned above.     *********************************** WARNING ***********************************   All files retrieved from a golden client are, by default, made accessible to   anyone who can connect to the rsync port of this machine.  See rsyncd.conf(5)  for details on restricting access to these files on the imageserver.  See the  systemimager-ssh package for a more secure (but less effecient) method of   making images available to clients.  *********************************** WARNING ***********************************      See "si_getimage --help" for command line options.     Continue? ([y]/n):y  #输入"y"继续黄金客户端开始复制文件到镜像服务器,如下所示:

usr/share/zoneinfo/right/Navajo => usr/share/zoneinfo/right/US/Mountain  usr/share/zoneinfo/right/America/Denver => usr/share/zoneinfo/right/US/Mountain  usr/share/zoneinfo/right/America/Shiprock => usr/share/zoneinfo/right/US/Mountain  usr/share/zoneinfo/right/America/Los_Angeles => usr/share/zoneinfo/right/US/Pacific  usr/share/zoneinfo/right/Pacific/Pago_Pago => usr/share/zoneinfo/right/US/Samoa  usr/share/zoneinfo/right/Pacific/Samoa => usr/share/zoneinfo/right/US/Samoa     sent 3524467 bytes  received 3232535951 bytes  1941830.43 bytes/sec  total size is 3411616325  speedup is 1.05  ------------- vfast_backup IMAGE RETRIEVAL FINISHED -------------     Press to continue... 复制完成后,提示按“Enter”键继续,键入“Enter”后,需要让我们选择为克隆客户端选择获取IP地址的方式。有以下三种方式供大家选择:

l DHCP:服务器安装完成后会使用DHCP获得IP,非静态

l STATIC:安装过程中使用的IP会成为安装客户端的静态IP

l REPLICANT:安装后不会配置网络,作为备份或者快速恢复单机的机制

根据实际情况选择,这里我选择使用DHCP,直接回车即可。

There are three ways to assign IP addresses to the client systems on an  ongoing basis:     1) DHCP     ----------------------------------------------------------------     A DHCP server will assign IP addresses to clients installed with    this image.  They may be assigned a different address each time.     If you want to use DHCP, but must ensure that your clients     receive the same IP address each time, see "man si_mkdhcpstatic".     2) STATIC    ----------------------------------------------------------------     The IP address the client uses during autoinstall will be     permanently assigned to that client.     3) REPLICANT     ----------------------------------------------------------------     Don't mess with the network settings in this image.  I'm using     it as a backup and quick restore mechanism for a single machine.     Which method do you prefer? [1]:    #直接回车You have chosen method 1 for assigning IP addresses. 接下来,让我们确认配置以及马上配置si_clusterconfig命令,直接回车即可。到此,整个黄金客户端镜像制作完成。可以到存储镜像的目录查看创建好的镜像。

Are you satisfied? ([y]/n):   Would you like to run the "si_clusterconfig" utility now? (y/[n]): y

linux 批量启动服务器,批量部署Linux操作系统systemimager 使用相关推荐

  1. Linux 高并发服务器实战 - 2 Linux多进程开发

    Linux 高并发服务器实战 - 2 Linux多进程开发 进程概述 概念1: 概念2: 微观而言,单CPU任意时刻只能运行一个程序 并发:两个队列交替使用一台咖啡机 并行:两个队列同时使用两台咖啡机 ...

  2. 如何连接Linux上的服务器 网络编程,Linux 网络编程 一

    一.网络编程基础 网络编程本身是一门很大的学问,涉及到的东西也很多,尤其是各种协议.先看图: 正如上图所示,网络编程中包含五大层面(也有区分六个层面),从应用层到物理层可以明显看出 越往下越接近计算机 ...

  3. linux搭建web服务器原理,【LINUX】linux搭建web服务器

    linux httpd 假设服务器地址为192.168.80.20/241.将准备安装的httpd软件包共享给everyone, (1)在linux上mount.cifs  //真机IP地址/共享文件 ...

  4. Linux Deploy:在Android上部署Linux

    2019独角兽企业重金招聘Python工程师标准>>> PS: 打算在家里的旧安卓手机上安装linux,之前一直尝试使用complex Linux Installer,在我的泛泰A8 ...

  5. linux tomcat启动失败的原因,Linux平台Tomcat启动失败问题排查

    部署在 Linux 服务器上边的 Tomcat服务通常在项目更新的时候需要重新启动,但是会由于各种原因,导致 Tomcat 启动失败,本文将以Linux 发行版 centOS 7 系统为例介绍两种 T ...

  6. linux命令启动程序,菜鸟学Linux命令:nohup命令启动程序

    在UNIX/LINUX中,普通进程用&符号放到后台运行,如果启动该程序的控制台logout,则该进程随即终止. 要实现守护进程,一种方法是按守护进程的规则去编程,比较麻烦: 另一种方法是仍然用 ...

  7. 手机装Linux开mc服务器,在Debian Linux上开启MineCraft(MC)服务器的1点经验

    在Debian Linux上开启MineCraft(MC)服务器的一点经验 我很喜欢MineCraft这个游戏,以前都用MClauncher自己做服务器自己玩,现在想和小伙伴们一起玩,正好我也有个无风 ...

  8. Linux 高并发服务器实战 - 1 Linux系统编程入门

    Linux 高并发服务器实战-1Linux系统编程入门 在本机和服务器端设置公共密钥(配置免密登录) 在本机cmd里输入 ssh-keygen -t rsa,生成本机的公密钥 在服务器端里也配置 ss ...

  9. Linux内核启动去掉企鹅,修改linux内核kernel开机logo(小企鹅)

    修改linux内核kernel的开机图片(原为小企鹅图片). 转载请注明出处:http://blog.csdn.net/wang_zheng_kai 导航制导与控制实验室 2014年12月10日 本文 ...

最新文章

  1. 报名 | 面向智慧城市的人本尺度城市形态:理论、方法与实践讲座
  2. 【 C 】回调函数简记
  3. Mac OS—苹果搭建Android开发环境
  4. 【Groovy】集合遍历 ( 调用集合的 any 函数判定集合中是否有指定匹配规则的元素 | 代码示例 )
  5. linux mysql 操作命令
  6. STM32 ADC采样使用内部参考电压
  7. Jenkins配置Findbugs做源代码安全扫描
  8. Scala-Unit6-final/type关键字、样例类样例对象
  9. mysql死锁语句_记一次神奇的Mysql死锁排查
  10. 2018年1月19日 第七次小组会议
  11. 年薪201万!华中科大AI博士生入选华为天才少年计划!
  12. maven的Lifecycle生命周期
  13. VC++运行库安装难题
  14. YOLOV3算法详解
  15. 荐书 | 心理学如何编程,看看这9本书
  16. 企业发布重要通知短信收不到该怎么办
  17. 汉诺塔(内部+伪图形)
  18. 简体繁体转换功能php,php如何实现简体繁体转换-PHP问题
  19. 关于公网IP和私有IP的区别
  20. 在html中 常见的块级元素有哪些,常见的css块级元素有哪些

热门文章

  1. Java数据结构与算法(25) - ch11哈希(双重哈希)
  2. GNS3错误7200:无法开始Dynamips于端口7200
  3. SQL Server 2005——下一代的数据管理和分析软件[转]
  4. 分享一个异步发送邮件的类
  5. Shell:字符串操作
  6. DOS配合FastCopy实现远程增量备份
  7. SNMPM 配置 [linux windows solaris]
  8. Quartz.net官方开发指南 第二课:Jobs And Triggers
  9. pta 输出三角形字符阵列_PTA实验6-8 简单计算器 (20分)
  10. 虚拟机vcenter如何增加磁盘_vSphere 6 下创建数据库RAC虚拟机共享磁盘