This is a cache of https://docs.openshift.com/container-platform/4.2/cnv/cnv_users_guide/cnv-logs.html. It is a snapshot of the page at 2024-11-23T02:42:48.869+0000.
Viewing logs - Container-native virtualization <strong>user</strong>'s guide | Container-native virtualization | OpenShift Container Platform 4.2
×

Understanding virtual machine logs

Logs are collected for OpenShift Container Platform Builds, Deployments, and Pods. In container-native virtualization, virtual machine logs can be retrieved from the virtual machine launcher Pod in either the web console or the CLI.

The -f option follows the log output in real time, which is useful for monitoring progress and error checking.

If the launcher Pod is failing to start, use the --previous option to see the logs of the last attempt.

ErrImagePull and ImagePullBackOff errors can be caused by an incorrect Deployment configuration or problems with the images that are referenced.

Viewing virtual machine logs in the CLI

Get virtual machine logs from the virtual machine launcher Pod.

Procedure
  • user the following command:

    $ oc logs <virt-launcher-name>

Viewing virtual machine logs in the web console

Get virtual machine logs from the associated virtual machine launcher Pod.

Procedure
  1. In the container-native virtualization console, click WorkloadsVirtual Machines.

  2. Click the virtual machine to open the Virtual Machine Details panel.

  3. In the Overview tab, click the virt-launcher-<name> Pod in the POD section.

  4. Click Logs.