Centos VPS Dracut And Use New Kernel
1. Login to solusvm > Search the VPS > Reboot it and run VNC> While booting, please choose the old kernel first > Login through SSH.
2. Please take a note the UUID of /dev/vda1
# blkid
/dev/vda1: UUID=”a1c00872-0359-4cd6-b459-c7fd399cceb5” TYPE=”ext4″
/dev/vda2: UUID=”eb61e8c0-1718-4e46-98f6-5b9a21ca85d2″ TYPE=”swap”
2.Open file grub.cfg
# vi /boot/grub2/grub.cfg
3. Find the newest kernel. For example:
“menuentry ‘CentOS Linux (3.10.0-1062.9.1.el7.x86_64) 7 (Core)’ –class centos……… ”
4. In the below of above text, find this string
linux16 /boot/vmlinuz-0-rescue-ea0c2e40b09e4adda5da577bb18a2482 root=/dev/sda1 ro net.ifnames=0 biosdevname=0
Then change the value with UUID that we taken previously
linux16 /boot/vmlinuz-0-rescue-ea0c2e40b09e4adda5da577bb18a2482 root=UUID=a1c00872-0359-4cd6-b459-c7fd399cceb5 ro net.ifnames=0 biosdevname=0
5. Save it and reboot the server. Leave it until its booted with new kernel
