串口连接

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
zongzw
帖子: 94
注册时间: 2008-03-31 16:12

串口连接

#1

帖子 zongzw » 2009-09-10 14:43

大家好,我想通过串口连接两个Linux虚拟主机。
察看了相关文档,在VMware Workstation 5.0 Connecting Two Virtual Machines 文档中看到了如下一段:
Linux Host
In the server virtual machine
1. Open the virtual machine settings editor (VM > Settings).

2. Click Add to start the Add Hardware Wizard.

3. Select Serial Port, then click Next.

4. Select Output to named pipe, then click Next.

代码: 全选

5. In the Path field, enter /tmp/<socket> or another Unix socket name of your choice. 
6. Select This end is the server.

7. Select The other end is a virtual machine.

8. By default, the device status setting is Connect at power on. You may deselect this setting if you wish.

Click Advanced if you want to configure this serial port to use polled mode. This option is of interest primarily to developers who are using debugging tools that communicate over a serial connection. For more information, see Special Configuration Options for Advanced Users.

9. Click Finish, then click OK to save your configuration and close the virtual machine settings editor.

以上加色部分(第5条)如何做到呢?enter /tmp/<socket> or another Unix socket name ,这里的/tmp/<socket> or Unix socket name 在哪里呢?如何建立?

谢谢了。。。。 :em55
头像
zongzw
帖子: 94
注册时间: 2008-03-31 16:12

Re: 串口连接

#2

帖子 zongzw » 2009-09-10 16:17

如果主机是window ,设置pipe path为 \\.\pipe\<your pipe name>,前面的“\\.\pipe\”是固定的。
主机如果是linux,则在任意目录下都可以,网上多举例为/tmp/<any file name>,只要文件存在即可。
保证一点,两台虚拟机的pipe path相同。
并且设置好了后,重启下两个虚拟机。

:em03
头像
zongzw
帖子: 94
注册时间: 2008-03-31 16:12

Re: 串口连接

#3

帖子 zongzw » 2009-09-10 16:18

自问自答
:em02
头像
懒蜗牛Gentoo
论坛版主
帖子: 7353
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: 串口连接

#4

帖子 懒蜗牛Gentoo » 2009-09-10 16:19

呵呵,Lz头像很可爱
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
头像
zongzw
帖子: 94
注册时间: 2008-03-31 16:12

Re: 串口连接

#5

帖子 zongzw » 2009-09-11 17:18

貌似你的更可爱啦。
wkingfly
帖子: 13
注册时间: 2009-03-13 22:09

Re: 串口连接

#6

帖子 wkingfly » 2010-07-14 14:23

这个问题还没有解决?我想连接linux下的vmware虚拟机的串口,有人会吗?
回复