VMware下两台虚拟机(Ubuntu)的串口通讯

1)在一个VMware下安装两个Ubuntu系统

2)开启VMware,但不要开启Ubuntu系统,在VM->Setting……->点击ADD,把串口(serial port)加进来,选择this end is the sever,以及the other end is the virtual machine;另一台Ubuntu也同样设置,但选择this end is the client。这样,“物理”上的串口我们就建立起来了

3)同时在两台机的终端下输入命令stty ispeed 115200 ospeed 115200 -F /dev/ttyS0

4)测试两台机的串口是否连通:在A上输入 cat /dev/ttyS0在B上输入 echo hello > /dev/ttyS0如果在A的终端上可以弹出hello的消息的话,证明B→A连通了。将A、B角色互换再试一次,若都成功的话,恭喜你,,虚拟串口线的配置算是完成了

有的旅行时为了寻找逝去的年华,重温青春的惆怅。

VMware下两台虚拟机(Ubuntu)的串口通讯

相关文章:

你感兴趣的文章:

标签云: