RHEL7:virt-who在客户门户网站上将所有机器报告为localhost.localdomain

我有一个ESXi 6.0pipe理程序,并且正在为RedHat安装数据中心许可证。 我按照如何使用“virt-who”向“Virtual Datacenter”权利注册Esxi主机安装并configuration了virt-who RHEL7 VM 。

在阅读上述链接的指示时,我注意到/etc/sysconfig/virt-who文件状态

 # Following configuration is now deprecated. Please use configuration file # in /etc/virt-who.d/. See virt-who-config(5) for details how to configure it. 

我遵循virt-who-config的手册页说明,而使用/etc/virt-who.d/ 。 在那里我创build了一个文件

 cat /etc/virt-who.d/ops-esxi.conf [ops-esxi] type=esx server=ops-esxi.mydomain.com username=root #password= encrypted_password=afcfb5fjhdgjgdb14d5c8hetdgstghh1b6 owner=11111111 env=ops hypervisor_id=hostname 

在重新启动virt-who服务后,它似乎正在工作。

唯一的问题是,在access.redhat.com客户门户所有我的机器,包括pipe理程序,被称为localhost.localdomain

我不知道这是从哪里来的,但肯定很好奇如何解决这个问题。

更新:订阅pipe理器报告不正确的主机名

 subscription-manager identity system identity: xxxxxxxxxxxxxxxxx name: localhost.localdomain org name: 1111111 org ID: 111111 

任何帮助将非常感激。

在每台主机上,您使用的networkingconfiguration决定主机名和fqdn的存储位置。 您可以使用grep来查找哪些文件包含“localhost.localdomain”。 更换正确的应该可以解决这个问题。

仍然不知道如何拿起localhost.localdomain但强制注册再次帮助。

 subscription-manager register --force 

现在subscription-manager identity以及客户门户显示正确的主机名。

这个方法也可以用来更新红帽客户门户上的主机名。 这是显而易见的,但我认为这将是有用的search引擎。