Openvswitch – Cannot Update CentOS 7


Whenever you use CentOS 7 with openvswith enabled you cannot update you system. yum update will time out. The server can access the internet, the mirror server can be resolved. So what is the problem? Usually this happened on CentOS 7 machine running on the cloud or inside the virtualization environment that use openvswitch.

You probably will get below error. when you do yum update or wget something.
[root@katello-vm ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base:
* extras:
* updates:
base | 3.6 kB 00:00:00 [Errno 12] Timeout on (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
extras/7/x86_64/primary_db FAILED ] 0.0 B/s | 11 kB --:--:-- ETA

and the list will continue..

This happened because CentOS kernel is not supported by openvswith. In my case, Im running kernel 3.10.0-327.28.3.el7.x86_64. this kernel is not supported by openvswith. So I need to install new kernel (3.10.0-957.21.3.el7.x86_64) and firmware. Download the kernel and firmware here.

Now install the kernel and firmware without dependencies. Follow the sequence, first kernel, second firmware.
rpm -ivh kernel-3.10.0-957.21.3.el7.x86_64.rpm --nodeps
rpm -Uvh linux-firmware-20180911-69.git85c5d90.el7.noarch.rpm --nodeps

Remove grubenv
rm -rf /boot/grub2/grubenv

Reboot your system.

After your server rebooted, you can update your system.
yum update -y

have a nice day!


This entry was posted in Install, Linux, RedHat and tagged , , , , . Bookmark the permalink.