VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
8 Replies Last post: Oct 3, 2009 3:45 AM by testell  

Using virtual serial ports between two machines? posted: Sep 12, 2007 5:32 AM

Click to view gv3's profile Lurker 4 posts since
Dec 22, 2006
Hi,

I am attempting to use Fusion in the same what that I use Workstation, in that I have two VMs connected over their serial ports, one for console and one for serial debug. I cannot seem to get this to work with Fusion. What am I missing?

Best,
George

Re: Using virtual serial ports between two machines?

2. Sep 12, 2007 10:29 AM in response to: gv3
Click to view hawbaker's profile Novice 10 posts since
Sep 12, 2007
about the file, devbox_com1:

what kind of file is it ? is it within a VM package or outside ? How do I have to create it ?

Message was edited by:
hawbaker

Re: Using virtual serial ports between two machines?

3. Sep 12, 2007 10:28 AM in response to: hawbaker
Click to view RDPetruska's profile Guru 15,853 posts since
Jan 11, 2005
It should be an ASCII text file on your host - in exactly the path spelled out.

Re: Using virtual serial ports between two machines?

4. Apr 16, 2008 7:35 AM in response to: gv3
Click to view sharris595's profile Novice 7 posts since
Apr 16, 2008
Hi!

I'm trying to use serial ports to communicate between XP VMs running under VMWare Fusion on MAC OS/X. I created the file as specified here (though I don't have the /Volumes/Virtual Machines/VMWare paths I see here-is there something I'm missing? I just created a plain text file on my Mac to handle the traffic, and I set the attributes to be all read-write. I edited my VMWare images to have the same settings as specified here, although Fusion complains that these are non-standard and unsupported settings. Anyone get Hyperterminal to work between VMWare images? I set the baud rate to the same, and no hardware flow control on the serial ports. The default support for serial ports in Fusion is just for files, but I wasn't able to map both images to the same file to share serial port communication, for example. Any thoughts on how one might get this to work? Thanks!

Best,

Steve
Click to view WoodyZ's profile Guru 9,999 posts since
Apr 22, 2004
Have a look at: VMware Fusion menu > Help > VMware Fusion Help > Managing Virtual Machines > Adding and Configuring a Serial Port

Re: Using virtual serial ports between two machines?

6. Apr 16, 2008 7:51 AM in response to: WoodyZ
Click to view sharris595's profile Novice 7 posts since
Apr 16, 2008

Hi-

I see that the VMware Fusion help only allows serial ports on the Mac to be actual files. When I try to specify two VMs using the same file, I get a message from the VM that starts second that the file already exists, and asks whether it should append or overwrite the original file. Does this mean that communicating via serial ports for VMs is not possible? Would writing a quick shell script to read and echo the output of one file into another file work if I mapped each VM to a serial port to a different file, and used this shell script to communicate between them?

Thanks!

Steve


Click to view WoodyZ's profile Guru 9,999 posts since
Apr 22, 2004
Using the information in in the post above (http://communities.vmware.com/message/748577#748577) I had no problem establishing open communication between two XP Virtual Machines, so it does work.

Re: Using virtual serial ports between two machines?

8. Oct 3, 2009 3:45 AM in response to: WoodyZ
Click to view testell's profile Lurker 1 posts since
Oct 3, 2009
Got this working as well. Using Fusion to debug a WinXP vm from another WinXP vm.

On the machine running WinDbg I added the following lines to the .vmx file. Serial0 was already setup for thinprint so I'm using serial1.

serial1.present = "TRUE"
serial1.fileType = "pipe"
serial1.yieldOnMsrRead = "TRUE"
serial1.startConnected = "TRUE"
serial1.fileName = "/tmp/dev_com"
serial1.pipe.endPoint = "client"

On the target machine I added the following lines to the .vmx file.

serial0.present = "TRUE"
serial0.fileType = "pipe"
serial0.yieldOnMsrRead = "TRUE"
serial0.startConnected = "TRUE"
serial0.fileName = "/tmp/dev_com"

Then started up the target vm, edited the boot.ini file to add "/debugport=COM1 /baudrate=115200".
Now start up the windbg vm, launch WinDbg, then File | Kernel Debug. Selection serial, COM2, check the box for reconnect.

Restart the target vm. Should see output in the WinDbg command window and "Debugee is running..."

Thanks!

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities