If you move the VM disk image from one platform to another there will be changes in the virtual hardware. These changes can prevent the system from booting normally. It will hang at boot for a long time then you’ll see messages something like this:
dracut-initqueue[372]: Warning: Could not boot.
dracut-initqueue[372]: Warning: /dev/centos/root does not exist.
dracut-initqueue[372]: Warning: /dev/centos/swap does not exist.
dracut-initqueue[372]: Warning: /dev/mapper/centos-root does not exist.
Starting Dracut Emergency Shell...
Warning: /dev/centos/root does not exist
Warning: /dev/centos/swap does not exist
Warning: /dev/mapper/centos-root does not exist
Generating "/run/initramfs/rdsosreport.txt"
To remedy this, boot to the rescue kernel
Log in to the desktop, open terminal and login as root
# sudo -i
Scan for logical volumes to find the one you need
# lvscan
ACTIVE '/dev/centos/swap' [<3.88 GiB] inherit
ACTIVE '/dev/centos/root' [<35.59 GiB] inherit
Make a folder to mount your volume
# mkdir /mnt/sysimage/
Then mount your root partition there
# mount /dev/centos/root /mnt/sysimage/
Next, mount the proc, dev, sys, and boot partitions
# mount --bind /sys /mnt/sysimage/sys
# mount --bind /dev /mnt/sysimage/dev
# mount --bind /proc /mnt/sysimage/proc
# mount /dev/sda1 /mnt/sysimage/boot/
Set the chroot to the mounted fs
# chroot /mnt/sysimage/
Run the dracut tool to rebuild the initramfs for the selected kernel version, exit, reboot
# dracut -f --regenerate-all
# exit
# reboot now
The system should boot normally now
0 Comments