Comment 2 for bug 1630909

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: failing console access on s390x

After discussing with my Friends working on KVM on s390x I found the following to get me "extra consoles onto unix sockets". The default as mentioned is a sclp console and that is required for early messages and also the recommended and tested one.

For further consoles they recommend to use virtio-serial/virtconsoles. Based on the feedback I constructed these parms for my adt qemu:

-device virtio-serial -chardev socket,path=/tmp/testadt/ttyhvc,server,nowait,id=ttyhvc -device virtconsole,chardev=ttyhvc,name=org.fedoraproject.console.ttyhvc

That gives me a login prompt on /tmp/testadt/ttyhvc just as adt needs it.

I first thought it might need a modification like "console=hvc0" as kernel commandline.
But the hvc consoles seem to be auto-initialized if existing - so no change inside the guest needed.

So the current default:
-serial unix:/tmp/autopkgtest-virt-qemu.84_ut07n/ttyS0,server,nowait -serial unix:/tmp/autopkgtest-virt-qemu.84_ut07n/ttyS1,server,nowait
should for s390x be converted to use the one outlined above.