connecting virtual machine serial port to named pipe
Posted on 2010-11-17
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?