原来的命令行为:
<cmdline>root=/dev/mapper/VolGroup-lv_root nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
rhgb quiet </cmdline>
方法为:
1. 去掉
rhgb 和
quiet
2.
加上console的配置
console=ttyS0,115200
修改后为
<cmdline>root=/dev/mapper/VolGroup-lv_root nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
console=ttyS0,115200 </cmdline>
XML文件中配置串口输出
启动信息输出<!--<serial type='tcp'><source mode='bind' host='0.0.0.0' service='5000'/><protocol type='telnet'/><target port='0'/></serial><console type='tcp'><source mode='bind' host='0.0.0.0' service='5000'/><protocol type='telnet'/><target type='serial' port='0'/></console>--><serial type='file'><source path='/tmp/s.log'/><target port='0'/><alias name='serial0'/></serial><serial type='pty'><source path='/dev/pts/1'/><target port='1'/><alias name='serial1'/></serial><console type='file'><source path='/var/lib/nova/instances/17bb3327-872c-4280-a005-65f7f46b287a/console.log'/><target type='serial' port='0'/><alias name='serial0'/></console>
![如何让CentOS启动输出详细的硬件初始化信息 - 六六哥 - 六六哥的博客 如何让CentOS启动输出详细的硬件初始化信息 - 六六哥 - 六六哥的博客](http://img0.ph.126.net/V5hBXC1FydYLk3PDihGplA==/6630421252863033039.jpg)