我最近在我的OpenVZ盒上安装了VMWare (为了做一些测试),我得到了以下内容:
https://www.dropbox.com/s/p38btkv5j84bvsh/Capture.JPG
GRUB配置如下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.32-042stab057.1)
root (hd0,0)
kernel /vmlinuz-2.6.32-042stab057.1 ro root=/dev/VolGroup00/LogVol00 sysfs.deprecated=1
initrd /initrd-2.6.32-042stab057.1.img
title CentOS (2.6.18-238.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-238.el5.img发布于 2012-09-19 09:18:44
这种情况通常发生在您错误地安装OpenVZ时,我假设您使用的主机节点操作系统是CentOS 5。要修复这个问题,您需要重新安装您的OpenVZ。
首先,您必须删除试图在/etc/yum.conf.d/openvz.repo编辑OpenVZ存储库的OpenVZ。
您应该发现类似于this.You的东西,不需要将启用的行从0更改为1:
[openvz-kernel-rhel5]
name=OpenVZ RHEL5-based kernel
#baseurl=http://download.openvz.org/kernel/branches/rhel5-2.6.18/current/
mirrorlist=http://download.openvz.org/kernel/mirrors-rhel5-2.6.18
enabled=1
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ 不要忘记将其他设置(openvz内核rhel4和openvz内核rhel5)更改为enabled=0。
编辑该文件后,运行以下命令:
yum install ovzkernel你该走了。
https://serverfault.com/questions/408275
复制相似问题