最新消息:

XCP/XenServer自动化部署脚本分享

Xen admin 3904浏览 0评论

之前我曾经写过两篇关于XCP/XenServer的文章:
XCP/XenServer命令行方式自动化安装VM:http://heylinux.com/archives/2795.html
XCP/XenServer自动化创建并初始化VM:http://heylinux.com/archives/2768.html

在这两篇文章中,详细介绍了如何自动化安装VM,创建模板并初始化VM。
在实际的工作中,我编写了相应的脚本来完成这些工作,并在6个小时内批量创建了400+个不同配置的VM。
具体的脚本路径为:
自动化安装初始VM
https://github.com/mcsrainbow/shell-scripts/blob/master/scripts/xcp_ksinstvm/ksinstvm.sh
自动化批量创建VM
https://github.com/mcsrainbow/python-demos/blob/master/scripts/xenserver.py
自动化VM网络配置
https://github.com/mcsrainbow/shell-scripts/blob/master/scripts/xcp_bootstrap/bootstrap.sh
自动化VM磁盘扩容
https://github.com/mcsrainbow/shell-scripts/blob/master/scripts/xcp_extendlv/extendlv.sh
获取指定VM的VNC终端,用于脚本故障时连接到本地终端进行调试(效果相当于Windows上XenCenter Console)
https://github.com/mcsrainbow/shell-scripts/blob/master/scripts/xcp_getvnc/getvnc.sh

 

转载请注明:爱开源 » XCP/XenServer自动化部署脚本分享

您必须 登录 才能发表评论!