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
Solved

connecting virtual machine serial port to named pipe

Posted on 2010-11-17
9
3,606 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

860 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