Ovirt4.3在虚拟机上的部署实现及在node节点上创建虚拟机

本博客介绍了如何在CentOS虚拟机上部署Ovirt4.3,包括ovirt-engine的安装配置、NFS存储的设置以及在node节点上创建虚拟机的详细步骤。首先,通过导入ovirt源、关闭防火墙和SeLinux来准备环境。然后,安装并运行ovirt-engine,配置客户端映射,并访问管理平台。接着,部署ovirt node,安装节点并将其添加到engine中。最后,创建NFS存储域,上传镜像并在node节点上创建虚拟机,通过virt-viewer运行虚拟机。
摘要由CSDN通过智能技术生成

环境准备

虚拟机软件:Vmware Workstation 15 pro
虚拟机版本:CentOS-7-x86_64-Minimal-1908
CPU:2*2
内存:4G
磁盘:60G
安装时由于ovirt-engine单独部署在主机上,所以要准备两台CentOS,分别部署ovirt-engine以及node节点。

  • engine节点主机IP:192.168.126.131
  • node节点主机IP:192.168.126.132

由于是在虚拟机环境中搭建ovirt,所以要在VMware中开启虚拟化内核:
开启虚拟化内核

ovirt-engine部署

导入ovirt源

[root@localhost /]# yum install https://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
[root@localhost /]# yum update

配置基础环境

  • 关闭防火墙
[root@localhost /]# systemctl stop firewalld
[root@localhost /]# systemctl disable firewalld
  • 关闭SeLinux
    编辑 /etc/selinux/config,将SELINUX=enforcing 更改为 SELINUX=disabled
[root@localhost ~]# vim /etc/selinux/config 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
  • 配置host
[root@localhost /]# vim /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.126.131 engine.com
192.168.126.132 node.com
  • 修改主机名
hostnamectl --static set-hostname engine.com
  • 重启主机
[root@localhost /]# reboot

安装ovirt engine包

[root@engine ~]# yum install ovirt-engine

执行后发现报错:

Error downloading packages:
  python-testtools-1.8.0-2.el7.noarch: [Errno 256] No more mirrors to try.
  python-unittest2-1.0.1-1.el7.noarch: [Errno 256] No more mirrors to try.

解决办法是在 http://rpm.pbone.net里下载上面两个包,上传到主机上自行安装:

[root@engine local]# yum localinstall python-unittest2-1.0.1-1.el7.noarch.rpm -y
[root@engine local]# yum localinstall python-testtools-1.8.0-2.el7.noarch.rpm -y

完成后重新执行:

[root@engine ~]# yum install ovirt-engine

配置并运行ovirt engine

[root@engine local]# Sengine-setup
[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20200420133832-x8ofhs.log
          Version: otopi-1.8.4 (otopi-1.8.4-1.el7)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup (late)
[ INFO  ] Stage: Environment customization
         
          --== PRODUCT OPTIONS ==--
         
          Set up Cinderlib integration
          (Currently in tech preview)
          (Yes, No) [No]: 
          Configure Engine on this host (Yes, No) [Yes]: 
          Configure ovirt-provider-ovn (Yes, No) [Yes]: 
          Configure WebSocket Proxy on this host 
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值