I encounter this issue after i convert vmdk image to vhd image using Microsoft Virtual Machine Converter with the following PowerShell commands.
To fix this, i boot this VM with CentOS installation disk and select Troubleshooting follow by Rescue a CentOS system
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.dracut -f initramfs-3.10.0-862.3.3.el7.x86_64.img 3.10.0-862.3.3
No comments:
Post a Comment