1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/installation-user-infra-machines-advanced-enabling-serial-console.adoc

62 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

// Module included in the following assemblies:
//
// * installing/installing_bare_metal/upi/installing-bare-metal.adoc
// * installing/installing_bare_metal/upi/installing-restricted-networks-bare-metal.adoc
// * installing/installing_bare_metal/upi/installing-bare-metal-network-customizations.adoc
ifeval::["{context}" == "installing-restricted-networks-bare-metal"]
:restricted:
endif::[]
:_mod-docs-content-type: PROCEDURE
[id="installation-user-infra-machines-advanced-enabling-serial-console_{context}"]
= Enabling the serial console for PXE and ISO installations
2025-12-16 12:44:50 +00:00
[role="_abstract"]
2023-09-17 00:11:14 +05:30
By default, the {op-system-first} serial console is disabled and all output is written to the graphical console. You can enable the serial console for an ISO installation and reconfigure the bootloader so that output is sent to both the serial console and the graphical console.
.Procedure
. Boot the ISO installer.
. Run the `coreos-installer` command to install the system, adding the `--console` option once to specify the graphical console, and a second time to specify the serial console:
+
2025-11-07 14:14:06 +00:00
ifndef::restricted[]
[source,terminal]
----
$ coreos-installer install \
2025-12-16 12:44:50 +00:00
--console=tty0 \//
--console=ttyS0,<options> \//
--ignition-url=http://host/worker.ign /dev/disk/by-id/scsi-<serial_number>
2025-11-07 14:14:06 +00:00
----
endif::[]
ifdef::restricted[]
2025-11-07 14:14:06 +00:00
[source,terminal]
----
$ coreos-installer install \
2025-12-16 12:44:50 +00:00
--console=tty0 \//
--console=ttyS0,<options> \//
--ignition-url=http://host/worker.ign \
--offline \
/dev/disk/by-id/scsi-<serial_number>
----
2025-11-07 14:14:06 +00:00
endif::[]
+
2025-12-16 12:44:50 +00:00
where:
+
2025-12-16 12:44:50 +00:00
`--console=tty0`:: The desired secondary console. In this case, the graphical console. Omitting this option will disable the graphical console.
`--console=ttyS0`:: The desired primary console. In this case, the serial console. The `options` field defines the baud rate and other settings. A common value for this field is `115200n8`. If no options are provided, the default kernel value of `9600n8` is used. For more information on the format of this option, see link:https://www.kernel.org/doc/html/latest/admin-guide/serial-console.html[Linux kernel serial console] documentation.
2025-12-16 12:44:50 +00:00
. Reboot into the installed system.
+
[NOTE]
====
A similar outcome can be obtained by using the `coreos-installer install --append-karg` option, and specifying the console with `console=`. However, this will only set the console for the kernel and not the bootloader.
====
2025-12-16 12:44:50 +00:00
+
To configure a PXE installation, make sure the `coreos.inst.install_dev` kernel command-line option is omitted, and use the shell prompt to run `coreos-installer` manually using the above ISO installation procedure.
ifeval::["{context}" == "installing-restricted-networks-bare-metal"]
:!restricted:
2025-06-26 12:04:35 -07:00
endif::[]