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
2024-02-21 15:24:19 +00:00

32 lines
918 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
You can enable default access to VM guest system logs by editing the `HyperConverged` custom resource (CR).
.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 <1>
#...
----
<1> Set the value of `disableSerialConsoleLog` to `false` if you want serial console access to be enabled on VMs by default.