// 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 guest system logs with the CLI

[role="_abstract"]
To troubleshoot issues more easily, you can enable default access to virtual machine (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 {HCOCliKind} kubevirt-hyperconverged -n {CNVNamespace}
----

. Update the `disableSerialConsoleLog` value. For example:
+
[source,yaml]
----
apiVersion: hco.kubevirt.io/v1
kind: HyperConverged
metadata:
  name: kubevirt-hyperconverged
spec:
  virtualization:
    virtualMachineOptions:
      disableSerialConsoleLog: true
#...
----
+
Set the value of `disableSerialConsoleLog` to `false` if you want serial console access to be enabled on VMs by default.
