Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtme: pass "debug" to the boot options when running in verbose mode #144

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

arighi
Copy link
Owner

@arighi arighi commented Jul 28, 2024

Some distro / kernels require the "debug" boot option to properly show the kernel messages to the console.

Add this parameter to correctly show the kernel log when "-v" is used.

This allows to properly show the kernel log in Arch Linux, CachyOS (and probably most of the Arch-derivative distro).

Some distro / kernels require the "debug" boot option to properly show
the kernel messages to the console.

Add this parameter to correctly show the kernel log when "-v" is used.

This allows to properly show the kernel log in Arch Linux, CachyOS (and
probably most of the Arch-derivative distro).

Signed-off-by: Andrea Righi <[email protected]>
@arighi arighi merged commit 04387c8 into main Jul 28, 2024
8 checks passed
@@ -1063,7 +1063,7 @@ def do_it() -> int:
qemuargs.extend(["-chardev", "file,path=/proc/self/fd/2,id=dmesg"])
qemuargs.extend(["-device", arch.virtio_dev_type("serial")])
qemuargs.extend(["-device", "virtconsole,chardev=dmesg"])
kernelargs.extend(["console=hvc0"])
kernelargs.extend(["console=ttyS0", "debug"])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arighi just to be sure, was the console= modification expected? I don't think that's an issue to switch to ttyS0, just surprised :)

@arighi
Copy link
Owner Author

arighi commented Jul 29, 2024

@matttbe oops, it's totally a mistake, thanks for noticing it! Feel free to send a PR to restore it back to hvc0. Otherwise I'll fix it later.

matttbe added a commit to matttbe/virtme-ng that referenced this pull request Jul 29, 2024
It looks like it was accidentally modified [1].

The hypervisor console is supposed to be better, except to debug early
console stuff. But that's OK, another serial is used for that: ttyS0 or
ttyAMA0, depending on the arch.

Fixes: 4bf382a ("virtme: pass "debug" to the boot options when running in verbose mode")
Link: arighi#144 [1]
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants