Met a problem when try to copy virtualbox vdi file directly from Windows virtualbox to Linux

“Error: Volume group “VolGroup00″ not found

……

Kernel panic – not syncing: Attempted to kill init!”

Solution:

First, boot up in rescue mode, using the CentOS cd, type “linux rescue” on the first boot prompt.

Now chroot to you actual system:

#chroot /mnt/sysimage

Then, backup your initrd:

#cd /boot

#mv initrd-2.6.18-164.el5.img initrd.backup

(use the last version, or the one you are trying to boot, on the “2.6.18-92.el5.img” part)

Now rebuild your initrd:

#mkinitrd /boot/initrd-2.6.18-164.el5.img 2.6.18-164.el5

(Same thing about the versions)

#reboot