$ oc logs <virt-launcher-name>
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.
|
Get virtual machine logs from the virtual machine launcher pod.
Use the following command:
$ oc logs <virt-launcher-name>
Get virtual machine logs from the associated virtual machine launcher pod.
In the OKD console, click Virtualization → VirtualMachines from the side menu.
Select a virtual machine to open the VirtualMachine details page.
click the Details tab.
click the virt-launcher-<name>
pod in the Pod section to open the Pod details page.
click the Logs tab to view the pod logs.