CentOS 7 Virtual Server Fails to Boot after YUM Update
After creating a CentOS 7 virtual server, YUM update and rebooting cause failure to boot the virtual server. The log shows the following message:
"Fatal: VM was not running 1 minute after being started"
All OnApp versions
CentOS 7 virtual servers built from OnApp template (possibly any VS upgraded/installed to CentOS 7)
There is a missing line for the default kernel in
/boot/grub/grub.conf. The first entry should be the same as the old entry, and the missing line should resemble the following:
initrd /boot/initramfs-<kernel release>.img
Example lines from /etc/grub.conf:
title CentOS Linux (3.10.0-229.1.2.el7.x86_64) 7 (Core) root (hd0,0) kernel /boot/vmlinuz-3.10.0-229.1.2.el7.x86_64 root=/dev/xvda1 console=tty0 ro vconsole.keymap=us vconsole.font=latarcyrheb-sun16 LANG=en_US.UTF-8 initrd /boot/initramfs-3.10.0-229.1.2.el7.x86_64.img
Fix this issue from the recovery mode. Mount the failed VS disk and edit the file using the vi or other text editors.
CentOS 7 template has a custom kernel from OnApp that has missing features to make the VNC console work. The default updated kernel installed with YUM update is not guaranteed to work with the console and can leave the VNC console blank/black.