fix hvc0 xen console on debian/ubuntu

DRAFT

systemd generator

man systemd-getty-generator

cd /usr/lib/systemd/system/

systemd.getty_auto=false

serial-getty@ttyS0

cat /proc/consoles
cat /sys/class/tty/console/active

rebuild initrd

apt search initramfs-tools

cd /boot/
mkdir lala/
lsinitramfs initrd.img-6.1.0-9-cloud-amd64

resources

https://unix.stackexchange.com/questions/751827/debian-vm-doesn-t-boot-on-qemu-with-console-hvc0-kernel-parameter ==> CONFIG_VIRTIO_CONSOLE required for hvc0!

https://0pointer.de/blog/projects/serial-console.html ==> does systemd rock?

https://stackoverflow.com/questions/21596384/cannot-disable-systemd-serial-getty-service ==> generators

https://www.ibm.com/docs/en/linux-on-systems?topic=devices-activating-hvc0-kernel-messages

initrd

https://trendoceans.com/how-to-unpack-initrd-initramfs-to-view-content-in-linux/

https://linuxconfig.org/how-to-create-and-extract-cpio-archives-on-linux-examples

troubles

https://github.com/lima-vm/lima/issues/1659

https://unix.stackexchange.com/questions/447070/serial-getty-error-messages ==> fix warnings when using both ttyS0 + hvc0?

system V

https://wiki.xenproject.org/wiki/Xen_Serial_Console ==> “No getty (login prompt) on the serial console so I can’t login?”

https://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot

now automated?

FW https://lkml.org/lkml/2008/4/10/209

https://bugzilla.redhat.com/show_bug.cgi?id=920648

misc

https://bbs.archlinux.org/viewtopic.php?id=129509

https://stackoverflow.com/questions/18098455/redirect-qemu-console-to-a-file-or-the-host-terminal


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT