This is a cache of https://docs.okd.io/4.10/virt/logging_events_monitoring/virt-logs.html. It is a snapshot of the page at 2024-11-24T22:57:51.895+0000.
Viewing logs - Logging, events, and monitoring | Virtualization | OKD 4.10
×

About virtual machine logs

Logs are collected for OKD builds, deployments, and pods. In OKD 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
  • Use 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 OKD console, click VirtualizationVirtualMachines from the side menu.

  2. Select a virtual machine to open the VirtualMachine details page.

  3. click the Details tab.

  4. click the virt-launcher-<name> pod in the Pod section to open the Pod details page.

  5. click the Logs tab to view the pod logs.