On 04/01/2010 02:30 PM, Aurelien Jarno wrote:
Michal Suchanek a écrit :
On 03/31/2010 06:29 PM, Aurelien Jarno wrote:
On Wed, Mar 31, 2010 at 06:19:45PM +0200, Michal Suchanek<[email protected]>
wrote:
Package: qemu-system
Version: 0.12.3+dfsg-2.1
Severity: normal
qemu -serial stdio
allows communicationg with the system over the standard input/output but
pressing ^C does not pass the signal to the serial port. It kills qemu
instead.
You have to ask for the signaling to not be interpreted by QEMU. This
can be done in two ways:
- using the -nographic option (which also disable the display)
- creating a chardev with signaling off, and assigning it to the serial
port: -chardev stdio,signal=off,id=serial0 -serial chardev:serial0
Nographic does not work for me.
Is that a bug or is it expected?
$ qemu-system-ppc -m 1024 -serial stdio -net nic -net
tap,ifname=tap0,script=no,downscript=no ppc.img -cdrom
debian-504-powerpc-netinst.iso -boot c -nographic
chardev: opening backend "stdio" failed
-nographic is an alias for "-chardev stdio,signal=off,id=serial0 -serial
chardev:serial0 -graphic none". You can't opened it twice, so you don't
have to specify again. What you need is:
qemu-system-ppc -m 1024 -net nic -net
tap,ifname=tap0,script=no,downscript=no ppc.img -cdrom
debian-504-powerpc-netinst.iso -boot c -nographic
Yes, now nographic does that. Last time I read about it in an older
manual and it either did something else or it was unclear what it does
and it did not work for me.
and chardev does work so long as graphics is enabled (not that I would
figure out that -serial stdio should be replaced with that)
$ qemu-system-ppc -m 1024 -chardev stdio,signal=off,id=serial0 -serial
chardev:serial0 -net nic -net tap,ifname=tap0,script=no,downscript=no
ppc.img -cdrom debian-504-powerpc-netinst.iso -boot c
which is sort of annoying but I guess I can redirect graphics to VNC.
VNC is unusable for me due to key repeat issues but that's what the
serial input should work around.
What do you mean by it doesn't work? -serial stdio is equivalent to
It does. Did I say it does not?
"-chardev stdio,id=serial0 -serial chardev:serial0", and it redirects
the serial port to stdio. The only difference is that your are disabling
signaling.
Yes, and not disabling it is an odd default.
Thanks
Michal
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]