Search code examples
virtual-machinerhelkvmlibvirt

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


While installing a kvm via virt-install I have used following attribute os_variant=rhel7.2. While installing I am getting following error :

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

When I do uname -r I am getting output as

3.10.0-327.el7.x86_64

It is a RHEL KVM host. Running osinfo-query os|grep 'Red Hat Enterprise Linux 7.2' returns following:

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

What can be solution to this problem?


Solution

  • You could create a custom config file to define a RHEL-7.2 distro, but it is honestly not that important from virt-install's POV. The distro is used to lookup the optimized drivers to use for disk & network primarily. Just using the 'rhel7.1' distro type when installing 'rhel-7.2' will work just fine from this POV.