【问题标题】:distro 'rhel7.2' does not exist in our dictionary我们的字典中不存在发行版“rhel7.2”
【发布时间】:2017-05-31 07:07:26
【问题描述】:

通过 virt-install 安装 kvm 时,我使用了以下属性 os_variant=rhel7.2。安装时出现以下错误:

distro 'rhel7.2' does not exist in our dictionary 

当我执行uname -r 时,我得到的输出为

3.10.0-327.el7.x86_64

它是一个 RHEL KVM 主机。 运行 osinfo-query os|grep 'Red Hat Enterprise Linux 7.2' 返回以下内容:

rhel7.1              | Red Hat Enterprise Linux 7.2                       | 7.2      | http://redhat.com/rhel/7.2

有什么办法可以解决这个问题?

【问题讨论】:

    标签: virtual-machine rhel kvm libvirt


    【解决方案1】:

    您可以创建自定义配置文件来定义 RHEL-7.2 发行版,但老实说,从 virt-install 的 POV 来看,这并不重要。该发行版用于查找主要用于磁盘和网络的优化驱动程序。在安装“rhel-7.2”时仅使用“rhel7.1”发行版类型就可以从这个 POV 中正常工作。

    【讨论】:

    • 这样的话,使用rhel7发行版不会有什么问题吗?
    • 这最多可能意味着某些默认值可能配置为次优值,但对于任何 rhel-7.x 都不是这种情况,因为在次要版本之间不需要更改默认值。
    【解决方案2】:

    virt-install 从osinfo-db 中获取它的操作系统信息

    如果您的操作系统没有提供最新版本的 osinfo-db,您可以从 https://releases.pagure.org/libosinfo/ 手动下载并导入它。 例如

    wget https://releases.pagure.org/libosinfo/osinfo-db-20200325.tar.xz
    osinfo-db-import -v osinfo-db-20200325.tar.xz
    

    -v 将显示所有导入的操作系统,我相信您的选择必须匹配此列表中的 xml 文件之一。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-31
      • 2016-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-08
      • 1970-01-01
      相关资源
      最近更新 更多