Viewing virtual machine logs
- About virtual machine logs
- Viewing virtual machine logs in the CLI
- Viewing virtual machine logs in the web console
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.
|
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
In the OKD Virtualization console, click Workloads → Virtualization from the side menu.
Click the Virtual Machines tab.
Select a virtual machine to open the Virtual Machine Overview screen.
In the Details tab, click the
virt-launcher-<name>
pod in the Pod section.Click Logs.