Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Enabling serial-line logging for ESXi 5.x and later (1033888)

Last Updated: 3/21/2024Categories: How toTotal Views: 32713Language:
English

2 like this article

Subscribe to get an email
newsletter with new updates

2 people found this helpful Please provide article feedback:

Purpose

This article provides steps to enable serial-line logging for an ESXi 5.x and later.

It is sometimes helpful to have logs captured independent of disk or network connectivity when troubleshooting issues. Enabling serial logging sends all VMkernel logs to the serial port in addition to their normal destination. For more information on network-based logs, see Configuring syslog on ESXi. For more information on disk-based logs, see Collecting diagnostic information for VMware ESX/ESXi.

This article assumes that the ESXi host's serial port 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).

Resolution

ESXi 5.x and 6.0 can be configured to send logs to the serial port at three points in time:

After installation and startup

During startup

During installation

Collect logs leading up to the time that the problem occurs.

After installation and startup

A running ESXi host can be configured to output log messages via the serial communications port. If the ESXi host does not successfully boot, consider configuring it during startup instead.

Change four configuration options using one of the methods in Configuring advanced options for ESX/ESXi (1038578):

Set the Misc.LogToSerial option to 1.

Set the Misc.DebugLogToSerial option to 1.

Set either the VMKernel.boot.com1_baud or VMKernel.boot.com2_baud options to 115200.

Set the Misc.LogPort option to COM1 or COM2. Changing the Misc.LogPort option to none disables use of a serial port for logging.

Note: Changing the Misc.LogPort option between COM1 and COM2 requires first stopping use of the serial port by changing to none.

During startup

If an ESXi 5.x and 6.0 host does not successfully boot, serial line logging can be configured using advanced kernel boot-time parameters. This takes effect for the current boot, and does not persist across future reboots.

To enable serial-line logging during startup:

At the Loading VMware ESXi screen, press Shift+O on your keyboard.

At the prompt, add the advanced option to specify a serial port at the start of the line:

> vmkBootVerbose=TRUE vmbLog=TRUE logPort=com1

The above command is preferred, alternatively the following can be used:

> debugLogToSerial=1 logPort=com1 no-auto-partition bootUUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Press Enter to boot.

Logging starts after the first loading progress bar finishes.

Note: Serial line logging continues until the configuration options are loaded, at which point the saved configuration takes effect. To continue serial line logging after booting, make the configuration change after installation and startup.

During installation

If an ESXi 5.x and 6.0 host does not successfully install, serial line logging can be configured when booting the installer using advanced kernel boot-time parameters. This takes effect for the current boot, and does not persist across future reboots.

To enable serial-line logging during installation:

At the Loading ESXi installer screen, press Shift+O on your keyboard.

At the prompt, append the advanced option to specify a serial port after runweasel:

> runweasel debugLogToSerial=1 logPort=com1

Press Enter to boot.

Logging starts after the first loading progress bar finishes.

Note: Configuration changes applied when starting the installer do not persist to the installed ESX configuration. To continue serial-line logging after booting, make the configuration change after installation and startup.

Related Information

Enabling serial-line logging for an ESXi/ESXi host
Enabling syslog on ESXi 3.5 and 4.x
Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x
Location of ESX 3.0-4.1 log files
Configuring a vSphere ESXi host to use a local USB device for VMkernel coredumps
Configuring advanced options for ESXi/ESX
Configuring syslog on ESXi
Location of ESXi 5.0 log files
Location of ESXi 5.1 and 5.5 log files

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

KB
•
Downloading and Installing the standalone VMware Remote Console (VMRC) in vSphere (2091284)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

Related Versions:

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

Take Our Survey

Support Assistant