【问题标题】:Hostname of this host on the management network: Host name is not valid管理网络上此主机的主机名:主机名无效
【发布时间】:2020-10-14 23:31:24
【问题描述】:

注意:这个问题可能与 this(它处理 GUI/cockpit 安装)和 this 重复,但是,这些解决方案对我不起作用。


我从未使用过 ovirt(这是我的第一次)。我想将它安装在单个物理服务器上。

我已经安装了 CentOS 8 服务器,安装了所需的 repo 和软件包(包括cockpit)。现在我需要运行 hosted-engine --deploy 来部署引擎(我想在 VM 中创建引擎)。

在出现以下情况之前一切似乎都很好:

[ INFO  ] Stage: Setup validation
          Please provide the hostname of this host on the management network [host.domain.lan]:                                                
[ ERROR ] Host name is not valid: Host name host.domain.lan is not valid

host.domain.lan 是主机的 FQDN 主机名 (CentOS 8)。据我了解,IP 和非 DNS 可解析的主机名都不适用于 ovirt。

我从未处理过 DNS(除了将其设置为 1.1.1.18.8.8.8)。我知道 CentOS 8 默认使用 NetworkManager,所以我尝试添加(使用 nmcli)第三个 DNS 地址,即 ovirt 主机(CentOS 8)的地址。 /etc/resolv.conf 确实包含地址,但 hosted-engine 不起作用。

请注意,我在/etc/hosts 中添加了两个具有 FQDN 的 IP,一个用于主机服务器 (CentOS 8),一个用于 ovirt 引擎(应该由命令部署,因此该 IP 尚未使用)。见下文。

192.168.1.27 host.domain.lan
192.168.1.50 engine.domain.lan

我不想使用私有或外部/公共 DNS 服务器。

另外请注意,当程序问我是否应该编辑主机文件时,我已经回答了yes

我怎样才能让hosted-engine 工作?

感谢您的帮助!

【问题讨论】:

    标签: dns centos8 fqdn ovirt


    【解决方案1】:

    注意:这是我对 Stack Overflow 的第一个回复。

    我已尝试重现您面临的问题,但我很确定主机 FQDN 解析在本地无法为您工作。

    复制步骤:

    System Details & Networking:
    
    # grep PRETTY_NAME /etc/os-release 
    PRETTY_NAME="oVirt Node 4.4.2" <- Latest Ovirt node
    
    [root@rhvh ~]# cat /etc/resolv.conf 
    # Generated by NetworkManager
    search local
    nameserver 192.168.122.1 
    
    [root@rhvh ~]# cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    
    192.168.122.184 rhvh.local  rhvh
    192.168.122.200 rhvm.local  rhvm
    

    “hosted-engine --deploy”执行的片段:

    [1]
              --== HOST NETWORK CONFIGURATION ==--
              Please indicate the gateway IP address [192.168.122.1]: 
    
    
    [2]
              Please indicate a nic to set ovirtmgmt bridge on: (ens1) [ens1]: 
              Please specify which way the network connectivity should be checked (ping, dns, tcp, none) [dns]: 
             
    
    
    [3] 
    How should the engine VM network be configured (DHCP, Static)[DHCP]? Static 
    Please enter the IP address to be used for the engine VM []: 192.168.122.200
    
    [ INFO  ] The engine VM will be configured to use 192.168.122.200/24
    Please provide a comma-separated list (max 3) of IP addresses of domain name servers for the engine VM
    Engine VM DNS (leave it empty to skip) [192.168.122.1]: 
    Add lines for the appliance itself and for this host to /etc/hosts on the engine VM?
    Note: ensuring that this host could resolve the engine VM hostname is still up to you
    (Yes, No)[No] Yes
    
    
    [4]
    Please provide the hostname of this host on the management network [rhvh.local]: 
    [WARNING] Failed to resolve rhvh.local using DNS, it can be resolved only locally
    

    您可以尝试在 /etc/resolv.conf 中将 DNS 设置为“192.168.1.1”吗?此外,请确保您已仔细回答上述 3 个问题,这将有助于正确解析 FQDN。

    【讨论】:

    • 谢谢,@chetan8178!但是,它没有用。请注意,我尝试将 ovirt 安装在一台物理服务器上,并将引擎作为 ovirt 中的 VM,因此该引擎尚不存在。我假设在部署期间,ovirt 验证/检查引擎域是否存在,但它不存在。是这个问题吗?
    猜你喜欢
    • 2011-04-11
    • 2015-10-07
    • 2021-06-14
    • 2013-03-22
    • 1970-01-01
    • 2017-11-01
    • 2012-09-22
    • 2017-01-05
    • 2013-08-15
    相关资源
    最近更新 更多