In your config file of virtual machine you need the following:
# grep serial openwrt.vmx
serial0.present = "TRUE"
serial0.fileType = "pipe"
serial0.fileName = "./serial1"
serial0.pipe.endPoint = "server"
serial0.hardwareFlowControl = "TRUE"
Redirect output to stdio or a port:
# socat <path_to_virtual_machine_dir>/serial1 <stdio |tcp4-listen:<port>>

The Serial console with VMWare by Cyconet Blog, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Terms and conditions beyond the scope of this license may be available at blog.waja.info.
Brunner Bäcker
Aldi
Städtischer Kinderspielplatz
Kindergarten Am Storchennest
Volksfestplatz Bayreuth
I think that my last message did not get through. so I am sorry if this is double-posted.
Great article, but it still does not work for me. Can you help?
$ socat ./serial1 tcp4-listen:9988
(it just waits)
(in another shell)
$ telnet 127.0.0.1 9988
rying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
Connection closed by foreign host.
$ socat UNIX-CONNECT:./serial1 tcp4-listen:9988
2008/09/18 15:09:06 socat[4499] E connect(3, AF=1 “./serial1″, 11): Connection refused
$ socat UNIX-LISTEN:./serial1 tcp4-listen:9988
2008/09/18 15:22:37 socat[5518] E bind(3, {AF=1 “./serial1″}, 11): Address already in use
and I have no idea how to “disconnect” it.
The socat manual is long but it is not clear how to. Also it says that it won’t accept the 2nd connection. So does it mean this behaviour???
Thanks,
Yoichi