Xen: VM failed to boot

Question:
Hello,

I am using Xen on Centos 7 and it was working fine from last 3 years.
After I reboot the VM I am getting below error:

"dracut-initqueue[270]: Warning: dracut-initqueue timeout - starting timeout scripts"

"[ 195.426203] dracut-initqueue[270]: Warning: Could not boot.
[ 195.435712] dracut-initqueue[270]: Warning: /dev/centos_static/root does not exist
[ 195.436499] dracut-initqueue[270]: Warning: /dev/centos_static/swap does not exist
[ 195.437451] dracut-initqueue[270]: Warning: /dev/mapper/centos_static-root does not exist
Starting Dracut Emergency Shell...
Warning: /dev/centos_static/root does not exist
Warning: /dev/centos_static/swap does not exist
Warning: /dev/mapper/centos_static-root does not exist
"

I connect to this server remotely, so there is no GUI.
Is there a way to fix it?
How to boot VM in rescue or recovery mode?
I tried a couple of options to boot in rescue or recovery mode but no luck.

Thanks in advance,
Nishit Shah

Answer:

There are many possible reasons. The message shown seems suggest during boot the specified LVM volumes for root can not be found. Are the disks fine (e.g. are the underlying disk broken or damaged)? Or are there updates recently and during which the `dracut` running to generate initramfs failed?

What worth trying is to select another different boot option, such as the “rescue” one to see whether it can boot. If it can boot, you may try to regenerate the initramfs images for the kernel you use using command like (replace `<your kernel version here>` with the kernel you use during normal booting).

dracut -f /boot/initramfs-<your kernel version here>.e17.x86_64.img <your kernel version here>.e17.x86_64

Check `dracut` manual for detailed usage of the `dracut` command.

Leave a Reply

Your email address will not be published. Required fields are marked *