运行平台:rhel5.4-i386
Vmware workstation 6.5.2
Opennebula[ONE]是一个提供虚拟技术平台的管理界面。Opennebula是开放原始码的虚拟基础设备引擎,用来动态部署虚拟机器在一群实体资源上,opennebula最大的特色在于将虚拟平台从单一实体机器到一群实体资源。可支持XEN,KVM也可透过ONE控制AMAZON EC2上的机器。
架构图:
[attachimg]404933[/attachimg]
所需安装的软件包:
ruby >= 1.8.6 and < 1.9.0
sqlite3 >= 3.5.2
xmlrpc-c >= 1.06
openssl >= 0.9
ssh
Development versions of the sqlite3, xmlrpc-c and openssl packages, if your distribution does not install them with the libraries.
scons >= 0.97
g++ >= 4
flex >= 2.5 (optional, only needed to rebuild the parsers)
bison >= 2.3 (optional, only needed to rebuild the parsers)
First install rubygems and ruby development libraries:
ruby-dev
rubygems
rake
make
具体步骤:
Ruby
We can install the standard packages directly with yum:
$ yum install ruby ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc
To install rubygems we must activate the EPEL repository:
$ wget [url][/url]
$ yum localinstall epel-release-5-3.noarch.rpm
$ yum install rubygems
Once rubygems is installed we can install the following gems:
gem install nokogiri rake xmlparser
scons
The version that comes with Centos is not compatible with our build scripts. To install a more recent version you can download the RPM at:
[url][/url]
$ wget [url][/url]
$ yum localinstall scons-1.2.0-1.noarch.rpm
xmlrpc-c
You can download the xmlrpc-c and xmlrpc-c packages from the rpm repository at [url][/url]
$ wget [url][/url]
$ wget [url]http://centos.karan.org/el5/extras/testing/i386/RPMS/xmlrpc-c-devel-1.06.18-1.el5.kb.i386.rpm[/url]
$ yum localinstall xmlrpc-c-1.06.18-1.el5.kb.i386.rpm xmlrpc-c-devel-1.06.18-1.el5.kb.i386.rpm
在编译安装sqlite之前,需要安装GCC开发包
yum install gcc* -y
sqlite
This package should be installed from source, you can download the tar.gz from [url][/url] It was tested with sqlite 3.5.9.
$ wget [url][/url]
$ tar xvzf sqlite-amalgamation-3.6.17.tar.gz
$ cd sqlite-3.6.17/
$ ./configure
$ make
$ make install
ONE_AUTH Needs to point to a file containing just a single line stating “username:password”. If ONE_AUTH is not defined, $HOME/.one/one_auth will be used instead. If no auth file is present, OpenNebula cannot work properly, as this is needed by the core, the CLI, and the cloud components as well.
ONE_LOCATION
If OpenNebula was installed in self-contained mode, this variable must be set to . Otherwise, in system wide mode, this variable must be unset. More info on installation modes can be found here
ONE_XMLRPC
PATH
$ONE_LOCATION/bin:$PATH if self-contained. Otherwise this is not needed.
阅读(2001) | 评论(0) | 转发(0) |