Fix Error when migrating CentOS 7 from vmware to Xen
/dev/centos/root does not exist after migrating CentOS7 from vmware to xcp-ng
Rebuilding initramfs in emergency mode(or go to the Rescue Mode ):
Then
1) List the initramfs images you have:
# ls -ltrh /boot/initramfs-*
2) Locate the kernel version you’re using and create a backup of it:
# cp -iv /boot/initramfs-3.10.0-862.el7.x86_64.img /boot/initramfs-3.10.0-862.el7.x86_64.img.back
3) Rebuild the kernel image for that specific kernel
# dracut -f
4) Select the new kernel image
# ls -ltrh /boot/initramfs-*
5) Specify the new kernel version (For Example):
# dracut -f /boot/initramfs-3.10.0-862.el7.x86_64.img 3.10.0-862.el7.x86_64
6) Go to the Grub config
# vi /boot/grub2/grub
7) Delete the old menuentry and make sure that the new menuentry is top of all
8) Generate a GRUB configuration file
# grub2-mkconfig
9) Reboot
10) Done.
_______
SUBSCRIBE TO THIS CHANNEL!
If you like the video, why not subscribe, so you won’t miss future videos!
Subscribe Here: https://www.youtube.com/channel/UCGcBvhZf_5ZPK9B42fi_ZNw?sub_confirmation=1
*** Learn more about Tuts ***
_____________
📺Playlists:
📺Latest Videos:
______________
Useful Links/Commands:
#linux #tutorial #macOS #Windows #Printer #Camera #CCNA #Graphic
Thank You For Watching and please visit my channel
YouTube Channel: https://www.youtube.com/channel/UCGcBvhZf_5ZPK9B42fi_ZNw
centos 7