Wine - VM serial communication

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
jared
Newbie
Newbie
Posts: 2
Joined: Thu Apr 02, 2009 10:56 pm

Wine - VM serial communication

Post by jared »

I currently have two VMs communicating with each other. One is XP, the other is QNX. I added a serial port to each of the VMs that maps to /tmp/com_1. So each VM thinks it's communicating over its serial port. This communication works great, but the XP VM is super slow. So I thought I'd try Wine. So far it seems to work, but the communication doesn't.

How can I get this communication working with Wine? I would like the XP software to think it's communicating over com1, but have it mapped to /tmp/com_1 in linux. This way the QNX VM will receive the communication like before. Is this supported in Wine? Has anyone done something similar or have an idea?

Jared
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine - VM serial communication

Post by vitamin »

jared wrote:I added a serial port to each of the VMs that maps to /tmp/com_1. So each VM thinks it's communicating over its serial port. This communication works great, but the XP VM is super slow. So I thought I'd try Wine. So far it seems to work, but the communication doesn't.
At a minimum you need to create this symlink:

Code: Select all

ln -s /tmp/com_1 ~/.wine/dosdevices/com1
jared
Newbie
Newbie
Posts: 2
Joined: Thu Apr 02, 2009 10:56 pm

Re: Wine - VM serial communication

Post by jared »

vitamin wrote:At a minimum you need to create this symlink:

Code: Select all

ln -s /tmp/com_1 ~/.wine/dosdevices/com1
Thanks! Yes, this is what I thought would work. But it doesn't seem to be work. So I tried testing it by first getting into the cmd as

Code: Select all

wine cmd
Then, within cmd, I just try to send something over com1 as

Code: Select all

echo test > com1
It then says that "File not found". I guess it doesn't know what com1 is? What else might I have to do besides creating the link?

Jared
Locked