Wednesday, October 9, 2019

CentOS 7 dracut-initqueue timeout and could not boot – warning /dev/disk/by-id/uuid does not exist

I encounter this issue after i convert vmdk image to vhd image using Microsoft Virtual Machine Converter with the following PowerShell commands.
Import-Module "C:\Program Files\Microsoft Virtual Machine Converter\mvmcCmdlet.psd1"
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath E:\imageLocation\source.vmdk -VhdType DynamicHardDisk -VhdFormat Vhd -DestinationLiteralPath E:\vhd\destination.vhd
And this is the screenshot of the issue when i import this VHD. The warning is /dev/disk/by-uuid/uuid does not exist and this partition disk contain the root file system.


To fix this, i boot this VM with CentOS installation disk and select Troubleshooting follow by Rescue a CentOS system



Select 1 to continue


Run chroot /mnt/sysimage to make your system the root environment.


Go to /boot and you can see the list of initramfs images, as i wanted to run this OS using the latest kernel, i will recreate this image - initramfs-3.10.0-862.3.3.el7.x86_64.img


Perform the following commands

cp initramfs-3.10.0-862.3.3.el7.x86_64.img initramfs-3.10.0-862.3.3.el7.x86_64.img.bk

dracut -f initramfs-3.10.0-862.3.3.el7.x86_64.img 3.10.0-862.3.3
After reboot, i am able to see the login screen and can now login to the system.

No comments: