Lucas Liu
2022-Sep-22 02:24 UTC
How can I check the history of all console logs starting from the first second of bootup
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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20220922/451a466f/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 28462 bytes Desc: not available URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20220922/451a466f/attachment-0001.png>
Martin Kletzander
2022-Sep-22 07:34 UTC
How can I check the history of all console logs starting from the first second of bootup
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>