This article provides steps for about enabling serial-line logging for an ESX or ESXi 4.1 host.
It is sometimes helpful to have logs captured independent of disk or network connectivity when troubleshooting issues. Enabling serial logging will send all VMKernel logs (and Service Console for ESX) to the serial port in addition to their normal destination. For more information on network-based logs, see Enabling syslog on ESXi (1016621). For more information on disk-based logs, see Location of ESX log files (1021800).
This article assumes that the serial port on an ESX or ESXi host is connected to a remote computer, and that remote computer is listening for logs on the serial port. For more general information, see the parent article in this series Enabling serial-line logging for an ESX or ESXi host (1003900).
ESX and ESXi 4.1 can be configured to send logs to the serial port in three points in time. Collect logs leading up to the point in time that the problem is seen.
A running ESX or ESXi host can be configured to output log messages via the serial communications port. If the ESX host does not successfully boot, consider configuring it during startup instead.
When configuring an installed ESX host to output log messages via the serial communications port, there are two things which need to be configured:
This step is only applicable to ESX, not to ESXi. For more information, see VMware ESX and ESXi 3.5 Comparison (1006543).
grub.conf
configuration file by running the command:cp /boot/grub/grub.conf /boot/grub/grub.conf-backup
/boot/grub/grub.conf
using your preferred text editor. For more information, see Editing configuration files in VMware ESX (1017022). quiet
option from the kernel line. console=ttyS0,115200 console=tty0
kernel /vmlinuz ro root=UUID=51beafbf-b273-4195-9a2c-04dd3b7d7786 mem=272M console=ttyS0,115200 console=tty0
ttyS0
which is the first serial port (COM1). To use the second serial port (COM2), specify ttyS1
.grub.conf
file. Note: The Service Console logging configuration requires a reboot to take effect.
kernel
. quiet
option from the kernel line. vmkopts=debugLogToSerial:1,logPort:com1
console=ttyS0,115200 console=tty0
logPort=com1
quiet
SerialPort
option to vmkopts
to specify a serial port:vmkopts=debugLogToSerial:1,logPort:com1
initrd=initrd.img vmkopts=debugLogToSerial:1,logPort:com1 mem=512M
vmkboot.gz
to specify a serial port:LOGPORT=COM1
mboot.c32 vmkboot.gz LOGPORT=COM1 --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz