How to setup serial console access in VMware to capture boot logs for troubleshooting
This document (7018394) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 10 (all Service Packs)
SUSE Linux Enterprise Server 11 (all Service Packs)
SUSE Linux Enterprise Server 12 (all Service Packs)
SUSE Linux Enterprise Server 15 (all Service Packs)
VMware Workstation, ESX or ESXi
Situation
The following steps will guide through the steps to connect a virtual serial console to the VM to save the kernel messages to a text file.
Resolution
- Shutdown the VM.
- Open the settings.
- Select the hardware tab and click "Add other device".
- Choose Serial Port .
- Expand the "New Serial port"
- Verify the path and filename are to your liking. ( Default path/file [VMNAME]/serial.out )
- If you need to set different path or filename .. click "Browse..." and choose a file location inside the VM folder on the datastore.
- Make sure the Serial Port gets connected once the machine powers on.
- Close the settings.
- Power on the virtual machine.
- At the boot prompt add the needed kernel options and hit enter.
Once the machine failed to boot, please check the file on the datastore if all messages from starting the kernel up to the error have been recorded and provide this file to support.
In case the file is empty, the serial port might have been connected to tty1/ttyS1 instead of tty0/ttyS0 as shown above. Please adjust the options if needed.
Instructions for VMware vCenter :
- Shutdown the VM.
- Right click and select Edit Settings.
- From the drop down menu of "New device" select Serial Port and hit Next.
- Now just select the file location on the datastore.
- Press OK
- Power on the virtual machine
It may be advised to increase the BIOS timeout to the virtual machine to its maximum of 10 seconds (10000 milliseconds) to gain more time to react.
In case there is no direct input possibility for the kernel options please select the matching entry on the screen, hit 'e' to edit and add the needed options to the line containing the root volume.
Additional Information
console=tty0 console=ttyS0,115200 debug ignore_loglevelUseful debug kernel options for SLE12 and SLE 15:
systemd.log_level=debug systemd.log_target=console console=ttyS0,115200Important: Starting with SLE 12 each installation adds the quiet option to the kernel options line to suppress messages during system boot. Please make sure this option gets removed when gathering boot debug information as systemd acts on this option as well and will provide less output.
Process has been verified to work with ESXi V7.0 Update 3j
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018394
- Creation Date: 15-Dec-2016
- Modified Date:09-Jun-2023
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com