原文转自:http://blog.csdn.net/g__gle/article/details/8663239
1) Create a file called /etc/init/ttyS0.conf
# ttyS0 - getty## This service maintains a getty on ttyS0 from the point the system is# started until it is shut down again.start on stopped rc RUNLEVEL=[2345] and ( not-container or container CONTAINER=lxc or container CONTAINER=lxc-libvirt)stop on runlevel [!2345]respawnexec /sbin/getty -L 115200 ttyS0 vt1022) Ask upstart to start the gettysudo start ttyS0