serial port problem

Discussions about using Windows guests in VirtualBox.
Post Reply
ryanGT
Posts: 8
Joined: 22. Nov 2009, 07:09
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

serial port problem

Post 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
Post Reply