![CentOS OpenVZ 在内核更新后无法启动](https://linux22.com/image/576745/CentOS%20OpenVZ%20%E5%9C%A8%E5%86%85%E6%A0%B8%E6%9B%B4%E6%96%B0%E5%90%8E%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8.png)
升级到最新的 OpenVZ 内核后,CentOS 服务器无法启动。当我尝试启动时,最新的内核服务器卡在了这一点:(请注意,图像是从虚拟 kvm 中获取的)
然后我尝试在一些旧内核上启动服务器,然后收到此错误消息:
kernel panic - not syncing - attempted to kill init
在这张图片上更好地显示:
以下是一些有用的信息
fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2995.7 GB, 2995739688960 bytes
255 heads, 63 sectors/track, 364211 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004c4e4
Device Boot Start End Blocks Id System
/dev/sda1 1 523 4199044+ 82 Linux swap / Solaris
/dev/sda2 524 785 2104515 83 Linux
/dev/sda3 786 261869 2097157230 83 Linux
/dev/sda4 261870 364211 822062115 83 Linux
/etc/fstab
proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/sda1 none swap sw 0 0
/dev/sda2 /boot ext3 defaults 0 0
/dev/sda3 / ext3 defaults 0 0
/dev/sda4 /home ext3 defaults 0 0
和 grub 配置文件:
title OpenVZ (2.6.18-274.18.1.el5.028stab098.1)
root (hd0,1)
kernel /vmlinuz-2.6.18-274.18.1.el5.028stab098.1 ro root=/dev/sda3 vga=0x317 selinux=0
initrd /initrd-2.6.18-274.18.1.el5.028stab098.1.img
title OpenVZ (2.6.18-274.7.1.el5.028stab095.1)
root (hd0,1)
kernel /vmlinuz-2.6.18-274.7.1.el5.028stab095.1 ro root=/dev/sda3 vga=0x317 selinux=0
initrd /initrd-2.6.18-274.7.1.el5.028stab095.1.img
title OpenVZ (2.6.18-194.8.1.el5.028stab070.4)
root (hd0,1)
kernel /vmlinuz-2.6.18-194.8.1.el5.028stab070.4 ro root=/dev/sda3 vga=0x317
initrd /initrd-2.6.18-194.8.1.el5.028stab070.4.img
非常感谢您的帮助,谢谢。
答案1
这个问题与这个问题类似。您可以在这里找到答案: https://serverfault.com/a/429782/119720