- Compiled kernel on my Ubuntu to create bzImage.
- Copied this bzImage to the virtual machine(debian)
- In the virtual machine, I created an initial ramdisk using the command mkinitramfs -o initrd.img
- I loaded the image to the kernel using the command kexec -l bzImage --append="`root=UUID=<string> ro quiet`" --initrd=initrd.img. The append was done based on /proc/cmdline.
- Now I did a kexec -e which after some warning messages dropped me in to an initramfs prompt. One of the warning read as follows /dev/disk/by-uuid/<string> does not exist.
Can you please tell me what I am doing wrong? Please note that I have CONFIG_KEXEC=y on my current kernel of debian VM .