Jump to: navigation, search

Difference between revisions of "Main Page/cobbler"

Line 1: Line 1:
 
#! /bin/bash
 
 
# `buildenv.sh` is a script used to prepare build environment for building iso.
 
 
# check os type
 
os_type=`cat /etc/issue | head -1 |awk '{print $1}'`
 
if [ "$os_type" != "CentOS" -a "$os_type" != "Fedora" ];then
 
  echo "Sorry, not support this OS by now."
 
  exit 1
 
fi
 
 
# prepare repo for OS
 
if [ "$os_type" == "CentOS" ];then
 
  wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
 
  if [ ! -f CentOS6-Base-163.repo ];then
 
    echo "download repo file failed"
 
    exit 1
 
  fi
 
  mv CentOS6-Base-163.repo /etc/yum.repos.d/
 
 
  wget http://ftp.sjtu.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
 
  if [ ! -f epel-release-6-8.noarch.rpm ];then
 
    echo "download repo file failed"
 
    exit 1
 
  fi
 
  rpm -ivh epel-release-6-8.noarch.rpm
 
  rm -rf epel-release-6-8.noarch.rpm
 
 
  wget http://openstack.wiaapp.com/download/openstack-ovirt-node-deps.repo
 
  if [ ! -f openstack-ovirt-node-deps.repo ];then
 
    echo "download repo file failed"
 
    exit 1
 
  fi
 
  mv openstack-ovirt-node-deps.repo /etc/yum.repos.d/ovirt-node-deps.repo
 
 
elif [ "$os_type" == "Fedora" ];then
 
  wget http://mirrors.163.com/.help/fedora-163.repo
 
  if [ ! -f fedora-163.repo ];then
 
    echo "download repo file failed"
 
    exit 1
 
  fi
 
  mv fedora-163.repo /etc/yum.repos.d/
 
 
  wget http://mirrors.163.com/.help/fedora-updates-163.repo
 
  if [ ! -f fedora-updates-163.repo ];then
 
    echo "download repo file failed"
 
    exit 1
 
  fi
 
  mv fedora-updates-163.repo /etc/yum.repos.d/
 
fi
 
yum clean all
 
 
# install dependent packages for building iso.
 
pkgs="gcc make autoconf automake gettext-devel git python-cherrypy python-cheetah libxml2-python python-imaging PyPAM m2crypto python-jsonschema rpm-build python-psutil python-ethtool sos python-ipaddr pytho
 
n-lxml nfs-utils iscsi-initiator-utils libxslt pyparted nginx python-unittest2 python-ordereddict hardlink pykickstart createrepo livecd-tools appliance-tools appliance-tools-minimizer"
 
 
for pkg in $pkgs
 
do
 
  yum install -y $pkg
 
done
 
 
发行说明:
 
Litevirt-hypervisor是一个完整的虚拟化平台,用户可以使用此平台快速构建虚拟化环境。
 
 
基于开源项目ovirt-node构建的轻量化、易使用、高性能虚拟化平台:
 
轻量化:ISO镜像<200MB
 
易使用:基于文本的GUI安装、配置界面,支持网络、存储的配置
 
高性能:基于KVM的虚拟化平台
 
 
基于开源项目kimchi构建的虚拟化管理界面:
 
通过WebUI快速部署镜像,使用镜像创建虚拟机
 
 
提供一键式工具,快速搭建编译镜像的环境,快速编译ISO镜像文件
 
 
补丁:
 
Kimchi:在社区版基础上,新增“通过http协议上传镜像到服务器”功能,方便用户部署镜像
 
 
编译ISO镜像:
 
 
 
安装ISO镜像:
 
 
 
(2)文章tag改一下,格式调整一下,缩略图加上
 
(2)文章tag改一下,格式调整一下,缩略图加上
  
Line 89: Line 6:
  
 
编译环境检测:git rpm,是否centos6.5
 
编译环境检测:git rpm,是否centos6.5
 +
 +
curl -s https://raw.githubusercontent.com/litevirt/litevirt-hypervisor/hypervisor/hypervisor/buildenv.sh | bash /dev/stdin

Revision as of 03:00, 10 October 2014

(2)文章tag改一下,格式调整一下,缩略图加上

github上对应的资料也都改一下

配置网络、存储??

编译环境检测:git rpm,是否centos6.5

curl -s https://raw.githubusercontent.com/litevirt/litevirt-hypervisor/hypervisor/hypervisor/buildenv.sh | bash /dev/stdin