Revision 0bab00f3 qemu-doc.texi

b/qemu-doc.texi
496 496
@table @option
497 497

  
498 498
@item -serial dev
499
Redirect the virtual serial port to host device @var{dev}. Available
500
devices are:
499
Redirect the virtual serial port to host character device
500
@var{dev}. The default device is @code{vc} in graphical mode and
501
@code{stdio} in non graphical mode.
502

  
503
This option can be used several times to simulate up to 4 serials
504
ports.
505

  
506
Available character devices are:
501 507
@table @code
502 508
@item vc
503 509
Virtual console
......
516 522
@item stdio
517 523
[Unix only] standard input/output
518 524
@item pipe:filename
519
[Unix only] name pipe @var{filename}
525
name pipe @var{filename}
526
@item COMn
527
[Windows only] Use host serial port @var{n}
528
@item udp:remote_port
529
UDP Net Console sent to locahost at remote_port
530
@item udp:remote_host:remote_port
531
UDP Net Console sent to remote_host at remote_port
532
@item udp:src_port:remote_host:remote_port
533
UDP Net Console sent from src_port to remote_host at the remote_port.
534

  
535
The udp:* sub options are primary intended for netconsole.  If you
536
just want a simple readonly console you can use @code{netcat} or
537
@code{nc}, by starting qemu with: @code{-serial udp:4555} and nc as:
538
@code{nc -u -l -p 4555}. Any time qemu writes something to that port
539
it will appear in the netconsole session.
540

  
541
If you plan to send characters back via netconsole or you want to stop
542
and start qemu a lot of times, you should have qemu use the same
543
source port each time by using something like @code{-serial
544
udp:4556:localhost:4555} to qemu. Another approach is to use a patched
545
version of netcat which can listen to a TCP port and send and receive
546
characters via udp.  If you have a patched version of netcat which
547
activates telnet remote echo and single char transfer, then you can
548
use the following options to step up a netcat redirector to allow
549
telnet on port 5555 to access the qemu port.
550
@table @code
551
@item Qemu Options
552
-serial udp:4556:localhost:4555
553
@item netcat options
554
-u -P 4555 -L localhost:4556  -t -p 5555 -I -T
520 555
@end table
521
The default device is @code{vc} in graphical mode and @code{stdio} in
522
non graphical mode.
523 556

  
524
This option can be used several times to simulate up to 4 serials
525
ports.
557

  
558
@item tcp:remote_host:remote_port
559
TCP Net Console sent to remote_host at the remote_port
560
@item tcpl:host:port
561
TCP Net Console: wait for connection on @var{host} on the local port
562
@var{port}. If host is omitted, 0.0.0.0 is assumed. Only one TCP
563
connection at a time is accepted. You can use @code{telnet} to connect
564
to the corresponding character device.
565
@end table
526 566

  
527 567
@item -parallel dev
528 568
Redirect the virtual parallel port to host device @var{dev} (same

Also available in: Unified diff