Open jwang11 opened 5 years ago
This is most likely due to kernel output not going to /dev/console
or perhaps /dev/ttyS0
or similar.
Can you boot an instance and show the contents of /proc/cmdline
?
login AWS clear VM,
$cat /proc/cmdline
BOOT_IMAGE=org.clearlinux.aws.5.2.2-143 root=PARTUUID=b54327a8-241c-451f-85e9-56784b59665f console=tty0 console=ttyS0,115200n8 quiet init=/usr/bin/initra-aws initcall_debug tsc=reliable no_timer_check noreplace-smp rootfstype=ext4 cryptomgr.notests rcupdate.rcu_expedited=1 rw
$ uname -a
Linux clr-ec2b8e88e0a629db2c6fc0235bbd545f 5.2.2-143.aws #2 SMP Tue Jul 23 16:26:39 PDT 2019 x86_64 GNU/Linux
login AWS ubuntu VM,
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.15.0-1043-aws root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295
$uname -a
Linux ip-172-31-30-148 4.15.0-1043-aws #45-Ubuntu SMP Mon Jun 24 14:07:03 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Compare kernel cmdline between clearlinux and Ubuntu in AWS, clear use console=tty0 but ubuntu is console=tty1
@jwang11 can you try modifying the boot options such that console=tty1
and see if that works???
AWS image use legacy bios and syslinux as bootloader. I just change kernel boot parameter console=tty1 in /boot/syslinux.cfg, but still can't get system log from dashboard. I will take a look at Ubuntu kernel config.
Root caused (partially)
Our AWS kernel has serial port support disabled. This is what is used to generate the system logs. The kernel configs are correct as far as I can see, therefore, once we fix the kernel to include serial port support, it should just start working.
@miguelinux can you enable the following options in the linux-aws
kernel:
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_8250=y
These are =m
now, which is the problem.
The early serial console is enabled as built-in at linux-aws-5.3.6-169
@jwang11 can you confirm this is working after the configuration was enabled in the kernel?
Create and launch clearlinux VM instance in AWS cloud. From AWS EC2 dashboard, click Instances -> Action -> Instance setting -> Get system log. There is nothing output.
However, in Ubuntu 18.04 instance, when click "Get system log", I can see a lot of journal log message including kernel message and other syslog like below.