GUIã§è¨å®ã§ããã·ãªã¢ã«ãã¼ãã¯ããã¹ãOSå´ããã¯ãã ã®ãã¡ã¤ã«ã«ããã¿ããªãããªã®ã§ãtail -f ããããããªããããã©ãã·ãªã¢ã«ã³ã³ã½ã¼ã«ã¨ãã¦ã¯ä½¿ããªãã(VMware Fusion 3ã§ã¯GUIã§è¨å®ã§ãããã§ãããï¼)
ãã¹ãå´ã«UNIXãã¡ã¤ã³ã½ã±ããã¨ãã¦è¦ããã«ã¯ãè¨å®ãã¡ã¤ã«(*.vmx)ãæã§ç·¨éããå¿ è¦ããããæ¢åã®ãserial0.*ãã®è¡ãæ¶ãã¦ããããªã®ã追è¨ããã°OK
serial0.present = "TRUE" serial0.fileType = "pipe" serial0.fileName = "/tmp/serial-guest01" serial0.tryNoRxLoss = "TRUE" serial0.startConnected = "TRUE"
ããã§ãã²ã¹ãOSã®ttyS0ããã¹ãOSã§ã¯/tmp/serial-guest01ã¨ãã¦ã¿ããããã«ãªãã
ã²ã¹ãOS(ã¼ãã®å ´åã¯Linux)ã®ã·ãªã¢ã«ã³ã³ã½ã¼ã«(grubã¨ãbootparamã¨ãgettyã¨ã)ã®è¨å®ã¯ãRemote Serial Console HOWTO (JFの日本語訳)ãåç §ã®ãã¨ã
次ã«/tmp/serial-guest01ã«ã©ããã£ã¦ç¹ãããã
socatã使ããå¤ãsocatã ã¨ãMacã§UNIXãã¡ã¤ã³ã½ã±ããã®ãã³ããªã³ã°ãã§ããªãã£ã½ãã®ã§ãææ°ã®socat 1.7.1.2ãã½ã¼ã«ãããã«ãããã
æ¥ç¶æ¹æ³ãã®ä¸ãsocatã使ã£ã¦ãUNIXãã¡ã¤ã³ã½ã±ãããptyã«ããªãã¸ãã¦ã
(ptyã®link=ããªããå¹ããªãã®ã§ãããã¤ã¹ãã¡ã¤ã«åã確èªãããã-d -d ã§ãããã°ã¡ãã»ã¼ã¸è¡¨ç¤ºããããã«ãã¦ãã)
$ socat -d -d unix-connect:/tmp/serial-guest01 pty:raw,echo=0
socatãä½ã£ãããã¤ã¹ã«ãjermãcuãªã©ã§ptyã«æ¥ç¶ããã
$ jerm /dev/ttys008
æ¥ç¶æ¹æ³ãã®äºãsocatã使ã£ã¦ãã¨ãããã¼ãã®TCPæ¥ç¶ãUNIXãã¡ã¤ã³ã½ã±ããã«ããªãã¸ãã¦ã
$ unix-connect:/tmp/serial-guest01 tcp4-listen:1919,reuseaddr
telnetã¨ãncã¨ãã§ãç¹ããã
$ telnet hostOS 1919 $ nc hostOS 1919