[ 2.427517] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 2.427517]
[ 2.429668] CPU: 0 PID: 1 Comm: systemd Not tainted 3.10.0-514.26.2.el7.x86_64 #1
[ 2.431437] Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org 04/01/2014
[ 2.434249] ffffffff818c9460 00000000546b98ce ffff88003da37e28 ffffffff81687133
[ 2.436091] ffff88003da37ea8 ffffffff8168053a ffffffff00000010 ffff88003da37eb8
[ 2.438007] ffff88003da37e58 00000000546b98ce ffffffff81e6c100 0000000000007f00
[ 2.439875] Call Trace:
[ 2.440461] [<ffffffff81687133>] dump_stack+0x19/0x1b
[ 2.441678] [<ffffffff8168053a>] panic+0xe3/0x1f2
[ 2.442867] [<ffffffff8108c8ad>] do_exit+0xa3d/0xa40
[ 2.444091] [<ffffffff8108c92f>] do_group_exit+0x3f/0xa0
[ 2.445378] [<ffffffff8108c9a4>] SyS_exit_group+0x14/0x20
[ 2.446679] [<ffffffff81697809>] system_call_fastpath+0x16/0x1b
mount ## tells mounted medias
sudo blkid ### tells partitions
... if your root partition is /dev/sda1 for example, run
sudo fsck -fyc /dev/sda1
... and so on
os_version=7
kernel_version=3.10.0-514.26.2
wget http://debuginfo.centos.org/$os_version/x86_64/kernel-debuginfo-$kernel_version.el$os_version.x86_64.rpm
rpm2cpio kernel-debuginfo-$kernel_version.el$os_version.x86_64.rpm |cpio -idv ./usr/lib/debug/lib/modules/$kernel_version.el$os_version.x86_64/vmlinux
crash ./usr/lib/debug/lib/modules/$kernel_version.el$os_version.x86_64/vmlinux /vm/corefile/vm-1_corefile
...
RELEASE: 3.10.0-514.26.2.el7.x86_64
VERSION: #1 SMP Tue Jul 4 15:04:05 UTC 2017
MACHINE: x86_64 (2499 Mhz)
MEMORY: 1 GB
PANIC: "Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00"
PID: 1
COMMAND: "systemd"
TASK: ffff88003da38000 [THREAD_INFO: ffff88003da34000]
CPU: 0
STATE: (PANIC)
[ 1.672693] vda: vda1
[ 1.680503] virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
[ 1.681571] virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
[ 1.681642] virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
[ 2.835832] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
[ 3.121321] systemd-journald[87]: Received SIGTERM from PID 1 (systemd).
[ 3.549142] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 3.551532] CPU: 0 PID: 1 Comm: systemd Not tainted 3.10.0-514.26.2.el7.x86_64 #1
[ 3.553592] Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org 04/01/2014
[ 3.556901] ffffffff818c9460 000000008c5cd7b9 ffff88003da37e28 ffffffff81687133
[ 3.559078] ffff88003da37ea8 ffffffff8168053a ffffffff00000010 ffff88003da37eb8
[ 3.561112] ffff88003da37e58 000000008c5cd7b9 ffffffff81e6c100 0000000000007f00
[ 3.563005] Call Trace:
[ 3.563621] [<ffffffff81687133>] dump_stack+0x19/0x1b
[ 3.564842] [<ffffffff8168053a>] panic+0xe3/0x1f2
[ 3.565985] [<ffffffff8108c8ad>] do_exit+0xa3d/0xa40
[ 3.567185] [<ffffffff8108c92f>] do_group_exit+0x3f/0xa0
[ 3.568484] [<ffffffff8108c9a4>] SyS_exit_group+0x14/0x20
[ 3.569793] [<ffffffff81697809>] system_call_fastpath+0x16/0x1b
crash>
sudo mount /dev/sda7 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
apt-get update
apt-get upgrade
exit
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/dev
sudo umount /mnt