1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/virt-enable-guest-log-default-cli.adoc
2026-01-20 17:24:19 +00:00

39 lines
986 B
Plaintext

// Module included in the following assemblies:
//
// * virt/support/virt-troubleshooting.adoc
:_mod-docs-content-type: PROCEDURE
[id="virt-enable-guest-log-default-cli_{context}"]
= Enabling default access to VM guest system logs with the CLI
[role="_abstract"]
You can enable default access to VM guest system logs by editing the `HyperConverged` custom resource (CR).
.Prerequisites
* You have installed the {oc-first}.
.Procedure
. Open the `HyperConverged` CR in your default editor by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
----
. Update the `disableSerialConsoleLog` value. For example:
+
[source,yaml]
----
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
spec:
virtualMachineOptions:
disableSerialConsoleLog: true
#...
----
+
Set the value of `disableSerialConsoleLog` to `false` if you want serial console access to be enabled on VMs by default.