[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#960390: x86_64: No serial port output



On 5/13/2020 12:28 PM, Alper Nebi Yasak wrote:
On 13/05/2020 03:43, Punit Agrawal wrote:
Incidentally, this does not work if '-m 1024' is missing. Kernel boot
fails to find 'init'. I suspect that the Qemu default RAM configuration
is not sufficient to unpack the initrd.

Thanks, that's it. I haven't noticed it the first time around because I
normally run virtual machines with virt-manager... The default RAM is
128MiB and the messages also say "Initramfs unpacking failed: write error".

Based on this, updated version of Alper's instructions now launch the DI
without the need to extract the kernel / initrd.

     $ qemu-system-x86_64 -cdrom *.iso -nographic -vga none -m 1024

     Edit the 'Install' option (by removing 'quiet' and 'vga=788') into:

     /install.amd/vmlinuz initrd=/install.amd/initrd.gz --- console=ttyS0

(BTW, we need console=ttyS0 here because /proc/consoles only has tty0.
The exact opposite happens on arm64 VMs: there /proc/consoles only has
ttyAMA0 so debian-installer only launches on the serial console and not
on the graphics window.)


I also'd like to point out that instead of modifying grub at the install
prompt, pressing the escape key and typing at the boot prompt the below
works for me (pressing the 'escape' key instead of the 'tab' key):


boot: install console=ttyS0,115200n8 DEBIAN_FRONTEND=text vga=none


From Buster onwords, /etc/default/grub does not need to be modified at
all after installation.


What transpired in this thread is that modifying grub at installation
time is not reflected at run time.

--
John Doe


Reply to: