Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1378497
  • 博文数量: 370
  • 博客积分: 10654
  • 博客等级: 中将
  • 技术积分: 4396
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-07 15:44
文章分类

全部博文(370)

文章存档

2012年(36)

2011年(195)

2010年(139)

分类: 虚拟化

2012-04-13 01:23:07

一Ovirt简介

Ovirt是什么?

Ovirt是一个开源的虚拟化管理平台,是redhat 虚拟化管理平台RHEV的开源版本。

Ovirt的构架是什么样的?

Ovirt由两部分组成,

客户端ovirt-node 类似于vmware esxi,是由fedaro 16订制而成。也可以在linux系统上安装vdsm服务而得到一个ovirt客户端。

管理端overt-engine 类似于 vmware vcenter,但是是基于web页面的。

Ovirt能做什么,不能做什么?

Ovirt现在已有的功能:

1. 对宿主机节点的管理,支持基于数据中心,集群的管理,比较有特色的一个功能是可以管理ilo idarc等硬件管理卡;

2. 对虚拟机的管理,可以完成虚拟机的创建、快照、删除、基于模版的克隆等常见操作;

3. 迁移,在线及离线迁移虚拟机;

4. 高可用,当一台宿主机宕机,在另外一台宿主机上自动开启虚机;

5. 宿主机、虚拟机性能查看及统计;

6. 支持nfs,iscsi,fc等存储方式;

7. 支持多端口的网口绑定;

8. 提供一个命令行,可以完成图形界面的大部分功能;

9. 活动目录集成;

10. 提供python api接口,可以api编程;

11. 没有授权限制;

和vmware相比,目前没有的功能:

1. 稳定目前较差,经常出现崩溃,连接出现问题;

2. 易用性较差,设计不人性化;

3. 没有cpu 内存很精细的调节限制功能;

4. 没有FT(Fault Tolerance)功能;

5. 宿主机、虚拟机性能查看及统计功能很简单,远没有vmware丰富;

6. 不支持分布式交换机;

二 Ovirt测试环境的搭建

本次测试环境:

硬件环境

Ovirt Node 1 Dell r610

CPU E5645 2颗(2.4G 6核)

内存 48G

硬盘 300G*2 raid 1

Ovirt Node 2 HP 380G7

CPU E5620 2颗(2.4G 4核)

内存 8G

硬盘 146G*4 raid 10

Ovirt engine vmware虚拟机

CPU 2颗2.4G

内存 4G

硬盘 255G

软件环境

Ovirt Node 1 安装f16 更新最新软件包,然后安装vdsm软件包

Ovirt Node 2 安装f16订制的ovirt-node-image 2.2.2版本

Ovirt engine 安装f16更新最新软件包,然后安装ovirt engine软件包

Ovirt配置

注意事项:因为ovirt的程序调用是用全局域名FQDN,因此应该保证每台测试机器的机器名能被解析,需要配置dns,或者确保/etc/hosts文件内容一致。

1 ovirt-engine 安装

1) 先将系统升级到最新

yum –y update

2) 下载ovirt的yum配置文件

wget -O /etc/yum.repos.d/ovirtengine.repo
 
3) 如果安装了classpathx-jaf组件,删除,因为会和ovirt使用的jboss冲突yum remove classpathx-jaf

 

4) 通过yum命令安装ovirt-engine

yum install overt-engine

5) 通过engine-setup 配置,会启动一个向导,按照提示操作

engine-setup

[root@ovirt yum.repos.d]# engine-setup

Welcome to oVirt Engine setup utility

HTTP Port [8080] :

HTTPS Port [8443] :

Host fully qualified domain name, note that this name should be fully resolvable [ovirt.engine] :

ovirt.engine did not resolve into an IP address

User input failed validation, do you still wish to use it? (yes|no): yes

Password for Administrator (admin@internal) :

Confirm password :

Database password (required for secure authentication with the locally created d atabase) :

Confirm password :

Organization Name for the Certificate: ovirttest

The default storage type you will be using ['NFS'| 'FC'| 'ISCSI'] [NFS] :

Should the installer configure NFS share on this server to be used as an ISO Dom ain? ['yes'| 'no'] [yes] :

Mount point path: /nfsios

Display name for the ISO Domain: iso

Firewall ports need to be opened.

You can let the installer configure iptables automatically overriding the curren t configuration. The old configuration will be backed up.

Alternately you can configure the firewall later using an example iptables file found under /usr/share/ovirt-engine/conf/iptables.example

Configure iptables ? ['yes'| 'no']: yes

oVirt Engine will be installed using the following configuration:

=================================================================

http-port: 8080

https-port: 8443

host-fqdn: ovirt.engine

auth-pass: ********

db-pass: ********

org-name: ovirttest

default-dc-type: NFS

nfs-mp: /nfsios

iso-domain-name: iso

override-iptables: yes

Proceed with the configuration listed above? (yes|no): yes

Installing:

Configuring oVirt-engine... [ DONE ]

Creating CA... [ DONE ]

Editing JBoss Configuration... [ DONE ]

Setting Database Security... [ DONE ]

Creating Database... [ DONE ]

Updating the Default Data Center Storage Type... [ DONE ]

Editing oVirt Engine Configuration... [ DONE ]

Configuring the Default ISO Domain... [ DONE ]

Configuring Firewall (iptables)... [ DONE ]

Starting JBoss Service... [ DONE ]

**** Installation completed successfully ******

(Please allow oVirt Engine a few moments to start up.....)

Additional information:

* There is less than 4 GB available free memory on the Host.

It is recommended to have at least 4 GB available memory to run the RHEV Manage r.

* SSL Certificate fingerprint: 0F:C8:10:80:CC:D6:09:51:B7:85:62:50:60:46:61:B5: 22:7D:17:ED

* SSH Public key fingerprint: 57:5b:03:c4:e8:cd:48:b4:2f:72:16:83:16:fa:79:ad

* A default ISO share has been created on this host.

If IP based access restrictions are required, please edit /nfsios entry in /e tc/exports

* The firewall has been updated, the old iptables configuration file was saved to /usr/share/ovirt-engine/conf/iptables.backup.102859-02162012_26054

* The installation log file is available at: /var/log/ovirt-engine/engine-setup _2012_02_16_10_26_24.log

* Please use the user "admin" and password specified in order to login into oVi rt Engine

* To configure additional users, first configure authentication domains using t he 'engine-manage-domains' utility

* To access oVirt Engine please go to the following URL: 80

[root@ovirt yum.repos.d]#

6) 安装spice

yum install spice* -y

安装完成后,在浏览器里输入,就可以访问ovirt-engine
 

阅读(4915) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~