oVirt4.3.8部署教程(单台主机All in one)

注意

本次部署是采用的一台虚拟机(在一套在用的ovirt环境里,已开启嵌套虚拟化,主要为了截图方便);

由于只使用一台主机,所以将hostengine虚机部署在这台主机上的nfs存储里;

本版本(oVirt4.3.8)已在物理服务器上部署验证通过,未发现问题;

[重要提示]

如果你是在vmware workstation里部署,请查阅这篇文章《在vmware里部署ovirt遇到的问题及解决办法

环境准备

一台物理主机或一台虚拟机(要求支持嵌套虚拟化);

配置要求:CPU>=四核,内存>=16GiB,硬盘>=300GiB;

安装包准备

从本站安装包下载 (强烈建议从分享的网盘链接下载,官网速度慢)

注意这两个包都下载下来:

ovirt-node-ng-installer-4.3.8-2020012711.el7.iso (node安装包)

ovirt-engine-appliance-4.3-20200127.1.el7.x86_64.rpm (engine rpm包)

安装ovirt-node

使用上面下载的ovirt-node的iso引导安装ovirt-node,过程如下:

oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)

ovirt-node iso安装完成后重启即可。

配置nfs存储

注意:这里是在node主机上启个nfs服务(不需要外部存储),用于存放engine虚机的镜像。

ovirt-node重启后ssh进入该主机,执行以下步骤配置nfs存储。(该存储用于部署engine)

cd /data/images/
mkdir nfs
chown vdsm:kvm nfs       //这一步改权限的操作很重要

编辑/etc/exports文件

vi /etc/exports

增加如下内容:

/data/images/nfs  *(rw,sync,no_root_squash)

重启nfs服务并设置为开机自启动

systemctl restart nfs
systemctl enable nfs

部署engine

将上面下载的ovirt-engine-appliance rpm安装包拷贝到ovirt-node这台机器里,放在/root/目录下即可,执行以下命令安装:

rpm -ivh ovirt-engine-appliance-4.3-20200127.1.el7.x86_64.rpm

配置node和engine的域名映射,打开/etc/hosts文件

vi /etc/hosts

增加域名映射,注意node根据自己在安装iso时填的写,engine的域名随便起记住即可。

192.168.105.234   ovirt438node
192.168.105.235   engine235.com

完事使用浏览器打开ovirt-node的web控制台界面,http://[IP]:9090,使用root账户登录,如下图:

oVirt4.3.8部署教程(单台主机All in one)

点击“start”开始部署hosted-engine;

oVirt4.3.8部署教程(单台主机All in one)

填写engine虚机的信息,根据上图填写即可,填写完成点击“Next”;

oVirt4.3.8部署教程(单台主机All in one)

填写Admin帐号的密码,这个Admin帐号是用来登录WEB管理台的管理员帐号,点击“Next”;

oVirt4.3.8部署教程(单台主机All in one)

确认下信息无误后,点击“Prepare VM”;

oVirt4.3.8部署教程(单台主机All in one)

开始准备engine虚机,需要等待一段时间,根据硬件配置,大概10-30分钟;

oVirt4.3.8部署教程(单台主机All in one)

出现上图后,点击“Next”,配置存储;

oVirt4.3.8部署教程(单台主机All in one)

存储类型选择“NFS”,连接地址填写“[IP]:/data/images/nfs”(这里的IP写ovirt-node机器的ip,路径是我们上面配置的的那个nfs导出目录),点击“Next”;

oVirt4.3.8部署教程(单台主机All in one)

确认下信息无误后,点击“Finish Deployment”即可,进入最后的部署过程;

oVirt4.3.8部署教程(单台主机All in one)

根据机器配置情况,大概需要10-30分钟;

oVirt4.3.8部署教程(单台主机All in one)

部署完成!

访问ovirt-engine WEB管理台

因为engine的管理台默认只能通过域名访问,所以要在你电脑的hosts文件中增加engine的域名映射,windows10的hosts文件路径如下:

C:\Windows\System32\drivers\etc\hosts

在此文件中增加engine的IP和域名映射:

192.168.105.235    engine235.com

(注意要使用管理员权限修改,推荐使用nodepad++编辑器)

打开浏览器访问https://engine235.com,使用admin帐号登录,密码为上面部署时配置的。

oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)

注意:到这里部署虽然结束了,但是目前只有一个nfs存储域,如果后面将虚机创建在nfs存储域的话会很慢很卡,所以如果你还想继续试用的话,可以到【计算】—【数据中心】中将这个数据中心的存储类型改为“本地”,然后到【存储】—【域】中 新建一个本地类型的数据存储域,路径填“/data/images/rhev”。后面创建虚机时就可以使用这个存储域了,会快。

oVirt4.3.8部署教程(单台主机All in one)
oVirt4.3.8部署教程(单台主机All in one)

PS:转载文章请注明来源:oVirt中文社区(www.cnovirt.com)

扫码?加好友拉你进oVirt技术交流群!

57 条回复 A 作者 M 管理员 E
  1. 大佬 请教个问题 在主机部署的时候 Command returned failure code 1 during SSH session 一直报这个错误 如何解决?

    • 主机部署具体哪一步?
      主机用 的物理机还是虚机?

  2. 有个问题 我看默认 engine 虚拟机创建时,ovirt脚本是创建的NAT模式的虚拟网络(只创建了virbr0、birbr0-nic和vnet0),这里为啥主机和engine虚拟机是同一网段的,而且外部可以直接访问?
    192.168.105.234 ovirt438node
    192.168.105.235 engine235.com

    • hostedengine用的是桥接,创建了vnet0挂到ovirtmgmt桥上,ovirtmgmt是与主机上的网卡做的桥。
      其它虚机也是。

    • 为啥我在 超融合部署时 在宿主机上没看到这个网桥 只有我上面说的三个设备

    • 不应该的,ovirt的主机节点上是有的,你再确认下看看。

    • 我卡在 另一个问题上 查看宿主机linux网络情况很多次了 没看到有创建ovirtmgmt

    • vmware workstations里部署确实存在此问题

    • 如果是物理机应该怎么选?

    • 物理机的话用哪个接口做管理网就选哪个,要确保用于做管理网的这个网口已连接并配置了静态IP。

  3. 这里能上传图片吗

    • 能上传

    • 我的环境是vmware workstation 12,当前虚拟机是桥接到无线网卡,再嵌套ovirt-engine虚拟机
      [root@ovirt ~]# ip a s
      1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      2: ens33: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
      link/ether 00:0c:29:7a:71:74 brd ff:ff:ff:ff:ff:ff
      inet 172.16.25.224/23 brd 172.16.25.255 scope global noprefixroute dynamic ens33
      valid_lft 73879sec preferred_lft 73879sec
      inet6 fe80::414d:bd4b:13cd:8e8a/64 scope link noprefixroute
      valid_lft forever preferred_lft forever
      18: virbr0: mtu 1500 qdisc noqueue state UP group default qlen 1000
      link/ether 52:54:00:16:42:06 brd ff:ff:ff:ff:ff:ff
      inet 192.168.222.1/24 brd 192.168.222.255 scope global virbr0
      valid_lft forever preferred_lft forever
      19: virbr0-nic: mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
      link/ether 52:54:00:16:42:06 brd ff:ff:ff:ff:ff:ff
      22: ;vdsmdummy;: mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 4e:80:3d:07:16:11 brd ff:ff:ff:ff:ff:ff
      23: ovs-system: mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 4a:0e:c0:5b:c4:63 brd ff:ff:ff:ff:ff:ff
      24: br-int: mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 42:60:a0:da:00:46 brd ff:ff:ff:ff:ff:ff
      25: vnet0: mtu 1500 qdisc pfifo_fast master virbr0 state UNKNOWN group default qlen 1000
      link/ether fe:16:3e:3a:02:10 brd ff:ff:ff:ff:ff:ff
      inet6 fe80::fc16:3eff:fe3a:210/64 scope link
      valid_lft forever preferred_lft forever
      [root@ovirt ~]# brctl show
      bridge name bridge id STP enabled interfaces
      ;vdsmdummy; 8000.000000000000 no
      virbr0 8000.525400164206 yes virbr0-nic
      vnet0

  4. 有没有添加node主机的步骤

    • 我抽空会写一篇添加主机的文档。

    • 最近在尝试,安装环境没有互联网,导致添加主机失败,有什么办法在不连接源的情况下添加主机吗

    • 赶紧写吧,我添加node主机,失败N次了,总是提示Cannot find a valid baseurl for repo,不知道是不是官方的repo太慢了,有什么好的办法没,能不能离线安装啊!!!!!

    • 先清空待添加主机的yum源,再添加主机。
      参考这篇文章http://www.cnovirt.com/archives/540

  5. 机器配置太老,不支持hvm类型的虚拟化
    INFO ] TASK [ovirt.hosted_engine_setup : Create cloud init user-data and meta-data files]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Create ISO disk]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Create local VM]
    [ ERROR ] fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“virt-install”, “-n”, “HostedEngineLocal”, “–os-variant”, “rhel7”, “–virt-type”, “kvm”, “–memory”, “4096”, “–vcpus”, “2”, “–network”, “network=default,mac=00:16:3e:00:38:55,model=virtio”, “–disk”, “/var/tmp/localvmnKyWdV/images/be6bac1e-029e-455d-a1f4-89641f59d11d/e988216f-1d6d-4383-8988-41cc3ca70f54”, “–import”, “–disk”, “path=/var/tmp/localvmnKyWdV/seed.iso,device=cdrom”, “–noautoconsole”, “–rng”, “/dev/random”, “–graphics”, “vnc”, “–video”, “vga”, “–sound”, “none”, “–controller”, “usb,model=none”, “–memballoon”, “none”, “–boot”, “hd,menu=off”, “–clock”, “kvmclock_present=yes”], “delta”: “0:00:00.722852”, “end”: “2020-03-14 13:01:46.860076”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-03-14 13:01:46.137224”, “stderr”: “ERROR Host does not support domain type kvm for virtualization type ‘hvm’ arch ‘x86_64′”, “stderr_lines”: [“ERROR Host does not support domain type kvm for virtualization type ‘hvm’ arch ‘x86_64′”], “stdout”: “”, “stdout_lines”: []}
    [ INFO ] TASK [ovirt.hosted_engine_setup : include_tasks]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Remove local vm dir]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Remove temporary entry in /etc/hosts for the local VM]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Notify the user about a failure]
    [ ERROR ] fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n”}

  6. 不是机器的问题,前面报错时的参数是kvm,检查未加载模块。
    [root@ovtnode ~]# modprobe kvm-intel
    modprobe: ERROR: could not insert ‘kvm_intel’: Operation not supported
    在bios开启虚拟化
    [root@ovtnode ~]# lsmod|grep kvm
    kvm_intel 188688 0
    kvm 636931 1 kvm_intel
    irqbypass 13503 1 kvm
    [root@ovtnode ~]#
    新问题:
    [ INFO ] TASK [ovirt.hosted_engine_setup : Fetch Datacenter name]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Add NFS storage domain]
    [ ERROR ] Error: Fault reason is “Operation Failed”. Fault detail is “[Network error during communication with the Host.]”. HTTP response code is 400.
    [ ERROR ] fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Fault reason is \”Operation Failed\”. Fault detail is \”[Network error during communication with the Host.]\”. HTTP response code is 400.”}
    把nfs服务器的IP地址写错了,应该填写提供nfs服务的地址,在这里也就是ovirt-node节点上的。back修改后redeploy,最后部署成功,登录管理页面,显示主机UP。
    另外,engin的内存最少需要4096MB.
    测试环境:用物理机安装ovirt-node节点,然后登录node的9090端口部署engine。这个engine实际是一个虚拟机,所以不能在node上去配置engine所需的IP,如果配置了会报错。
    疑问:在node上rpm安装的软件包有什么作用呢?
    非常感谢楼主分享!

    • node上安装的rpm包里是engine这个虚机的镜像。如果不提前安装的话,在部署过程中会自动联网下载这个包,可能会因为网络问题下载失败。

  7. 离安装完成最后几布了额,卡在这里 大家有遇到过吗
    [ INFO ] TASK [ovirt.hosted_engine_setup : Generate static network configuration for the engine VM, IPv6]
    [ INFO ] skipping: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Inject network configuration with guestfish]

  8. 这个卡在这里大家有遇到过吗:
    [ INFO ] TASK [ovirt.hosted_engine_setup : Wait for the host to be up]
    [ ERROR ] fatal: [localhost]: FAILED! => {“ansible_facts”: {“ovirt_hosts”: [{“address”: “ovirt.test.com”, “affinity_labels”: [], “auto_numa_status”: “unknown”, “certificate”: {“organization”: “test.com”, “subject”: “O=test.com,CN=ovirt.test.com”}, “cluster”: {“href”: “/ovirt-engine/api/clusters/24aab23a-67f5-11ea-b4c9-00163e493d3e”, “id”: “24aab23a-67f5-11ea-b4c9-00163e493d3e”}, “comment”: “”, “cpu”: {“speed”: 0.0, “topology”: {}}, “device_passthrough”: {“enabled”: false}, “devices”: [], “external_network_provider_configurations”: [], “external_status”: “ok”, “hardware_information”: {“supported_rng_sources”: []}, “hooks”: [], “href”: “/ovirt-engine/api/hosts/3d3b644a-afec-41f3-ab83-765e7eb70fee”, “id”: “3d3b644a-afec-41f3-ab83-765e7eb70fee”, “katello_errata”: [], “kdump_status”: “unknown”, “ksm”: {“enabled”: false}, “max_scheduling_memory”: 0, “memory”: 0, “name”: “ovirt.test.com”, “network_attachments”: [], “nics”: [], “numa_nodes”: [], “numa_supported”: false, “os”: {“custom_kernel_cmdline”: “”}, “permissions”: [], “port”: 54321, “power_management”: {“automatic_pm_enabled”: true, “enabled”: false, “kdump_detection”: true, “pm_proxies”: []}, “protocol”: “stomp”, “se_linux”: {}, “spm”: {“priority”: 5, “status”: “none”}, “ssh”: {“fingerprint”: “SHA256:fRcavdwJixtcDyDbuJSDgwxg5oSQ+HIG1QdWqyYSzs4”, “port”: 22}, “statistics”: [], “status”: “installing”, “storage_connection_extensions”: [], “summary”: {“total”: 0}, “tags”: [], “transparent_huge_pages”: {“enabled”: false}, “type”: “ovirt_node”, “unmanaged_networks”: [], “update_available”: false, “vgpu_placement”: “consolidated”}]}, “attempts”: 120, “changed”: false, “deprecations”: [{“msg”: “The ‘ovirt_host_facts’ module has been renamed to ‘ovirt_host_info’, and the renamed one no longer returns ansible_facts”, “version”: “2.13”}]}
    [ INFO ] TASK [ovirt.hosted_engine_setup : Fetch logs from the engine VM]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Set destination directory path]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Create destination directory]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : include_tasks]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Find the local appliance image]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Set local_vm_disk_path]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Give the vm time to flush dirty buffers]
    [ INFO ] ok: [localhost -> localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Copy engine logs]

    • 是不是防火墙原因啊!我也卡这儿了

  9. 有哪位也遇到过上面的问题吗

  10. 脚本在[ INFO ] TASK [ovirt.hosted_engine_setup : Wait for the host to be up]这一步等待很久 最后报出下面错误,但我检查虚拟机状态是启动的,而且服务都是oviet-engine也是active的。
    最后TASK [ovirt.hosted_engine_setup : Copy engine logs] 也会一直卡住。

  11. 在添加engine时第一步设置VM的时候会出现如下情况,有人遇到过吗?
    Please correct errors before moving to the next step.

  12. 有人遇到过这个问题吗?
    [ ERROR ] fatal: [localhost]: FAILED! => {“attempts”: 90, “changed”: true, “cmd”: “virsh -r net-dhcp-leases default | grep -i 00:16:3e:5e:9e:50 | awk ‘{ print $5 }’ | cut -f1 -d’/'”, “delta”: “0:00:00.077931”, “end”: “2020-03-22 13:00:07.091385”, “rc”: 0, “start”: “2020-03-22 13:00:07.013454”, “stderr”: “”, “stderr_lines”: [], “stdout”: “”, “stdout_lines”: []}
    [ INFO ] TASK [ovirt.hosted_engine_setup : include_tasks]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Remove local vm dir]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Remove temporary entry in /etc/hosts for the local VM]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Notify the user about a failure]
    [ ERROR ] fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n”}

    • 我刚遇到这个问题,找到解决办法了吗?

    • 第一个错误我是参考上面回答的做法,
      你在出现这个检测的时候。运行如下命令
      命令行进入虚拟机管理
      virsh
      断电虚拟机
      destroy HostedEngineLocal
      配置虚拟机
      edit HostedEngineLocal
      将下的有个pc-i440fx-rhel7.6.0改成pc-i440fx-rhel7.2.0
      然后保存。
      出来命令行管理界面之后,运行
      start HostedEngineLocal
      就可以了。

    • 还有一个就是进入virsh之后修改这些需要密码,这也是我在网上找到的,输入就可以了,事先我是没定义的。
      账号为:vdsm@ovirt,可以在这个文件libvirtconnection.py中找到
      密码为:shibboleth,记录在文件libvirt_password中

  13. 现在我卡在最后步骤的这里,还是网络问题,想问问还有谁遇到过同样的问题呢?
    [ INFO ] TASK [ovirt.hosted_engine_setup : Inject network configuration with guestfish]

    192.168.21.240 test.node240.node
    192.168.222.18 test.engine241.engine
    我的hosts文件是设置这样的。

    • 我也卡在这里过

    • 你解决了吗?

    • 兄弟,我也卡在这很久了,解决了吗

  14. 输入http://ip:9090
    hardware virtualization is not supported on this host 已经在物理机开启VT-D,CPU virtualization vt 已经开启。
    cat /sys/module/kvm_intel/parameters/netsed
    Y

    • lscpu |grep vmx看下

  15. [ ERROR ] fatal: [localhost]: FAILED! => {“attempts”: 90, “changed”: true, “cmd”: “virsh -r net-dhcp-leases default | grep -i 00:16:3e:11:ba:43 | awk ‘{ print $5 }’ | cut -f1 -d’/'”, “delta”: “0:00:00.197175”, “end”: “2020-04-10 13:07:24.426212”, “rc”: 0, “start”: “2020-04-10 13:07:24.229037”, “stderr”: “”, “stderr_lines”: [], “stdout”: “”, “stdout_lines”: []}
    [ INFO ] TASK [ovirt.hosted_engine_setup : include_tasks]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Remove local vm dir]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Remove temporary entry in /etc/hosts for the local VM]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.hosted_engine_setup : Notify the user about a failure]
    [ ERROR ] fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n”}

    卡这里然后报错了

  16. 输入http://ip:9090
    hardware virtualization is not supported on this host
    这个要怎么处理呢?求助!!!

    • 主机是用的虚机还是物理机?物理机要到BIOS里开启VT-x,虚机要开启嵌套虚拟化

  17. 已知vmware workstations部署ovirt会遇到很多问题,最近我会专门写篇文章说明下解决办法。

  18. cockpit 太难搞了 用的是esxi的里的虚拟机部署的 开启了虚拟化
    这个报错之后我重新搞了一次 又爆了另一个错误
    [ ERROR ] Error: Fault reason is “Operation Failed”. Fault detail is “[Cannot detach Storage. The following VMs/Templates are delete protected: HostedEngine.]”. HTTP response code is 409.
    [ ERROR ] fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Fault reason is \”Operation Failed\”. Fault detail is \”[Cannot detach Storage. The following VMs/Templates are delete protected: HostedEngine.]\”. HTTP response code is 409.”}

    • /var/log/ovirt-hosted-engine-setup/,部署到此报错时,到此目录下,按修改日期排序,找到最后修改的日志文件,把最近的报错日志上下文粘下

    • 环境被我搞没了 等我明天把环境重现发你

      我现在还有一个问题就是 我在主机上安装linux虚拟机 他无法读取到我的iso镜像 磁盘和iso都是有的 引导也设置了 还会有什么其他原因吗

    • iso镜像文件有问题?

    • 没问题 我在vm虚拟机上试过了能正常引导安装

  19. 您好,咨询个问题。
    安装的版本:4.3.9,环境物理机,根据文档安装,总是报ansible的一个错。
    2020-05-21 14:32:24,167+0800 ERROR ansible failed {‘status’: ‘FAILED’, ‘ansible_type’: ‘task’, ‘ansible_task’: u’Fail if the service is masked or not running’, ‘ansible_result’: u”type: \nstr: {‘msg’: u’All items completed’, ‘changed’: False, ‘results’: [{‘ansible_loop_var’: u’service’, ‘_ansible_no_log’: False, u’service’: {u’status’: {u’ExecStart’: u'{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld –nofork –nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time”, ‘task_duration’: 0, ‘ansible_host’: u’localhost’, ‘ansible_playbook’: u’/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml’}
    2020-05-21 14:32:24,167+0800 DEBUG ansible on_any args kwargs ignore_errors:None
    2020-05-21 14:32:24,169+0800 INFO ansible stats {
    “ansible_playbook”: “/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml”,
    “ansible_playbook_duration”: “00:20 Minutes”,
    “ansible_result”: “type: \nstr: {u’localhost’: {‘ignored’: 0, ‘skipped’: 5, ‘ok’: 27, ‘failures’: 1, ‘unreachable’: 0, ‘rescued’: 0, ‘changed’: 3}}”,
    “ansible_type”: “finish”,
    “status”: “FAILED”
    }

    • 搞定了,往前翻了翻报错,发现是检查firewalld服务时报的错,刚装完系统,按习惯关掉了防火墙。开启防火墙服务就没问题。

  20. fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “\”Cannot find an available subnet for internal Libvirt network\” \”Please set it to an unused subnet by adding the variable ‘he_ipv6_subnet_prefix’\” \”to the variable-file ( e.g. he_ipv6_subnet_prefix: ‘fd00:9876:5432:900’ ).\””}

  21. [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Fix local VM directory permission]
    [ INFO ] changed: [localhost]
    [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks]
    [ INFO ] ok: [localhost]
    [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Install ovirt-engine-appliance rpm]

    卡在这块了怎么搞

    • ” 将上面下载的ovirt-engine-appliance rpm安装包拷贝到ovirt-node这台机器里,放在/root/目录下即可,执行以下命令安装:

      rpm -ivh ovirt-engine-appliance-4.3-20200127.1.el7.x86_64.rpm“

      这一步做了吗?

    • 如果已经装了ovirt-engine-appliance的rpm包
      就把/etc/yum.repos.d/下的内容清空吧

    • 我试试,谢谢了

    • 兄弟,这删除完不行啊
      The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch

欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论