系统环境centos7,连接外网
[root@localhost ~]# yum -y update
要安装oVirt4.0 就安装 ovirt-release40.rpm;要安装oVirt 3.6 就安装 ovirt-release36.rpm,以此类推:
如:
# yum install http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm
# yum install http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm
此处安装最新4.0版本:
[root@localhost ~]# yum installhttp://plain.resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm
[root@localhost ~]# yum -y install ovirt-engine [root@localhost ~]# engine-setup ===========根据提示选择================ Configure Engine on this host (Yes, No) [Yes]: yes Configure Image I/O Proxy on this host? (Yes, No) [Yes]: yes Configure WebSocket Proxy on this host (Yes, No) [Yes]: yes Please note: Data Warehouse is required for the engine. If you choose tonot configure it on this host, you have to configure it on a remote host, andthen configure the engine on this host so that it can access the database ofthe remote Data Warehouse host. Configure Data Warehouse on thishost (Yes, No) [Yes]: yes Configure VM Console Proxy on this host (Yes, No) [Yes]: Host fully qualified DNS name of thisserver [localhost.localdomain]: test2.ovirt.com Engine admin password: Confirm engine admin password: --== CONFIGURATION PREVIEW ==-- Application mode : both Default SAN wipe after delete : False Firewall manager : firewalld Update Firewall : True Host FQDN : test2.ovirt.com Engine database secured connection : False Engine database host : localhost Engine database user name : engine Engine database name : engine Engine database port : 5432 Engine database host name validation : False DWH database secured connection : False DWH database host : localhost DWH database user name : ovirt_engine_history DWH database name : ovirt_engine_history DWH database port : 5432 DWH database host name validation : False Engine installation : True PKI organization : ovirt.com Configure local Engine database : True Set application as default page : True Configure Apache SSL : True DWH installation : True Configure local DWH database : True Engine Host FQDN : test2.ovirt.com Configure Image I/O Proxy : True Configure VMConsole Proxy : True Configure WebSocket Proxy : True Please confirm installation settings (OK, Cancel) [OK]: ok [ INFO ] Execution of setupcompleted successfully ===================安装成功======================= 注意:域名需能够解析。添加host文件 [root@localhost ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.0.224 test2.ovirt.com
注意4.0默认全域名限制,必须通过域名登录。第一次登录异常慢,暂不知何故。
环境centos7,最小安装,连接外网。
通过yum安装ovirt-release4.0,与ovirt-engine对应。
[root@localhost ~]# yum localinstall http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm
[root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# systemctl disable firewalld.service #永久关闭
注意:
1)确认主机节点支持虚拟化:
[root@localhost ~]# cat /proc/cpuinfo |grepvmx #没回显说明不支持虚拟化
如果使用虚拟机做测试请开启嵌套虚拟化:
http://dingtongxue1990.blog.51cto.com/4959501/1851965
2)若客户端没有安装tar命令,请安装。
# yum install tar
登录到ovirt-engine管理中心
这里使用nfs,添加存储域时先要配置一台nfs服务器。nfs服务器IP:192.168.0.4,共享目录/home/iso220和/home/nfs220。
nfs服务器配置请查看:http://dingtongxue1990.blog.51cto.com/4959501/1852222
1)添加数据域
2)添加iso域
1)上传镜像
先登录到ovirt engine,将操作系统镜像上传到nfs服务器上。
[root@localhost home]# ls #这是在192.168.0.224上,即ovirtengine服务器上。 CentOS-7-x86_64-DVD-1511.iso test [root@localhost home]# engine-iso-uploaderupload -i iso_test CentOS-7-x86_64-DVD-1511.iso Please provide the REST API password forthe admin@internal oVirt Engine user (CTRL+D to abort): Uploading, please wait... Uploading:[########################################] 100% INFO: CentOS-7-x86_64-DVD-1511.iso uploadedsuccessfully #格式:engine-iso-uploaderupload -i local-iso-share [file1] [file2] .... [fileN]。
2)新建虚拟机
在高级选项中可以选择配置cpu、内存等其他配置。
3)运行虚拟机
使用virt-viewer打开下载文件,virt-viewer下载地址:https://virt-manager.org/download/
ovirt官方安装文档:
http://www.ovirt.org/documentation/quickstart/quickstart-guide/#install-hosts
中文翻译版:
http://blog.csdn.net/cmzsteven/article/details/51627341
virt-viewer下载地址
https://virt-manager.org/download/
注意项:
1)ovirt engine使用域名限制,需保证域名能够解析
2)安装node主机时要配置防火墙策略或关闭防火墙
3)node主机需支持虚拟化,使用虚拟机测试请开启嵌套虚拟化
http://dingtongxue1990.blog.51cto.com/4959501/1851965
本文出自 “丁同学1990” 博客,请务必保留此出处http://dingtongxue1990.blog.51cto.com/4959501/1852647
原文地址:http://dingtongxue1990.blog.51cto.com/4959501/1852647