Archive for the ‘RedHat’ category

Red Hat – Kernel Panic after yum update – Hyper-V

June 23rd, 2016

After a yum update on a Red Hat VM, hosted on a hyper-v environment. You might run into an issue where on boot, the system kernel panics.

This was observed when the update brought the RH system from RH less then 6.5 to 6.5+.

Should this occur you can try the following:

  • Boot system into previous kernel using the menu at boot
  • go into the /boot directory
  • backup the newest kernel: cp initramfs-2.6.32-642.el6.x86_64.img initramfs-2.6.32-642.el6.x86_64.img.$(date +%m-%d-%H%M%S).bak
  • Uninstall the hyper-v packages: yum remove kmod-microsoft-hyper-v microsoft-hyper-v
  • rebuild the kernel (updated) dracut -f initramfs-2.6.32-642.el6.x86_64.img 2.6.32-642.el6.x86_64
  • reboot the system
    • if you found this helpful feel free to donate to:
      ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
      LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
      BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

RedHat 7 – Edit/Change/Add IP from the command line

March 25th, 2015

Redhat 7 has decided to make it easier/difficult (depending on your point of view) to change/edit/add an ip to the server. Instead of editing/modifying the config file, now run the following command:

nmtui

This will bring up a window that will allow you to change, add and modify the IP

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

Redhat – Remove all i386 packages

December 4th, 2012

Sometimes 386 packages are installed by accident. This can cause issues during an update.

To remove them simply type:

yum remove \*.i\?86

Once complete, add the following to the top of the yum.conf file (/etc/yum.conf).

exclude = *.i?86
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz