Can't install qemu-kvm

Latest response

Hello,

When trying to install qemu-kvm, I get the following error -

(base) [root@localhost Downloads]# yum install qemu-kvm libvirt virt-install virt-manager virt-install
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
No package qemu-kvm available.
No package libvirt available.
No package virt-install available.
No package virt-manager available.
No package virt-install available.
Error: Nothing to do

This is the output of yum repolist
(base) [root@localhost Downloads]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
repo id repo name status
adobe-linux-x86_64 Adobe Systems Incorporated 3
ce_stable ownCloud Server Version stable (RHEL_7) 1+1
elrepo ELRepo.org Community Enterprise Linux Repository - el7 133
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,621
mariadb MariaDB 40
mysql-connectors-community/x86_64 MySQL Connectors Community 203
mysql-tools-community/x86_64 MySQL Tools Community 129
mysql56-community/x86_64 MySQL 5.6 Community Server 581
virtualbox/7.2/x86_64 Oracle Linux / RHEL / CentOS-7.2 / x86_64 - VirtualBox 95
repolist: 14,806

Responses

Hi Girisha,

Just execute the following commands to attach a subscription. :)

Refresh RHSM status :

sudo subscription-manager refresh

Search for the Pool ID :

sudo subscription-manager list --available

Attach the subscription :

sudo subscription-manager attach --pool="Pool-ID"

Replace "Pool-ID" with the ID given from the command before.

Regards,
Christian

After I refresh, I get the following output -

(base) [root@localhost Downloads]# sudo subscription-manager list --available No available subscription pools to list

Turns out the license for this machine has expired. Also, there are several packages which are installed from RHEL7-servers-eus repo, none of them can be udpated as this repo is no longer available. Is there anyway I can reinstall such packages? Is qemu available only from this repo, leading to the error?

Hi Girisha,

No, qemu is available from the "normal/standard" rhel-7-server-rpms repository. Of course you
need a matching/valid subscription and once you have one, execute the following commands. :)

sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean

sudo subscription-manager register
sudo subscription-manager refresh

sudo subscription-manager list --available
sudo subscription-manager attach --pool="Pool-ID"

sudo subscription-manager repos --enable rhel-7-server-extras-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-rpms

sudo yum clean all
sudo rm -r /var/cache/yum

sudo yum update
sudo yum install libvirt qemu-kvm virt-install virt-manager

Note : When you run yum update all packages get updated to the latest stable version generally.
This happens independently from which repositories these packages have been installed earlier.

Regards,
Christian