xen error: “you need to load the kernel first”

本文可自由转载,但请遵循“署名-非商业用途-保持一致”的创作共用协议。 永久链接:JoeCen's 小猫窝
-----------------------------

debian(lenny) 无端端换了grub2,整个grub的架构和配置都天翻地覆。 安装xen重启系统后,grub会出现下面的提示:

error: “you need to load the kernel first”

问题的原因是grub2没有load到xen真正的内核,如xen-3.2-1-amd64.gz,而是把vmlinuz-2.6.26-2-xen-amd64作为内核。
网上google了一下,试了几个方法都不行,grub2的语法似乎是有点问题,也没有时间去慢慢试了,机房的同事还在守着。
于是用了最简单的解决方法,使用apt安装grub Legacy 取代grub2即可。

apt-get grub

即可。会提示与grub-pc由冲突,同意解决方案即可:

grub-pc: Conflicts: grub but 0.97-47lenny2 is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
grub-pc

Score is 121

Accept this solution? [Y/n/q/?] Y

安装完后运行

grub-install /dev/sda
update-grub

重启机器即可启动xen的内核。

随机日志

  • 东瀛见闻录1-关于phiten
  • 别以为不会发生
  • 2009不再回头
  • 存在的不存在感和不存在的存在感
  • 新年愿景
  • Leave a Reply