Hi,
After successfully passing test_qemu.sh, I experience that even though I can see what I enter in the console, nothing is processed or passed to sh.
I did research and the results were confusing, I also write some minor tests to debug and get a clue about where processing fails.
Seems like a qemu error with connecting tty, handling stdin from the host.
I modified qemu-bios-console.sh as such, and this did not resolve the issue:
echo 'console=ttyS0' | $cmd
/etc/inittab has ::respawn:/bin/cttyhack /bin/sh
qemu is being run in -nographic mode.
UPDATE:
Tried this way:
qemu-system-$ARCH -m 256M -cdrom minimal_linux_live.iso -boot d -serial pty
and this works, though all messages after /init are lost, just as seen (mentioned in another ticket) at the cloud provider.
The remaining question is: is it possible and/or necessary to direct all input and output in the same terminal, where I started the whole process?
Tried also this, but this is far from perfect:
qemu-system-$ARCH -m 256M -cdrom minimal_linux_live.iso -boot d -nodefaults -display none -serial $(tty)
works, but there is no nice way to exit qemu and it ruins the terminal, some kind of cleanup is needed that I do not know how to implement
Hi,
After successfully passing
test_qemu.sh, I experience that even though I can see what I enter in the console, nothing is processed or passed tosh.I did research and the results were confusing, I also write some minor tests to debug and get a clue about where processing fails.
Seems like a qemu error with connecting tty, handling stdin from the host.
I modified
qemu-bios-console.shas such, and this did not resolve the issue:echo 'console=ttyS0' | $cmd/etc/inittabhas::respawn:/bin/cttyhack /bin/shqemu is being run in
-nographicmode.UPDATE:
Tried this way:
qemu-system-$ARCH -m 256M -cdrom minimal_linux_live.iso -boot d -serial ptyand this works, though all messages after /init are lost, just as seen (mentioned in another ticket) at the cloud provider.
The remaining question is: is it possible and/or necessary to direct all input and output in the same terminal, where I started the whole process?
Tried also this, but this is far from perfect:
qemu-system-$ARCH -m 256M -cdrom minimal_linux_live.iso -boot d -nodefaults -display none -serial $(tty)works, but there is no nice way to exit qemu and it ruins the terminal, some kind of cleanup is needed that I do not know how to implement