Ovirt4.3简易搭建

一、准备工作:
准备两台机器一台oVirt Engine管理节点
一台oVirt iNode计算节点
给oVirt Engine虚拟机4G内存
inode节点四个处理器2G内存
oVirt Engine可以使用克隆机器
oVirt inode可以不可以使用克隆机器需要重新装一台Centos7。
1、修改主机名
[root@Virt ~]# hostname Virt
[root@Virt ~]# bash
[root@Virt ~]# vim /etc/hostname
在这里插入图片描述

2、配置Centos7网络环境可以ping通www.baidu.com
使用VMnet8
[root@Virt ~]# vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
在这里插入图片描述
[root@Virt ~]# /etc/init.d/network restart
3、更换阿里云yum源,先将已有的repo文件移动到bak目录下
[root@Virt ~]# yum install wget -y
[root@Virt ~]# cd /etc/yum.repos.d/
[root@Virt yum.repos.d]# ls
[root@Virt yum.repos.d]# mv abc.repo bak/(根据自身情况)
[root@Virt yum.repos.d]# mv CentOS-* bak/
[root@Virt yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo
4、关闭主机防火墙
[root@Virt ~]# systemctl stop firewalld
[root@Virt ~]# systemctl disable firewalld
二、安装oVirt引擎包
1、在开始安装oVirt之前,添加官方存储库:
[root@Virt ~]# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
[root@Virt ~]# yum update
[root@Virt ~]# yum install ovirt-engine
[root@Virt ~]# 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 machine? (Yes, No) [Yes]:yes

Please note: Data Warehouse is required for the engine. If you choose to not configure it on this host, you have to configure it on a remote host, and then configure the engine on this host so that it can access the database of the remote Data Warehouse host.
Configure Data Warehouse on this host (Yes, No) [Yes]:yes

Configure VM Console Proxy on this host (Yes, No) [Yes]:yes

Configure ovirt-provider-ovn (Yes, No) [Yes]:yes

Host fully qualified DNS name of this server [autodetected host name]:Virt

Setup can automatically configure the firewall on this system.
Note: automatic configuration of the firewall may overwrite current settings.
NOTICE: iptables is deprecated and will be removed in future releases
Do you want Setup to configure the firewall? (Yes, No) [Yes]:yes

Where is the DWH database located? (Local, Remote) [Local]:Local

Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:Automatic

Where is the Engine database located? (Local, Remote) [Local]:Local

Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications.
Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:Automatic

Engine admin password:123qwe!@#
Confirm engine admin password:123qwe!@#

Application mode (Both, Virt, Gluster) [Both]:Both

Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications.
Do you wish to set the application as the default web page of the server? (Yes, No) [Yes]:Yes

Setup can configure apache to use SSL using a certificate issued from the internal CA.
Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:Automatic

Please choose Data Warehouse sampling scale:
(1) Basic
(2) Full
(1, 2)[1]:1

Please confirm installation settings (OK, Cancel) [OK]:OK

三、修改host文件
[root@Virt ~]# vim /etc/hosts
在这里插入图片描述

本机hosts文件
在这里插入图片描述

此时便可以访问ovirt管理页面
在这里插入图片描述
此时已经成功一半
四、配置oVirt inode
Ovirt Node支持两种部署方式,可由普通Linux系统安装VDSM和KVM服务组建Node节点,也可以在服务器之间安装oVirt Node定制的Linux操作系统。本次部署采用由普通Linux系统部署服务的方法。
1、准备工作
修改主机名
[root@inode ~]# hostname inode
[root@inode ~]# bash
[root@inode ~]# vim /etc/hostname
在这里插入图片描述
配置hosts文件
[root@inode ~]# vim /etc/hosts
在这里插入图片描述
修改本地hosts文件
在这里插入图片描述
192.168.218.131 inode
2、配置网络环境
更换yum源(具体步骤参照oVirt Engine)
关闭防火墙
selinux改为permissive
[root@inode ~]# vim /etc/selinux/config
在这里插入图片描述

3、在开始安装inode之前,同样添加官方存储库:
[root@Virt ~]# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
[root@inode ~]# yum -y install vdsm
五、安装节点主机
访问ovirt页面登录用户名使用admin
密码是安装Engine时设置的密码我这里是123qwe!@#
在这里插入图片描述
添加数据中心
在这里插入图片描述
根据提示
名称根据自己喜好填写
描述、注释可以不写不影响实验
在这里插入图片描述
点击确定配置集群
点击配置集群
在这里插入图片描述
描述、注释可不写
CPU架构我这里是X86_64
其他可参照图示在这里插入图片描述
配置主机在这里插入图片描述
进入计算->主机选项安装主机大概需要20~30分钟左右。
总结报错原因:
一、没有关闭防火墙,更改selinux。
二、本地host文件没有写正确。
在这里插入图片描述

名称可凭自己喜好填写
Hostname是自己inode节点地址
密码是inode节点主机的root用户密码

配置完数据中心是不会上线的,需要接下来配置存储域

六、添加存储域
配置NFS存储
[root@inode ~]# mkdir -pv /export/iso
该目录用于存放系统镜像
[root@inode ~]# mkdir -pv /export/data
该目录用于存放虚拟机数据
[root@inode ~]# chown 36:36 -R /export/
赋予VDSM权限
[root@inode ~]# chmod 0755 -R /export/
赋予执行权限
[root@inode ~]# vim /etc/exports
[root@inode ~]# cat /etc/exports在这里插入图片描述
[root@inode ~]# systemctl start nfs.service
启动nfs服务
[root@inode ~]# systemctl enable nfs.service
设置nfs服务开机自启

ovirt管理界面新建存储域
这个域用于存放镜像
在这里插入图片描述

这个域用于存放虚拟机数据
在这里插入图片描述

注意导出路径是inode节点的赋予VDSM的那个目录
然后点击确定
此时数据中心不出意外状态会变为UP
在这里插入图片描述

八、上传镜像文件
ovirt管理页面找到磁盘
然后右上角新建
先添加一个5G大小的磁盘
在这里插入图片描述

然后右上角找到上传,我这里将Winxp镜像上传
在这里插入图片描述

上传之前确保ovirt-imageio-proxy服务正确配置,如果配置不正确的话请重启ovirt-engine服务
重启虚拟机或者重启本机,解决该问题,上传成功之后
在这里插入图片描述

状态会显示为OK
九、创建虚拟机
在这里插入图片描述

实例镜像指定之前创建5G大小的磁盘
windows下磁盘接口更改为IDE
在这里插入图片描述

添加两个VM网络接口

引导选项第一个设备为CD-ROM
附加CD打对勾启用引导菜单,然后点击确定
等带虚拟机添加之后便可以开启。
十、安装控制台
控制台设置如下
在这里插入图片描述

点击控制台客户端资源
进入这个链接
在这里插入图片描述

下载这个工具
在这里插入图片描述

安装之后点击
在这里插入图片描述

便会下载.vv文件使用刚才安装好的软件打开
在这里插入图片描述

便会到此界面,此时表明虚拟机已经创建成功。

在这里插入图片描述

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
要在Ubuntu上安装oVirt,可以按照以下步骤进行操作: 1. 首先,确保您的Ubuntu系统已经更新到最新版本。您可以使用以下命令进行系统更新: ``` sudo apt update sudo apt upgrade ``` 2. 安装oVirt引擎管理节点。执行以下命令来安装所需的软件包: ``` sudo apt install ovirt-engine ``` 3. 安装oVirt引擎数据库。默认情况下,oVirt使用PostgreSQL数据库。您可以使用以下命令来安装: ``` sudo apt install ovirt-engine-extension-aaa-ldap-setup ovirt-engine-extension-aaa-ldap ovirt-engine-dwh-setup ovirt-engine-sdk-python ovirt-engine-tools-backup ovirt-engine-webadmin-portal ovirt-engine-yubikey-setup ovirt-guest-agent-common ovirt-host-deploy ovirt-imageio-common ovirt-imageio-daemon ovirt-imageio-proxy ovirt-provider-ovn-common ovirt-provider-ovn-driver ovirt-provider-ovn-hosted-engine-ha ovirt-provider-ovn-provider ovirt-provider-ovn-vdsm ovirt-release-master ``` 4. 安装oVirt引擎虚拟化节点。执行以下命令进行安装: ``` sudo apt install ovirt-hosted-engine-ha ``` 5. 配置oVirt引擎。执行以下命令开始配置过程: ``` sudo engine-setup ``` 6. 按照引导程序的指示完成oVirt引擎的配置。您需要提供必要的信息,例如管理员密码、数据库配置等。 7. 完成配置后,您可以通过Web浏览器访问oVirt引擎的管理控制台。 请注意,以上步骤提供了安装oVirt引擎的基本过程。根据您的特定需求和环境,可能还需要进行其他配置和调整。建议您参考官方文档或oVirt社区以获取更详细和具体的信息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DevonL77

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值