How to configure FQDN in ovirt engine

纵饮孤独 提交于 2020-12-12 02:08:28

问题


I want to configure oVirt in Vultr bare metal server. But I don't know how to configure Engine VM FQDN. It always tell me The address proposed for this host does not resolves locally. There is error message:

And I've already configure my /etc/hosts file. Here is my /etc/hosts code:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1 guest
::1       guest

127.0.0.1 VTest
::1       VTest
149.28.103.174 ovirt
127.0.0.2 test

I've tried FQDN guest,localhost,ovirt,localhost.localdomain. These all are not work. 149.28.103.174 is my public IP.


回答1:


@smith cruise If you dont have you own DNS Servers you must enter in DNS entries in the /etc/host file on the oVirt node for the oVirt engine and oVirt node. Example

192.168.1.10  ovirt-engine-02.labl.local ovirt-engine-02
192.168.1.11  ovirt-node-02.labl.local ovirt-node-02

Credit to https://www.techbeatly.com/2020/03/installing-ovirt-4-with-self-hosted-engine-on-enterprise-linux.html




回答2:


Red Hat RHEV documentation is saying:

Red Hat strongly recommends using DNS instead of the /etc/hosts file for name resolution. Using a hosts file typically requires more work and has a greater chance for errors.

ovirt is not a FQDN. engine.ovirt.yourdomain.com is an example for a fully qualified domain name.

So the answer is: use DNS to define your hostnames of the oVirt components and provide the engine setup with a FQDN not just a hostname.

In case you can't use DNS, you can add the information to the /etc/hosts file on every oVirt node. It should contain the ip and name of the engine, all nodes and possible addional services. See the example.

# centos 7 localhost config
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

# engine and nodes
192.168.30.3    engine.infra.yourdomain.com
192.168.30.10   node01.infra.yourdomain.com
192.168.30.11   node02.infra.yourdomain.com
192.168.30.12   node03.infra.yourdomain.com
192.168.30.13   node04.infra.yourdomain.com
192.168.30.14   node05.infra.yourdomain.com
192.168.30.15   node06.infra.yourdomain.com

# additional services
192.168.30.9    cinder.infra.yourdomain.com

There are two sources of documentation. The oVirt manuals are sometimes a bit sparse. The Red Hat RHEV manuals are much richer, although Red Hat biased.




回答3:


I was running into the same issue myself. Eventually, I used a (sub) domain that was not pointing to my IP or entered in my Hosts and it that worked.



来源:https://stackoverflow.com/questions/58212221/how-to-configure-fqdn-in-ovirt-engine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!