Solved

connecting virtual machine serial port to named pipe

Posted on 2010-11-17
9
3,647 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

733 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