Solved

connecting virtual machine serial port to named pipe

Posted on 2010-11-17
9
3,722 Views
Last Modified: 2016-04-06
I have a device that I need to program through a serial port.  The problem is my laptop doesn't a serial port.  I do however have a serial-to-USB cable that I can plug in.  I can then set it to use COM1.

So to program the device in question I have to boot to a floppy drive and run the programming application in a DOS environment.  In order for the serial-to-USB cable driver to work I have to have Windows running.  To work around this problem I thought I could use a virtual machine in Hyper-V or VirtualBox that could map a serial port to a named pipe.  Here's where I'm getting confused.

It would seem like what I need to do is somehow serve my COM1 port to a named pipe on my laptop.  I could then point the virtual machine to that named pipe.  I see how to point the virtual machine to a named pipe.  I just don't see how to "serve" that named pipe from my laptop.  I've read around about creating named pipes and such, but I still don't see how to map my COM1 port to the named pipe so I can then in turn connect to it with a virtual machine.

Is this possible to do?  Is my thought process flawed?
0
Comment
Question by:Zouleous
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 10

Expert Comment

by:akhalighi
ID: 34161315
0
 
LVL 6

Author Comment

by:Zouleous
ID: 34161611
Interesting information in those links.  Thanks for that.  I'll continue studying them more, but the information is geared for VMware.  I'm using either Hyper-V (prefered) or Sun VirtualBox if I have to.  If you have anything geared more toward Hyper-V that would be great.  I think I understand how to set up the Hyper-V side to connect to the named pipe.  I think what I have to do is figure out how to get the COM port linked to the named pipe so I can then connect the Hyper-V machine to it.  Would you know how to do that part specifically?

There's a lot of information in the links you provided so I'll keep looking.
0
 
LVL 6

Author Comment

by:Zouleous
ID: 34161616
Just to be clear I'm trying to connect to the COM1 port on my laptop from a Hyper-V machine running on a server.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 6

Accepted Solution

by:
Michael S earned 500 total points
ID: 35217535
COM Ports on Hyper-V do not work with the named pipes.  You would need to use a 3rd party solution like this:

http://www.fabulatech.com/network-serial-port-kit.html
0
 
LVL 6

Author Comment

by:Zouleous
ID: 35222239
I had looked at that software.  Not worth spending that much money for a something that's a convenience thing.  Interesting you say Hyper-V doesn't work with named pipes though.  This is straight from the Hyper-V Planning and Deployment guide:

"Each virtual machine is configured with 2 virtual serial (COM) ports that can be attached to a named pipe to communicate with a local or remote physical computer. "
0
 
LVL 6

Assisted Solution

by:Michael S
Michael S earned 500 total points
ID: 35224567
Actually the only way they work is for debugging, it's almost as if Microsoft never intended them to work. The Hyper-V Deployment guide also says this:

“Note:  No access to a physical COM port is available from a virtual machine"

Ben Armstrong, one of the guys from the MSDN blogs, actually quoted this:

"This is not possible with Hyper-V - we do not support the use of physical COM ports."

0
 
LVL 6

Author Closing Comment

by:Zouleous
ID: 35226230
Not really the solution I was looking for, but it does address what's officially supported (or unsupported in this case).  Would have been nice to find a free 3rd part solution to accomplish this.
0
 
LVL 6

Expert Comment

by:Michael S
ID: 35228503
Sorry to burst your bubble - I went through the same thing a long time ago and ran into the same problem - that's why I know about it not working.  Hope it works out for you.
0
 

Expert Comment

by:Janett Fies
ID: 41537745
If you need need to access your serial device in virtual machine, you should use additional software, due to no virtual environment will see the serial port attached. Here are some great steps to access COM port in different virtual machines http://www.eltima.com/com-port-in-virtual-machine/
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question