Page 1 of 1

serial port problem

Posted: 23. Nov 2009, 21:37
by ryanGT
Sorry if this is a duplicate post. I thought I posted, but don't see it anywhere.

I had the serial connection working before, but I screwed up the VM and had to reinstall everything. I am trying to use pyserial (Python serial module) from my Windows XP guest os. This was working in my old install. Now I am getting this message from Python:

SerialException: could not open port COM1: (2, 'CreateFile', 'The system cannot
find the file specified.')

How do I trouble shoot a serial connection? Any idea why the guest wouldn't be able to connect to it?

Here is the relevant part of the Machine xml file:

<UART>
<Port slot="0" enabled="true" IOBase="0x3f8" IRQ="4" hostMode="HostDevice" path="/dev/ttyS0"/>
<Port slot="1" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
</UART>

Thanks,

Ryan