This is a cache of https://docs.openshift.com/container-platform/4.4/cnv/cnv_logging_events_monitoring/cnv-events.html. It is a snapshot of the page at 2024-11-28T01:54:51.057+0000.
Viewing events - Logging, events, and monitoring | Container-native virtualization | OpenShift Container Platform 4.4
×

Understanding virtual machine events

OpenShift Container Platform events are records of important life-cycle information in a namespace and are useful for monitoring and troubleshooting resource scheduling, creation, and deletion issues.

Container-native virtualization adds events for virtual machines and virtual machine instances. These can be viewed from either the web console or the cli.

Viewing the events for a virtual machine in the web console

You can view the stream events for a running a virtual machine from the Virtual Machine Details panel of the web console.

The ▮▮ button pauses the events stream.
The ▶ button continues a paused events stream.

Procedure
  1. click WorkloadsVirtual Machines from the side menu.

  2. Select a Virtual Machine.

  3. click Events to view all events for the virtual machine.

Viewing namespace events in the cli

Use the OpenShift Container Platform client to get the events for a namespace.

Procedure
  • In the namespace, use the oc get command:

    $ oc get events

Viewing resource events in the cli

Events are included in the resource description, which you can get using the OpenShift Container Platform client.

Procedure
  • In the namespace, use the oc describe command. The following example shows how to get the events for a virtual machine, a virtual machine instance, and the virt-launcher Pod for a virtual machine:

    $ oc describe vm <vm>
    $ oc describe vmi <vmi>
    $ oc describe pod virt-launcher-<name>