How can I check the history of all console logs starting from the first second of bootup

Martin Kletzander mkletzan at redhat.com
Thu Sep 22 07:34:10 UTC 2022


On Thu, Sep 22, 2022 at 10:24:46AM +0800, Lucas Liu wrote:
>Gratings:
>
>Recently, I got an error while installing a guest, the error message is
>this,:
>[image: image.png]
>
>Is there a method to get the full log? I have tried to use virt-install
>--console, or attach <log
>file="/var/log/libvirt/qemu/guestname-serial0.log" append="off"/>  to get
>the full log, but they didn't work.

My guess is that the kernel (and bios/uefi) was not set up to output to
a serial console.  You could use virt-install's --boot
bios.useserial=on, or for the kernel to output on the console you might
try kernel_args="console=ttyS0" if you're booting kernel directly, or
--extra-args "console=ttyS0" if you're installing from --location.  But
that could be changed in the bootloader before choosing the kernel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20220922/776fc6f4/attachment.sig>


More information about the libvirt-users mailing list