[libvirt-users] Error validating install location: Distro 'rhel8' does not exist in our dictionary

Hi, I am running the below command to spawn CentOS8 based Virtual Machines using KVM based technology virt-install --name=centos8
--file=/linuxkvmguestosdisk/var/lib/libvirt/images/centos8 --file-size=100 --nonsparse --vcpus=2 --ram=8096 --network=bridge:br0 --os-type=linux --os-variant=rhel8 --graphics none --location=/linuxkvmguestosdisk/var/lib/libvirt/isos/CentOS-8-x86_64-1905-dvd1.iso --extra-args="console=ttyS0" ERROR Error validating install location: Distro 'rhel8' does not exist in our dictionary
Any clue and i look forward to hearing from you. Thanks in advance. Best Regards,

Hi, if you run on a shell the command: osinfo-query os you will see that its: rhl8.0 | Red Hat Linux 8.0 | 8.0 | http://redhat.com/rhl/8.0 so instead of rhel8, i suggest you to try rhl8.0 Good luck ! Greetings Oliver Am 05.10.19 um 14:48 schrieb Kaushal Shriyan:
Hi,
I am running the below command to spawn CentOS8 based Virtual Machines using KVM based technology
virt-install --name=centos8 --file=/linuxkvmguestosdisk/var/lib/libvirt/images/centos8 --file-size=100 --nonsparse --vcpus=2 --ram=8096 --network=bridge:br0 --os-type=linux --os-variant=rhel8 --graphics none --location=/linuxkvmguestosdisk/var/lib/libvirt/isos/CentOS-8-x86_64-1905-dvd1.iso --extra-args="console=ttyS0" ERROR Error validating install location: Distro 'rhel8' does not exist in our dictionary
Any clue and i look forward to hearing from you. Thanks in advance.
Best Regards,
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On Sat, Oct 5, 2019 at 7:27 PM Oliver Dzombic <info@layer7.net> wrote:
Hi,
if you run on a shell the command:
osinfo-query os
you will see that its:
rhl8.0 | Red Hat Linux 8.0 | 8.0 | http://redhat.com/rhl/8.0
so instead of rhel8, i suggest you to try rhl8.0
Good luck !
Greetings Oliver
Thanks Oliver and it worked like a charm.

On Sun, Oct 06, 2019 at 10:54:33AM +0530, Kaushal Shriyan wrote:
On Sat, Oct 5, 2019 at 7:27 PM Oliver Dzombic <info@layer7.net> wrote:
Hi,
if you run on a shell the command:
osinfo-query os
you will see that its:
rhl8.0 | Red Hat Linux 8.0 | 8.0 | http://redhat.com/rhl/8.0
This is Red Hat Linux 8 with a release date of 30 September 2002 [1] and not Red Hat Enterprise Linux. You are not using any new devices/settings. Instead you should probably use rhel8.0 or, even better, since you are using centos, the centos release. However that one does not exist in the osinfo db yet due to the new style of releases that happened there and we need to figure out how to properly represent it in the osinfo data. If ou re not seeing rhel8-unknown or rhel8.0 you should update your osinfo database. Either update you package or you can also use `osinfo-db-import --latest` to update it locally for your user. Hope that helps, Martin [1] https://en.wikipedia.org/wiki/Red_Hat_Linux
so instead of rhel8, i suggest you to try rhl8.0
Good luck !
Greetings Oliver
Thanks Oliver and it worked like a charm.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On Mon, 2019-10-07 at 10:15 +0200, Martin Kletzander wrote:
On Sun, Oct 06, 2019 at 10:54:33AM +0530, Kaushal Shriyan wrote:
On Sat, Oct 5, 2019 at 7:27 PM Oliver Dzombic <info@layer7.net> wrote:
if you run on a shell the command:
osinfo-query os
you will see that its:
rhl8.0 | Red Hat Linux 8.0 | 8.0 | http://redhat.com/rhl/8.0
This is Red Hat Linux 8 with a release date of 30 September 2002 [1] and not Red Hat Enterprise Linux. You are not using any new devices/settings.
Instead you should probably use rhel8.0 or, even better, since you are using centos, the centos release. However that one does not exist in the osinfo db yet due to the new style of releases that happened there and we need to figure out how to properly represent it in the osinfo data.
If ou re not seeing rhel8-unknown or rhel8.0 you should update your osinfo database. Either update you package or you can also use `osinfo-db-import --latest` to update it locally for your user.
Alternatively, if updating the osinfo database through your distro's package manager is not enough to get the CentOS 8.0 OS variant and you don't want to replace it with the upstream one, --os-variant centos7.0 should also work in a pinch. -- Andrea Bolognani / Red Hat / Virtualization
participants (4)
-
Andrea Bolognani
-
Kaushal Shriyan
-
Martin Kletzander
-
Oliver Dzombic