将virtuaobox从4.3.18升级到4.3.20之后,打开centos系统。弹出报错信息:
Unable to load R3 module C:\Program Files\Oracle\VirtualBox/VBoxDD.DLL (VBoxDD):
返回 代码:E_FAIL (0x80004005)
组件:Console
界面:IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}
查看virtualbox日志记录如下:
00:00:01.556276 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={8ab7c520-2442-4b66-8d74-4ff1e195d2b6} aComponent={Console} aText={Unable to load R3 module C:\Program Files\Oracle\VirtualBox/VBoxDD.DLL (VBoxDD): GetLastError=1790 (VERR_UNRESOLVED_ERROR)}, preserve=false
00:00:01.561289 Power up failed (vrc=VERR_UNRESOLVED_ERROR, rc=E_FAIL (0X80004005))
00:00:01.830691 UIMachineView::storeGuestSizeHint: Storing guest size-hint for screen 0 as 640x480
00:00:01.832060 supR3HardenedErrorV: supR3HardenedScreenImage/LdrLoadDll: cached rc=VERR_LDRVI_NOT_SIGNED fImage=1 fProtect=0x0 fAccess=0x0 cHits=1024 \Device\HarddiskVolume1\Windows\System32\uxtheme.dll
00:00:01.832156 supR3HardenedErrorV: supR3HardenedMonitor_LdrLoadDll: rejecting 'C:\Windows\system32\uxtheme.dll' (C:\Windows\system32\uxtheme.dll): rcNt=0xc0000190
google后找到:ghost系统破解uxtheme.dll文件之后,会导致打开virtualbox时报以上错误信息。google下载uxtheme.dll文件,替换文件即可。
以为问题解决了,结果启动的时候又报错:
NO VOLUME GROUPS FOUND
Volume group "VolGroup00" not found
mount: could not find filesystem '/dev/root'
setuproot: voming /dev failed: No such file or directory
...
switchroot: mount failed: No such file or directory
KERNEL PANIC - NOT SYNCING: ATTEMPTED TO KILL INIT!"
继续google,找到解决办法:
1. 插入光盘,启动centos。在出现提示界面时,输入linux rescue进入rescue模式
boot: linux rescue
2. sh-3.2# chroot /mnt/sysimage
注:CHROOT就是Change Root,也就是改变程序执行时所参考的根目录位置。
3. sh-3.2# cd /boot
4. 备份
sh-3.2# cp initrd-2.6.18-128.1.16.el5.img initrd-2.6.18-128.1.16.el5.img.backup
5.执行mkinitrd
sh-3.2# mkinitrd -f initrd-2.6.18-128.1.16.el5.img 2.6.18-128.1.16.el5
注:mkinitrd可建立映像文件,以供Linux开机时载入ramdisk。
-f 参数的含义是:指定的映像问家名称与现有文件重复,则覆盖现有的文件。
执行完成之后,reboot。成功启动!