LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Serial over Lan (https://www.linuxquestions.org/questions/linux-hardware-18/serial-over-lan-4175610032/)

diosim 07-17-2017 09:59 AM

Serial over Lan
 
Hi guys,

I'm having some issue to login via serial over lan ttyS1.
I can the output during the reboot via the serial console, but can't login, no getting any login prompt.
Can someone please help?
Thanks
Here my /etc/inittab
Code:

S1:23:respawn:/sbin/agetty -L 115200 ttyS1 xterm
my grub: /etc/grub.conf
Code:

default=0
default ttyS1
serial 0x30e0 115200
label ttyS1
timeout=5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
serial --port=0x30e0 --unit=1 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=5 serial console
timeout=10
kernel /boot/vmlinuz-2.6.32-696.3.2.el6.x86_64 ro root=UUID=2e5016ed-970a-4089-9c81-d47979c4b47c nomodeset rghb guiet rdblacklist=snd_hda_intel console=ttyS1,115200n8 noirqdebug selinux=0 nodmraid nompth nolvm raid=noautodetect rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD pci=nommconf SYSFONT=latarcyrheb-sun16 rd_NO_LVM rd_NO_DM crashkernel=auto
initrd /boot/initramfs-2.6.32-696.3.2.el6.x86_64.img


michaelk 07-17-2017 11:22 AM

Looks like you are running Redhat/CentOS 6. Version 6.x uses Upstart and not SysV so adding the agetty line to inittab has no effect.

From everything I have found on the internet all you need to do is add the console=ttyS1,115200n8 as a kernel parameter. Although one thread seemed to indicate that version 6.4 required a /etc/init/ttyS1.conf and 6.5 did not.

This thread contains both methods so try it and see what works.
https://www.cyberciti.biz/faq/centos...erial-console/

diosim 07-18-2017 04:23 AM

Thanks, I've done some test with both, but still hanging at
Code:

FS-Cache: Netfs ‘nfs’ registered for caching
Even if the machine is up and running on the main screen, so I don't understand what is wrong.
Latest logs
Code:

FS-Cache: Netfs 'nfs' registered for caching
polkitd[3244]: started daemon version 0.96 using authority implementation `local' version `0.96'
rtkit-daemon[3250]: Sucessfully made thread 3248 of process 3248 (/usr/bin/pulseaudio) owned by 'gdm' high priority at nice level -11.
rtkit-daemon[3250]: Sucessfully made thread 3254 of process 3248 (/usr/bin/pulseaudio) owned by 'gdm' RT at priority 5.
rtkit-daemon[3250]: Sucessfully made thread 3255 of process 3248 (/usr/bin/pulseaudio) owned by 'gdm' RT at priority 5.


michaelk 07-18-2017 04:57 AM

As far as I know that is a NFS issue and should be unrelated to using a serial console. Not enough information provided to know what is happening.

diosim 07-18-2017 05:01 AM

Which log would you need?

diosim 07-18-2017 07:06 AM

I checked other machines with same messages, it's the last line in dmesg so I'm just wondering if not related to serial console login which is not working?


All times are GMT -5. The time now is 11:30 AM.